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