[116] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 4 | <meta name="layout" content="main" /> |
---|
| 5 | <title>Supplier List</title> |
---|
[955] | 6 | <filterpane:includes /> |
---|
[374] | 7 | <nav:resources override="true"/> |
---|
[116] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[374] | 11 | <nav:renderSubItems group="navAlt"/> |
---|
[116] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[955] | 14 | <g:render template="/shared/messages" /> |
---|
| 15 | |
---|
| 16 | <filterpane:currentCriteria domainBean="Supplier" |
---|
| 17 | action="list" |
---|
| 18 | dateFormat="EEE, dd-MMM-yyyy" |
---|
| 19 | removeImgDir="images" |
---|
| 20 | removeImgFile="bullet_delete.png" |
---|
| 21 | title="Search"/> |
---|
| 22 | |
---|
| 23 | <div class="paginateButtons"> |
---|
| 24 | Results: ${supplierInstanceList.size()} / ${supplierInstanceTotal} |
---|
| 25 | <span class="searchButtons"> |
---|
| 26 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
| 27 | </span> |
---|
| 28 | </div> |
---|
| 29 | |
---|
| 30 | <br /> |
---|
| 31 | |
---|
| 32 | <g:if test="${supplierInstanceList.size() > 0}"> |
---|
| 33 | |
---|
| 34 | <div class="list"> |
---|
| 35 | <table> |
---|
| 36 | <thead> |
---|
[116] | 37 | <tr> |
---|
[374] | 38 | |
---|
[955] | 39 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
[374] | 40 | |
---|
[955] | 41 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
[374] | 42 | |
---|
[955] | 43 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
[374] | 44 | |
---|
[955] | 45 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
| 46 | |
---|
[374] | 47 | <th>Supplier Type</th> |
---|
[955] | 48 | |
---|
[374] | 49 | <th></th> |
---|
[955] | 50 | |
---|
[116] | 51 | </tr> |
---|
[955] | 52 | </thead> |
---|
| 53 | <tbody> |
---|
| 54 | <g:each in="${supplierInstanceList}" status="i" var="supplierInstance"> |
---|
| 55 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
[374] | 56 | |
---|
[955] | 57 | <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'> |
---|
| 58 | ${fieldValue(bean:supplierInstance, field:'id')} |
---|
| 59 | </td> |
---|
| 60 | |
---|
| 61 | <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'> |
---|
| 62 | ${fieldValue(bean:supplierInstance, field:'name')} |
---|
| 63 | </td> |
---|
| 64 | |
---|
| 65 | <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'> |
---|
| 66 | ${fieldValue(bean:supplierInstance, field:'description')} |
---|
| 67 | </td> |
---|
| 68 | |
---|
| 69 | <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'> |
---|
| 70 | ${fieldValue(bean:supplierInstance, field:'isActive')} |
---|
| 71 | </td> |
---|
| 72 | |
---|
| 73 | <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'> |
---|
| 74 | ${fieldValue(bean:supplierInstance, field:'supplierType')} |
---|
| 75 | </td> |
---|
| 76 | |
---|
| 77 | <td class="notClickable"> |
---|
| 78 | <g:link action="show" id="${supplierInstance.id}"> |
---|
| 79 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 80 | </g:link> |
---|
| 81 | </td> |
---|
| 82 | |
---|
| 83 | </tr> |
---|
| 84 | </g:each> |
---|
| 85 | </tbody> |
---|
| 86 | </table> |
---|
| 87 | </div> |
---|
| 88 | </g:if> |
---|
| 89 | |
---|
[116] | 90 | <div class="paginateButtons"> |
---|
[955] | 91 | <g:paginate total="${supplierInstanceTotal}" params="${filterParams}" /> |
---|
[116] | 92 | </div> |
---|
[955] | 93 | |
---|
| 94 | <filterpane:filterPane domainBean="Supplier" |
---|
| 95 | title="Search" |
---|
| 96 | action="list" |
---|
| 97 | class="overlayPane" |
---|
| 98 | associatedProperties="supplierType.name" |
---|
| 99 | filterPropertyValues="${['supplierType.name':[values: associatedPropertyValues.supplierTypeList]]}" /> |
---|
| 100 | |
---|
[116] | 101 | </div> |
---|
| 102 | </body> |
---|
| 103 | </html> |
---|