Changeset 388 for trunk/grails-app/views/assetSubItemDetailed/show.gsp
- Timestamp:
- Feb 18, 2010, 8:12:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetSubItemDetailed/show.gsp
r369 r388 55 55 56 56 <tr class="prop"> 57 <td valign="top" class="name"> Asset Sub ItemExtended Attributes:</td>57 <td valign="top" class="name">Extended Attributes:</td> 58 58 59 59 <td valign="top" style="text-align:left;" class="value"> … … 61 61 <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> 62 62 <li><g:link controller="assetSubItemExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 63 </g:each> 64 </ul> 65 </td> 66 67 </tr> 68 69 <tr class="prop"> 70 <td valign="top" class="name">Parent Item:</td> 71 72 <td valign="top" class="value"> 73 <g:if test="${assetSubItemInstance.assets}"> 74 Assigned to assets. 75 </g:if> 76 <g:else> 77 <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemInstance?.parentItem?.id}"> 78 ${assetSubItemInstance?.parentItem?.encodeAsHTML()} 79 </g:link> 80 </g:else> 81 </td> 82 83 </tr> 84 85 <tr class="prop"> 86 <td valign="top" class="name">Assets:</td> 87 88 <td valign="top" style="text-align:left;" class="value"> 89 <g:if test="${assetSubItemInstance.parentItem}" > 90 Assigned to parent item. 91 </g:if> 92 <g:else> 93 <ul> 94 <g:each var="a" in="${ assetSubItemInstance.assets.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 95 <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 96 </g:each> 97 </ul> 98 </g:else> 99 </td> 100 101 </tr> 102 103 <tr class="prop"> 104 <td valign="top" class="name">Sub Items:</td> 105 106 <td valign="top" style="text-align:left;" class="value"> 107 <ul> 108 <g:each var="s" in="${assetSubItemInstance.subItems}"> 109 <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 63 110 </g:each> 64 111 </ul> … … 80 127 </tr> 81 128 82 <tr class="prop">83 <td valign="top" class="name">Parent Item:</td>84 85 <td valign="top" class="value"><g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemInstance?.parentItem?.id}">${assetSubItemInstance?.parentItem?.encodeAsHTML()}</g:link></td>86 87 </tr>88 89 <tr class="prop">90 <td valign="top" class="name">Assets:</td>91 92 <td valign="top" style="text-align:left;" class="value">93 <ul>94 <g:each var="a" in="${assetSubItemInstance.assets}">95 <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>96 </g:each>97 </ul>98 </td>99 100 </tr>101 102 <tr class="prop">103 <td valign="top" class="name">Sub Items:</td>104 105 <td valign="top" style="text-align:left;" class="value">106 <ul>107 <g:each var="s" in="${assetSubItemInstance.subItems}">108 <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>109 </g:each>110 </ul>111 </td>112 113 </tr>114 115 129 </tbody> 116 130 </table>
Note: See TracChangeset
for help on using the changeset viewer.