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> |
---|
6 | <filterpane:includes /> |
---|
7 | <nav:resources override="true"/> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <nav:renderSubItems group="navAlt"/> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
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> |
---|
37 | <tr> |
---|
38 | |
---|
39 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
40 | |
---|
41 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
42 | |
---|
43 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
44 | |
---|
45 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
46 | |
---|
47 | <th>Supplier Type</th> |
---|
48 | |
---|
49 | <th></th> |
---|
50 | |
---|
51 | </tr> |
---|
52 | </thead> |
---|
53 | <tbody> |
---|
54 | <g:each in="${supplierInstanceList}" status="i" var="supplierInstance"> |
---|
55 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
56 | |
---|
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 | |
---|
90 | <div class="paginateButtons"> |
---|
91 | <g:paginate total="${supplierInstanceTotal}" params="${filterParams}" /> |
---|
92 | </div> |
---|
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 | |
---|
101 | </div> |
---|
102 | </body> |
---|
103 | </html> |
---|