[441] | 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>CostCode List</title> |
---|
| 8 | <nav:resources override="true"/> |
---|
| 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
| 12 | <nav:renderSubItems group="navAlt"/> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <g:render template="/shared/messages" /> |
---|
| 16 | <div class="list"> |
---|
| 17 | <table> |
---|
| 18 | <thead> |
---|
| 19 | <tr> |
---|
| 20 | |
---|
| 21 | <g:sortableColumn property="id" title="Id" /> |
---|
| 22 | |
---|
| 23 | <g:sortableColumn property="name" title="Name" /> |
---|
| 24 | |
---|
[633] | 25 | <g:sortableColumn property="purchasingGroup" title="Group" /> |
---|
| 26 | |
---|
[441] | 27 | <g:sortableColumn property="description" title="Description" /> |
---|
| 28 | |
---|
| 29 | <g:sortableColumn property="isActive" title="Is Active" /> |
---|
| 30 | |
---|
| 31 | <th></th> |
---|
| 32 | |
---|
| 33 | </tr> |
---|
| 34 | </thead> |
---|
| 35 | <tbody> |
---|
| 36 | <g:each in="${costCodeInstanceList}" status="i" var="costCodeInstance"> |
---|
[498] | 37 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[441] | 38 | |
---|
[498] | 39 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
---|
| 40 | ${fieldValue(bean:costCodeInstance, field:'id')} |
---|
| 41 | </td> |
---|
[441] | 42 | |
---|
[498] | 43 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
---|
| 44 | ${fieldValue(bean:costCodeInstance, field:'name')} |
---|
| 45 | </td> |
---|
[441] | 46 | |
---|
[498] | 47 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
---|
[633] | 48 | ${fieldValue(bean:costCodeInstance, field:'purchasingGroup')} |
---|
| 49 | </td> |
---|
| 50 | |
---|
| 51 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
---|
[498] | 52 | ${fieldValue(bean:costCodeInstance, field:'description')} |
---|
| 53 | </td> |
---|
[441] | 54 | |
---|
[498] | 55 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
---|
| 56 | ${fieldValue(bean:costCodeInstance, field:'isActive')} |
---|
| 57 | </td> |
---|
[441] | 58 | |
---|
[498] | 59 | <td class="notClickable"> |
---|
[441] | 60 | <g:link action="show" id="${costCodeInstance.id}"> |
---|
| 61 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 62 | </g:link> |
---|
| 63 | </td> |
---|
| 64 | |
---|
| 65 | </tr> |
---|
| 66 | </g:each> |
---|
| 67 | </tbody> |
---|
| 68 | </table> |
---|
| 69 | </div> |
---|
| 70 | <div class="paginateButtons"> |
---|
| 71 | <g:paginate total="${costCodeInstanceTotal}" /> |
---|
| 72 | </div> |
---|
| 73 | </div> |
---|
| 74 | </body> |
---|
| 75 | </html> |
---|