[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 /> |
---|
[139] | 10 | </head> |
---|
| 11 | <body> |
---|
| 12 | <div class="nav"> |
---|
| 13 | <nav:renderSubItems group="nav"/> |
---|
| 14 | </div> |
---|
| 15 | <div class="body"> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
[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"> |
---|
| 27 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
| 28 | Results:${assetInstanceTotal} |
---|
| 29 | </div> |
---|
| 30 | |
---|
[139] | 31 | <div class="list"> |
---|
| 32 | <table> |
---|
| 33 | <thead> |
---|
| 34 | <tr> |
---|
| 35 | |
---|
[156] | 36 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
[139] | 37 | |
---|
[156] | 38 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
[139] | 39 | |
---|
[156] | 40 | <g:sortableColumn property="assetType" title="Asset Type" params="${filterParams}" /> |
---|
[139] | 41 | |
---|
[156] | 42 | <g:sortableColumn property="systemSection" title="System Section" params="${filterParams}" /> |
---|
[139] | 43 | |
---|
[156] | 44 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
[139] | 45 | |
---|
| 46 | <th></th> |
---|
| 47 | |
---|
| 48 | </tr> |
---|
| 49 | </thead> |
---|
| 50 | <tbody> |
---|
| 51 | <g:each in="${assetInstanceList}" status="i" var="assetInstance"> |
---|
| 52 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/> |
---|
| 53 | |
---|
| 54 | <td>${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
| 55 | |
---|
| 56 | <td>${fieldValue(bean:assetInstance, field:'name')}</td> |
---|
| 57 | |
---|
| 58 | <td>${fieldValue(bean:assetInstance, field:'assetType')}</td> |
---|
| 59 | |
---|
| 60 | <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> |
---|
| 61 | |
---|
| 62 | <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
| 63 | |
---|
| 64 | <td> |
---|
| 65 | <g:link action="show" id="${assetInstance.id}"> |
---|
[151] | 66 | <img src="${resource(dir:'images/skin',file:'database_table.png')}" alt="Show" /> |
---|
[139] | 67 | </g:link> |
---|
| 68 | </td> |
---|
| 69 | |
---|
| 70 | </tr> |
---|
| 71 | </g:each> |
---|
| 72 | </tbody> |
---|
| 73 | </table> |
---|
| 74 | </div> |
---|
| 75 | <div class="paginateButtons"> |
---|
[156] | 76 | <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 77 | </div> |
---|
[156] | 78 | |
---|
| 79 | <filterpane:filterPane domainBean="Asset" |
---|
| 80 | title="Search" |
---|
| 81 | action="search" |
---|
| 82 | class="overlayPane" |
---|
| 83 | excludeProperties="" |
---|
| 84 | associatedProperties="systemSection.name, assetType.name" |
---|
| 85 | filterPropertyValues="${['systemSection.name':[values:SystemSection.list()], |
---|
| 86 | 'assetType.name':[values:AssetType.list()] ]}" /> |
---|
| 87 | </div> <!-- end body div --> |
---|
[139] | 88 | </body> |
---|
| 89 | </html> |
---|