Changeset 122 for trunk/grails-app/views/systemSection/edit.gsp
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/systemSection/edit.gsp
r118 r122 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="asset Types">Asset Types:</label>34 <label for="assets">Assets:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'asset Types','errors')}">36 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}"> 37 37 38 38 <ul> 39 <g:each var="a" in="${systemSectionInstance?.asset Types?}">40 <li><g:link controller="asset Type" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>39 <g:each var="a" in="${systemSectionInstance?.assets?}"> 40 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 41 41 </g:each> 42 42 </ul> 43 <g:link controller="asset Type" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add AssetType</g:link>43 <g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 44 44 45 45 </td> … … 66 66 <tr class="prop"> 67 67 <td valign="top" class="name"> 68 <label for=" lifePlans">Life Plans:</label>68 <label for="maintenanceActions">Maintenance Actions:</label> 69 69 </td> 70 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'lifePlans','errors')}"> 71 <g:select name="lifePlans" 72 from="${LifePlan.list()}" 73 size="5" multiple="yes" optionKey="id" 74 value="${systemSectionInstance?.lifePlans}" /> 70 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}"> 71 72 <ul> 73 <g:each var="m" in="${systemSectionInstance?.maintenanceActions?}"> 74 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 75 </g:each> 76 </ul> 77 <g:link controller="maintenanceAction" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link> 75 78 76 79 </td> … … 83 86 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 84 87 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 88 </td> 89 </tr> 90 91 <tr class="prop"> 92 <td valign="top" class="name"> 93 <label for="site">Site:</label> 94 </td> 95 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}"> 96 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select> 85 97 </td> 86 98 </tr>
Note: See TracChangeset
for help on using the changeset viewer.