Changeset 278 for trunk/grails-app/views
- Timestamp:
- Jan 20, 2010, 8:34:36 PM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetDetailed/copy.gsp
r271 r278 13 13 </div> 14 14 <div class="body"> 15 <g:if test="${flash.message}"> 16 <div class="message">${flash.message}</div> 17 </g:if> 15 <g:render template="/shared/messages" /> 18 16 <g:hasErrors bean="${assetInstance}"> 19 17 <div class="errors"> … … 35 33 </td> 36 34 </tr> 35 36 <tr class="prop"> 37 <td valign="top" class="name"> 38 <label for="copyMethod">Sub Items:</label> 39 </td> 40 <td valign="top" class="value"> 41 <p> 42 <input type="radio" name="copyMethod" value="link" /> 43 Link 44 <g:helpBalloon class="helpballoon" code="asset.copy.method" /> 45 </p> 46 <p> 47 <input type="radio" name="copyMethod" value="copy" /> 48 Copy 49 </p> 50 </td> 51 </tr> 37 52 38 53 <tr class="prop"> -
trunk/grails-app/views/assetDetailed/show.gsp
r271 r278 7 7 <title>Show Asset</title> 8 8 <nav:resources override="true"/> 9 <g:javascript src="overlayPane.js" /> 9 10 </head> 10 11 <body> … … 19 20 <table> 20 21 <tbody> 21 22 22 23 <tr class="prop"> 23 24 <td valign="top" class="name">Id:</td> 24 25 25 26 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> 26 27 27 28 </tr> 28 29 29 30 <tr class="prop"> 30 31 <td valign="top" class="name">Asset:</td> 31 32 32 33 <td valign="top" style="text-align:left;" class="value"> 33 ${assetInstance.encodeAsHTML()} 34 <g:link controller="assetSubItemDetailed" params="['asset.id':assetInstance?.id]" action="create"> 35 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item"/> 36 </g:link> 37 <g:link params="['asset.id':assetInstance?.id]" action="copy"> 38 <img src="${resource(dir:'images/skin',file:'page_copy.png')}" alt="Copy" title="Copy Asset"/> 39 </g:link> 40 <br /> 41 <br /> 42 <ul> 43 <g:each var="assetSubItem1" in="${assetInstance.assetSubItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 44 <li> 45 <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem1.id}">${assetSubItem1?.encodeAsHTML()}</g:link> 46 <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem1?.id]" action="create"> 47 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> 48 </g:link> 49 </li> 50 <ul> 51 <g:each var="assetSubItem2" in="${assetSubItem1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 52 <li> 53 <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem2.id}">${assetSubItem2?.encodeAsHTML()}</g:link> 54 <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem2?.id]" action="create"> 55 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> 56 </g:link> 57 </li> 58 <ul> 59 <g:each var="assetSubItem3" in="${assetSubItem2.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 60 <li> 61 <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem3.id}">${assetSubItem3?.encodeAsHTML()}</g:link> 62 <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem3?.id]" action="create"> 63 <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> 64 </g:link> 65 </li> 66 <ul> 67 <g:each var="assetSubItem4" in="${assetSubItem3.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 68 <li><g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem4.id}">${assetSubItem4?.encodeAsHTML()}</g:link></li> 69 </g:each> <!--assetSubItem4--> 70 </ul> 71 </g:each> <!--assetSubItem3--> 72 </ul> 73 </g:each> <!--assetSubItem2--> 74 </ul> 75 <br /> 76 <br /> 77 </g:each> <!--assetSubItem1--> 78 </ul> 34 <g:render template="/shared/assetTree" /> 79 35 </td> 80 36 81 37 </tr> 82 83 <tr class="prop">84 <td valign="top" class="name">Description:</td>85 86 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td>87 88 </tr>89 90 <tr class="prop">91 <td valign="top" class="name">Is Active:</td>92 93 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td>94 95 </tr>96 97 <tr class="prop">98 <td valign="top" class="name">Section:</td>99 100 <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td>101 102 </tr>103 104 <tr class="prop">105 <td valign="top" class="name">Asset Extended Attributes:</td>106 107 <td valign="top" style="text-align:left;" class="value">108 <ul>109 <g:each var="a" in="${assetInstance.assetExtendedAttributes}">110 <li><g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>111 </g:each>112 </ul>113 </td>114 115 </tr>116 117 <tr class="prop">118 <td valign="top" class="name">Maintenance Actions:</td>119 120 <td valign="top" style="text-align:left;" class="value">121 <ul>122 <g:each var="m" in="${assetInstance.maintenanceActions}">123 <li><g:link controller="maintenanceActionDetailed" action="edit" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>124 </g:each>125 </ul>126 </td>127 128 </tr>129 38 39 <tr class="prop"> 40 <td valign="top" class="name">Description:</td> 41 42 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 43 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name">Is Active:</td> 48 49 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Section:</td> 55 56 <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> 57 58 </tr> 59 60 <tr class="prop"> 61 <td valign="top" class="name">Asset Extended Attributes:</td> 62 63 <td valign="top" style="text-align:left;" class="value"> 64 <ul> 65 <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> 66 <li><g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 67 </g:each> 68 </ul> 69 </td> 70 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name">Maintenance Actions:</td> 75 76 <td valign="top" style="text-align:left;" class="value"> 77 <ul> 78 <g:each var="m" in="${assetInstance.maintenanceActions}"> 79 <li><g:link controller="maintenanceActionDetailed" action="edit" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 80 </g:each> 81 </ul> 82 </td> 83 84 </tr> 85 130 86 </tbody> 131 87 </table>
Note: See TracChangeset
for help on using the changeset viewer.