[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"> |
---|
[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 | |
---|
[156] | 42 | <g:sortableColumn property="assetType" title="Asset Type" params="${filterParams}" /> |
---|
[139] | 43 | |
---|
[156] | 44 | <g:sortableColumn property="systemSection" title="System Section" params="${filterParams}" /> |
---|
[139] | 45 | |
---|
[156] | 46 | <g:sortableColumn property="isActive" title="Is Active" 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 | |
---|
| 60 | <td>${fieldValue(bean:assetInstance, field:'assetType')}</td> |
---|
| 61 | |
---|
| 62 | <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> |
---|
| 63 | |
---|
| 64 | <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
| 65 | |
---|
| 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> |
---|
[156] | 80 | |
---|
| 81 | <filterpane:filterPane domainBean="Asset" |
---|
| 82 | title="Search" |
---|
| 83 | action="search" |
---|
| 84 | class="overlayPane" |
---|
| 85 | excludeProperties="" |
---|
| 86 | associatedProperties="systemSection.name, assetType.name" |
---|
| 87 | filterPropertyValues="${['systemSection.name':[values:SystemSection.list()], |
---|
| 88 | 'assetType.name':[values:AssetType.list()] ]}" /> |
---|
| 89 | </div> <!-- end body div --> |
---|
[139] | 90 | </body> |
---|
| 91 | </html> |
---|