[139] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
| 7 | <title>Asset Search</title> |
---|
| 8 | <nav:resources override="true"/> |
---|
[156] | 9 | <filterpane:includes /> |
---|
[271] | 10 | <export:resource /> |
---|
[139] | 11 | </head> |
---|
| 12 | <body> |
---|
| 13 | <div class="nav"> |
---|
| 14 | <nav:renderSubItems group="nav"/> |
---|
| 15 | </div> |
---|
| 16 | <div class="body"> |
---|
[284] | 17 | <g:render template="/shared/messages" /> |
---|
| 18 | |
---|
[156] | 19 | <filterpane:currentCriteria domainBean="Asset" |
---|
| 20 | action="search" |
---|
| 21 | dateFormat="${'EEE, dd-MMM-yyyy'}" |
---|
| 22 | removeImgDir="images" |
---|
| 23 | removeImgFile="bullet_delete.png" |
---|
| 24 | title="Search"/> |
---|
| 25 | |
---|
| 26 | <div class="paginateButtons"> |
---|
[326] | 27 | Results: ${assetInstanceList.size()} / ${assetInstanceTotal} |
---|
[221] | 28 | <span class="searchButtons"> |
---|
| 29 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
| 30 | </span> |
---|
[156] | 31 | </div> |
---|
| 32 | |
---|
[326] | 33 | <jsUtil:toggleControl toggleId="options" |
---|
| 34 | imageId="optionsImg" |
---|
| 35 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
---|
| 36 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
---|
| 37 | text="${g.message(code: 'default.options.text')}" |
---|
| 38 | /> |
---|
| 39 | |
---|
| 40 | <div id="options" style="display:none;"> |
---|
| 41 | <g:form method="post" > |
---|
| 42 | <g:hiddenField name="params" value="${filterParams}" /> |
---|
| 43 | <div class="dialog"> |
---|
| 44 | <table> |
---|
| 45 | <tbody> |
---|
| 46 | |
---|
| 47 | <tr class="prop"> |
---|
| 48 | <td valign="top" class="name"> |
---|
| 49 | <label for="max">Results per page:</label> |
---|
| 50 | </td> |
---|
| 51 | <td valign="top" class="value"> |
---|
| 52 | <input type="text" maxlength="4" id="description" name="newMax" value="${params.max}"/> |
---|
| 53 | |
---|
| 54 | <span class="buttons"> |
---|
| 55 | <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> |
---|
| 56 | </span> |
---|
| 57 | </td> |
---|
| 58 | </tr> |
---|
| 59 | |
---|
| 60 | <tr class="prop"> |
---|
| 61 | <td valign="top" class="name"> |
---|
| 62 | <label for="max">Asset Tree:</label> |
---|
| 63 | </td> |
---|
| 64 | <td valign="top" class="value"> |
---|
| 65 | <g:link action="exportAssetTree"> |
---|
| 66 | Export |
---|
| 67 | </g:link> |
---|
| 68 | / |
---|
| 69 | <g:link action="exportAssetTreeTemplate"> |
---|
| 70 | Template |
---|
| 71 | </g:link> |
---|
| 72 | / |
---|
| 73 | <g:link action="importAssetTree"> |
---|
| 74 | Import |
---|
| 75 | </g:link> |
---|
| 76 | </td> |
---|
| 77 | </tr> |
---|
| 78 | |
---|
| 79 | </tbody> |
---|
| 80 | </table> |
---|
| 81 | </div> |
---|
| 82 | </g:form> |
---|
| 83 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
| 84 | </div> |
---|
| 85 | |
---|
| 86 | <br /> |
---|
| 87 | |
---|
| 88 | <g:if test="${assetInstanceList.size() > 10}"> |
---|
[356] | 89 | <g:if test="${assetInstanceTotal > assetInstanceList.size()}"> |
---|
| 90 | <div class="paginateButtons"> |
---|
| 91 | <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> |
---|
| 92 | </div> |
---|
| 93 | </g:if> |
---|
[326] | 94 | </g:if> |
---|
| 95 | |
---|
[139] | 96 | <div class="list"> |
---|
| 97 | <table> |
---|
| 98 | <thead> |
---|
| 99 | <tr> |
---|
| 100 | |
---|
[156] | 101 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
[139] | 102 | |
---|
[156] | 103 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
[139] | 104 | |
---|
[271] | 105 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
[139] | 106 | |
---|
[156] | 107 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
[271] | 108 | |
---|
| 109 | <g:sortableColumn property="section" title="Section" params="${filterParams}" /> |
---|
[139] | 110 | |
---|
| 111 | <th></th> |
---|
| 112 | |
---|
| 113 | </tr> |
---|
| 114 | </thead> |
---|
| 115 | <tbody> |
---|
| 116 | <g:each in="${assetInstanceList}" status="i" var="assetInstance"> |
---|
| 117 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/> |
---|
| 118 | |
---|
| 119 | <td>${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
| 120 | |
---|
| 121 | <td>${fieldValue(bean:assetInstance, field:'name')}</td> |
---|
| 122 | |
---|
[271] | 123 | <td>${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
[139] | 124 | |
---|
| 125 | <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
| 126 | |
---|
[271] | 127 | <td>${fieldValue(bean:assetInstance, field:'section')}</td> |
---|
| 128 | |
---|
[139] | 129 | <td> |
---|
| 130 | <g:link action="show" id="${assetInstance.id}"> |
---|
[182] | 131 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
[139] | 132 | </g:link> |
---|
| 133 | </td> |
---|
| 134 | |
---|
| 135 | </tr> |
---|
| 136 | </g:each> |
---|
| 137 | </tbody> |
---|
| 138 | </table> |
---|
| 139 | </div> |
---|
| 140 | <div class="paginateButtons"> |
---|
[156] | 141 | <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 142 | </div> |
---|
[156] | 143 | |
---|
| 144 | <filterpane:filterPane domainBean="Asset" |
---|
| 145 | title="Search" |
---|
| 146 | action="search" |
---|
| 147 | class="overlayPane" |
---|
| 148 | excludeProperties="" |
---|
[271] | 149 | associatedProperties="section.name" |
---|
| 150 | filterPropertyValues="${['section.name':[values:Section.list()] ]}" /> |
---|
[156] | 151 | </div> <!-- end body div --> |
---|
[139] | 152 | </body> |
---|
| 153 | </html> |
---|