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/create.gsp

    r151 r162  
    2626                    <table>
    2727                        <tbody>
     28                       
     29                            <tr class="prop">
     30                                <td valign="top" class="name">
     31                                    <label for="costCode">Cost Code:</label>
     32                                </td>
     33                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}">
     34                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/>
     35                                </td>
     36                            </tr>
     37                       
     38                            <tr class="prop">
     39                                <td valign="top" class="name">
     40                                    <label for="department">Department:</label>
     41                                </td>
     42                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}">
     43                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select>
     44                                </td>
     45                            </tr>
    2846                       
    2947                            <tr class="prop">
Note: See TracChangeset for help on using the changeset viewer.