Changeset 122 for trunk/grails-app/views/assetType/edit.gsp
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetType/edit.gsp
r118 r122 45 45 <tr class="prop"> 46 46 <td valign="top" class="name"> 47 <label for="assetExtendedAttributes">Asset Extended Attributes:</label> 48 </td> 49 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assetExtendedAttributes','errors')}"> 50 51 <ul> 52 <g:each var="a" in="${assetTypeInstance?.assetExtendedAttributes?}"> 53 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 54 </g:each> 55 </ul> 56 <g:link controller="assetExtendedAttribute" params="['assetType.id':assetTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 57 58 </td> 59 </tr> 60 61 <tr class="prop"> 62 <td valign="top" class="name"> 47 63 <label for="assets">Assets:</label> 48 64 </td> … … 79 95 <tr class="prop"> 80 96 <td valign="top" class="name"> 81 <label for=" lifeplan">Lifeplan:</label>97 <label for="maintenanceActions">Maintenance Actions:</label> 82 98 </td> 83 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'lifeplan','errors')}"> 84 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetTypeInstance?.lifeplan?.id}" ></g:select> 99 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'maintenanceActions','errors')}"> 100 101 <ul> 102 <g:each var="m" in="${assetTypeInstance?.maintenanceActions?}"> 103 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 104 </g:each> 105 </ul> 106 <g:link controller="maintenanceAction" params="['assetType.id':assetTypeInstance?.id]" action="create">Add MaintenanceAction</g:link> 107 85 108 </td> 86 109 </tr> … … 92 115 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 93 116 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 94 </td>95 </tr>96 97 <tr class="prop">98 <td valign="top" class="name">99 <label for="systemSection">System Section:</label>100 </td>101 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'systemSection','errors')}">102 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetTypeInstance?.systemSection?.id}" ></g:select>103 117 </td> 104 118 </tr>
Note: See TracChangeset
for help on using the changeset viewer.