Changeset 683 for trunk/grails-app/views
- Timestamp:
- Oct 6, 2010, 12:45:13 AM (14 years ago)
- Location:
- trunk/grails-app/views/assetSubItemDetailed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetSubItemDetailed/edit.gsp
r659 r683 71 71 72 72 <tr class="prop"> 73 <td valign="top" class="groupHeader"> 74 <label for="name">Extended Attributes</label> 75 </td> 76 <td valign="top" class="value"> 77 </td> 78 </tr> 79 80 <g:each var="a" in="${assetSubItemInstance?.assetSubItemExtendedAttributes?}"> 73 <td valign="top" class="groupHeader">Extended Attributes</td> 74 <td valign="top" style="text-align:left;" class="value"> 75 </td> 76 </tr> 77 78 <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes.sort { p1, p2 -> p1.extendedAttributeType.name.compareToIgnoreCase(p2.extendedAttributeType.name) }}"> 81 79 <tr class="prop"> 82 <td valign="top" class="name"> 83 </td> 84 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assetSubItemExtendedAttributes','errors')}"> 85 <g:link controller="assetSubItemExtendedAttributeDetailed" action="show" id="${a.id}"> 86 ${a?.encodeAsHTML()} 80 <td valign="top" class="groupName"> 81 ${a.extendedAttributeType.name.encodeAsHTML()}: 82 </td> 83 84 <td valign="top" style="text-align:left;" class="value"> 85 <g:link controller="assetSubItemExtendedAttributeDetailed" action="edit" id="${a.id}"> 86 ${a.value.encodeAsHTML()} 87 87 </g:link> 88 88 </td> 89 89 90 </tr> 90 91 </g:each> 91 92 92 93 <tr class="prop"> 93 <td valign="top" class=" groupHeader">94 </td> 95 <td valign="top" class="value">94 <td valign="top" class="name"> 95 </td> 96 <td valign="top" style="text-align:left;" class="value"> 96 97 <g:link controller="assetSubItemExtendedAttributeDetailed" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">+Add Extended Attribute</g:link> 97 98 </td> -
trunk/grails-app/views/assetSubItemDetailed/show.gsp
r659 r683 63 63 64 64 <tr class="prop"> 65 <td valign="top" class="groupHeader"> 66 <label for="name">Extended Attributes</label> 67 </td> 68 <td valign="top" class="value"> 65 <td valign="top" class="groupHeader">Extended Attributes</td> 66 <td valign="top" style="text-align:left;" class="value"> 69 67 </td> 70 68 </tr> 71 72 <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> 73 <tr class="prop"> 74 <td valign="top" class="name"></td> 75 <td valign="top" style="text-align:left;" class="value"> 76 <g:link controller="assetSubItemExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link> 77 </td> 78 </tr> 69 70 <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes.sort { p1, p2 -> p1.extendedAttributeType.name.compareToIgnoreCase(p2.extendedAttributeType.name) }}"> 71 <tr class="prop"> 72 <td valign="top" class="groupName"> 73 ${a.extendedAttributeType.name.encodeAsHTML()}: 74 </td> 75 76 <td valign="top" style="text-align:left;" class="value"> 77 <g:link controller="assetSubItemExtendedAttributeDetailed" action="edit" id="${a.id}"> 78 ${a.value.encodeAsHTML()} 79 </g:link> 80 </td> 81 82 </tr> 79 83 </g:each> 80 84
Note: See TracChangeset
for help on using the changeset viewer.