Ignore:
Timestamp:
Oct 22, 2009, 8:26:09 PM (15 years ago)
Author:
gav
Message:

Add Department domain class, controller, views and demo data.
Add costCode and department attributes to SystemSection? and regen non-detailed controller and views, adjust detailed views to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/systemSection/edit.gsp

    r151 r162  
    4343<g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link>
    4444
     45                                </td>
     46                            </tr>
     47                       
     48                            <tr class="prop">
     49                                <td valign="top" class="name">
     50                                    <label for="costCode">Cost Code:</label>
     51                                </td>
     52                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}">
     53                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/>
     54                                </td>
     55                            </tr>
     56                       
     57                            <tr class="prop">
     58                                <td valign="top" class="name">
     59                                    <label for="department">Department:</label>
     60                                </td>
     61                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}">
     62                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select>
    4563                                </td>
    4664                            </tr>
Note: See TracChangeset for help on using the changeset viewer.