[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"> |
---|
[221] | 27 | <span class="searchButtons"> |
---|
| 28 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
| 29 | </span> |
---|
[156] | 30 | Results:${assetInstanceTotal} |
---|
| 31 | </div> |
---|
| 32 | |
---|
[139] | 33 | <div class="list"> |
---|
| 34 | <table> |
---|
| 35 | <thead> |
---|
| 36 | <tr> |
---|
| 37 | |
---|
[156] | 38 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
[139] | 39 | |
---|
[156] | 40 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
[139] | 41 | |
---|
[271] | 42 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
[139] | 43 | |
---|
[156] | 44 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
[271] | 45 | |
---|
| 46 | <g:sortableColumn property="section" title="Section" params="${filterParams}" /> |
---|
[139] | 47 | |
---|
| 48 | <th></th> |
---|
| 49 | |
---|
| 50 | </tr> |
---|
| 51 | </thead> |
---|
| 52 | <tbody> |
---|
| 53 | <g:each in="${assetInstanceList}" status="i" var="assetInstance"> |
---|
| 54 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/> |
---|
| 55 | |
---|
| 56 | <td>${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
| 57 | |
---|
| 58 | <td>${fieldValue(bean:assetInstance, field:'name')}</td> |
---|
| 59 | |
---|
[271] | 60 | <td>${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
[139] | 61 | |
---|
| 62 | <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
| 63 | |
---|
[271] | 64 | <td>${fieldValue(bean:assetInstance, field:'section')}</td> |
---|
| 65 | |
---|
[139] | 66 | <td> |
---|
| 67 | <g:link action="show" id="${assetInstance.id}"> |
---|
[182] | 68 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
[139] | 69 | </g:link> |
---|
| 70 | </td> |
---|
| 71 | |
---|
| 72 | </tr> |
---|
| 73 | </g:each> |
---|
| 74 | </tbody> |
---|
| 75 | </table> |
---|
| 76 | </div> |
---|
| 77 | <div class="paginateButtons"> |
---|
[156] | 78 | <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 79 | </div> |
---|
[271] | 80 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
| 81 | <br /> |
---|
| 82 | Asset Tree: |
---|
| 83 | <g:link action="exportAssetTree"> |
---|
| 84 | Export |
---|
| 85 | </g:link> |
---|
| 86 | / |
---|
| 87 | <g:link action="exportAssetTreeTemplate"> |
---|
| 88 | Template |
---|
| 89 | </g:link> |
---|
| 90 | / |
---|
| 91 | <g:link action="importAssetTree"> |
---|
| 92 | Import |
---|
| 93 | </g:link> |
---|
[156] | 94 | |
---|
| 95 | <filterpane:filterPane domainBean="Asset" |
---|
| 96 | title="Search" |
---|
| 97 | action="search" |
---|
| 98 | class="overlayPane" |
---|
| 99 | excludeProperties="" |
---|
[271] | 100 | associatedProperties="section.name" |
---|
| 101 | filterPropertyValues="${['section.name':[values:Section.list()] ]}" /> |
---|
[156] | 102 | </div> <!-- end body div --> |
---|
[139] | 103 | </body> |
---|
| 104 | </html> |
---|