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