Changeset 655 for trunk/grails-app/views/assetDetailed/edit.gsp
- Timestamp:
- Sep 24, 2010, 2:30:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetDetailed/edit.gsp
r410 r655 27 27 28 28 <tr class="prop"> 29 <td valign="top" class="name"> 29 <td valign="top" class="groupHeader"> 30 <label for="name">Asset</label> 31 </td> 32 <td valign="top" class="value"> 33 </td> 34 </tr> 35 36 <tr class="prop"> 37 <td valign="top" class="groupName"> 30 38 <label for="name">Name:</label> 31 39 </td> … … 36 44 37 45 <tr class="prop"> 38 <td valign="top" class=" name">46 <td valign="top" class="groupName"> 39 47 <label for="description">Description:</label> 40 48 </td> … … 45 53 46 54 <tr class="prop"> 47 <td valign="top" class=" name">55 <td valign="top" class="groupName"> 48 56 <label for="comment">Comment:</label> 49 57 </td> … … 54 62 55 63 <tr class="prop"> 56 <td valign="top" class=" name">64 <td valign="top" class="groupName"> 57 65 <label for="isActive">Is Active:</label> 58 66 </td> … … 63 71 64 72 <tr class="prop"> 65 <td valign="top" class=" name">73 <td valign="top" class="groupName"> 66 74 <label for="section">Section:</label> 67 75 </td> … … 72 80 73 81 <tr class="prop"> 74 <td valign="top" class=" name">75 <label for="assetExtendedAttributes">Asset Extended Attributes:</label>82 <td valign="top" class="groupHeader">Extended Attributes</td> 83 <td valign="top" style="text-align:left;" class="value"> 76 84 </td> 77 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetExtendedAttributes','errors')}"> 85 </tr> 86 87 <g:each var="a" in="${assetInstance.assetExtendedAttributes.sort { p1, p2 -> p1.extendedAttributeType.name.compareToIgnoreCase(p2.extendedAttributeType.name) }}"> 88 <tr class="prop"> 89 <td valign="top" class="groupName"> 90 ${a.extendedAttributeType.name.encodeAsHTML()}: 91 </td> 78 92 79 <ul> 80 <g:each var="a" in="${assetInstance?.assetExtendedAttributes?}"> 81 <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 82 </g:each> 83 </ul> 84 <g:link controller="assetExtendedAttributeDetailed" params="['asset.id':assetInstance?.id]" action="create">+Add Extended Attribute</g:link> 85 93 <td valign="top" style="text-align:left;" class="value"> 94 <g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}"> 95 ${a.value.encodeAsHTML()} 96 </g:link> 97 </td> 98 99 </tr> 100 </g:each> 101 102 <tr class="prop"> 103 <td valign="top" class="name"></td> 104 <td valign="top" style="text-align:left;" class="value"> 105 <g:link controller="assetExtendedAttributeDetailed" params="['asset.id':assetInstance?.id]" action="create">+Add Extended Attribute</g:link> 106 </td> 107 </tr> 108 109 <tr class="prop"> 110 <td valign="top" class="groupHeader"> 111 <label for="assetSubItems">Asset Sub Items</label> 112 </td> 113 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItems','errors')}"> 86 114 </td> 87 115 </tr> … … 89 117 <tr class="prop"> 90 118 <td valign="top" class="name"> 91 <label for="assetSubItems">Asset Sub Items:</label>92 119 </td> 93 120 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItems','errors')}"> … … 104 131 105 132 <tr class="prop"> 106 <td valign="top" class=" name">107 <label for="maintenanceActions">Maintenance Actions :</label>133 <td valign="top" class="groupHeader"> 134 <label for="maintenanceActions">Maintenance Actions</label> 108 135 </td> 109 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'maintenanceActions','errors')}"> 110 111 <ul> 112 <g:each var="m" in="${assetInstance?.maintenanceActions?}"> 113 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 114 </g:each> 115 </ul> 116 <g:link controller="maintenanceActionDetailed" params="['asset.id':assetInstance?.id]" action="create">+Add Maintenance Action</g:link> 117 136 <td valign="top" class="value"> 118 137 </td> 119 138 </tr> 139 140 <g:each var="m" in="${assetInstance?.maintenanceActions?}"> 141 <tr class="prop"> 142 <td valign="top" class="name"> 143 </td> 144 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'maintenanceActions','errors')}"> 145 <g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link> 146 </td> 147 </tr> 148 </g:each> 149 150 <tr class="prop"> 151 <td valign="top" class="name"></td> 152 <td valign="top" style="text-align:left;" class="value"> 153 <g:link controller="maintenanceActionDetailed" params="['asset.id':assetInstance?.id]" action="create">+Add Maintenance Action</g:link> 154 </td> 155 </tr> 120 156 121 157 </tbody>
Note: See TracChangeset
for help on using the changeset viewer.