Changeset 268 for trunk/grails-app/views/department/edit.gsp
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/department/edit.gsp
r178 r268 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 36 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 37 37 </td> 38 38 </tr> … … 43 43 </td> 44 44 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 45 <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="costCode">Cost Code:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 54 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 55 46 </td> 56 47 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" persons">Persons:</label>60 <label for="departmentExtendedAttributes">Department Extended Attributes:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:' persons','errors')}">62 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}"> 72 63 73 64 <ul> 74 <g:each var=" p" in="${departmentInstance?.persons?}">75 <li><g:link controller=" person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>65 <g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}"> 66 <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> 76 67 </g:each> 77 68 </ul> 78 <g:link controller=" person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link>69 <g:link controller="departmentExtendedAttribute" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link> 79 70 80 71 </td> … … 83 74 <tr class="prop"> 84 75 <td valign="top" class="name"> 85 <label for="s ystemSections">SystemSections:</label>76 <label for="sections">Sections:</label> 86 77 </td> 87 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'s ystemSections','errors')}">78 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}"> 88 79 89 80 <ul> 90 <g:each var="s" in="${departmentInstance?.s ystemSections?}">91 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>81 <g:each var="s" in="${departmentInstance?.sections?}"> 82 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 83 </g:each> 93 84 </ul> 94 <g:link controller="s ystemSection" params="['department.id':departmentInstance?.id]" action="create">Add SystemSection</g:link>85 <g:link controller="section" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link> 95 86 96 87 </td>
Note: See TracChangeset
for help on using the changeset viewer.