Ignore:
Timestamp:
Oct 23, 2009, 9:49:35 AM (14 years ago)
Author:
gav
Message:

Add Department-Person relationship, update demo data and views to suite.
Add department and personGroups to Person views.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/department/create.gsp

    r162 r164  
    2929                            <tr class="prop">
    3030                                <td valign="top" class="name">
    31                                     <label for="costCode">Cost Code:</label>
     31                                    <label for="name">Name:</label>
    3232                                </td>
    33                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}">
    34                                     <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/>
     33                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}">
     34                                    <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
    3535                                </td>
    3636                            </tr>
     
    4747                            <tr class="prop">
    4848                                <td valign="top" class="name">
    49                                     <label for="isActive">Is Active:</label>
     49                                    <label for="costCode">Cost Code:</label>
    5050                                </td>
    51                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'isActive','errors')}">
    52                                     <g:checkBox name="isActive" value="${departmentInstance?.isActive}" ></g:checkBox>
     51                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}">
     52                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/>
    5353                                </td>
    5454                            </tr>
     
    5656                            <tr class="prop">
    5757                                <td valign="top" class="name">
    58                                     <label for="name">Name:</label>
     58                                    <label for="isActive">Is Active:</label>
    5959                                </td>
    60                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}">
    61                                     <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
     60                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'isActive','errors')}">
     61                                    <g:checkBox name="isActive" value="${departmentInstance?.isActive}" ></g:checkBox>
    6262                                </td>
    6363                            </tr>
Note: See TracChangeset for help on using the changeset viewer.