Changeset 164 for trunk/grails-app/views/department/edit.gsp
- Timestamp:
- Oct 23, 2009, 9:49:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/department/edit.gsp
r162 r164 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" costCode">Cost Code:</label>34 <label for="name">Name:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:' costCode','errors')}">37 <input type="text" id=" costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/>36 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 37 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 38 38 </td> 39 39 </tr> … … 50 50 <tr class="prop"> 51 51 <td valign="top" class="name"> 52 <label for="costCode">Cost Code:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 55 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 52 61 <label for="isActive">Is Active:</label> 53 62 </td> … … 59 68 <tr class="prop"> 60 69 <td valign="top" class="name"> 61 <label for=" name">Name:</label>70 <label for="persons">Persons:</label> 62 71 </td> 63 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 64 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 72 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'persons','errors')}"> 73 74 <ul> 75 <g:each var="p" in="${departmentInstance?.persons?}"> 76 <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li> 77 </g:each> 78 </ul> 79 <g:link controller="person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link> 80 65 81 </td> 66 82 </tr>
Note: See TracChangeset
for help on using the changeset viewer.