[118] | 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 List</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New Asset</g:link></span> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <h1>Asset List</h1> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <div class="list"> |
---|
| 20 | <table> |
---|
| 21 | <thead> |
---|
| 22 | <tr> |
---|
| 23 | |
---|
| 24 | <g:sortableColumn property="id" title="Id" /> |
---|
[124] | 25 | |
---|
| 26 | <g:sortableColumn property="name" title="Name" /> |
---|
| 27 | |
---|
| 28 | <g:sortableColumn property="assetType" title="Asset Type" /> |
---|
[118] | 29 | |
---|
[124] | 30 | <g:sortableColumn property="systemSection" title="System Section" /> |
---|
| 31 | |
---|
| 32 | <g:sortableColumn property="isActive" title="Is Active" /> |
---|
| 33 | |
---|
| 34 | <th></th> |
---|
[118] | 35 | |
---|
| 36 | </tr> |
---|
| 37 | </thead> |
---|
| 38 | <tbody> |
---|
| 39 | <g:each in="${assetInstanceList}" status="i" var="assetInstance"> |
---|
[124] | 40 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/> |
---|
[118] | 41 | |
---|
[124] | 42 | <td>${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
| 43 | |
---|
| 44 | <td>${fieldValue(bean:assetInstance, field:'name')}</td> |
---|
| 45 | |
---|
[118] | 46 | <td>${fieldValue(bean:assetInstance, field:'assetType')}</td> |
---|
[124] | 47 | |
---|
| 48 | <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> |
---|
| 49 | |
---|
[118] | 50 | <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
[124] | 51 | |
---|
| 52 | <td> |
---|
| 53 | <g:link action="show" id="${assetInstance.id}"> |
---|
| 54 | <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> |
---|
| 55 | </g:link> |
---|
| 56 | </td> |
---|
[118] | 57 | |
---|
| 58 | </tr> |
---|
| 59 | </g:each> |
---|
| 60 | </tbody> |
---|
| 61 | </table> |
---|
| 62 | </div> |
---|
| 63 | <div class="paginateButtons"> |
---|
| 64 | <g:paginate total="${assetInstanceTotal}" /> |
---|
| 65 | </div> |
---|
| 66 | </div> |
---|
| 67 | </body> |
---|
| 68 | </html> |
---|