| [441] | 1 | <html> |
|---|
| 2 | <head> |
|---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
|---|
| 4 | <meta name="layout" content="main" /> |
|---|
| 5 | <title>CostCode List</title> |
|---|
| [953] | 6 | <filterpane:includes /> |
|---|
| [441] | 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" /> |
|---|
| [953] | 15 | |
|---|
| 16 | <filterpane:currentCriteria domainBean="CostCode" |
|---|
| 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: ${costCodeInstanceList.size()} / ${costCodeInstanceTotal} |
|---|
| 25 | <span class="searchButtons"> |
|---|
| 26 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
|---|
| 27 | </span> |
|---|
| 28 | </div> |
|---|
| 29 | |
|---|
| 30 | <br /> |
|---|
| 31 | |
|---|
| 32 | <g:if test="${costCodeInstanceList.size() > 0}"> |
|---|
| 33 | |
|---|
| 34 | <div class="list"> |
|---|
| 35 | <table> |
|---|
| 36 | <thead> |
|---|
| [441] | 37 | <tr> |
|---|
| 38 | |
|---|
| [953] | 39 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
|---|
| 40 | |
|---|
| 41 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
|---|
| 42 | |
|---|
| 43 | <g:sortableColumn property="purchasingGroup" title="Group" params="${filterParams}" /> |
|---|
| 44 | |
|---|
| 45 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
|---|
| 46 | |
|---|
| 47 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
|---|
| 48 | |
|---|
| [441] | 49 | <th></th> |
|---|
| [953] | 50 | |
|---|
| [441] | 51 | </tr> |
|---|
| [953] | 52 | </thead> |
|---|
| 53 | <tbody> |
|---|
| 54 | <g:each in="${costCodeInstanceList}" status="i" var="costCodeInstance"> |
|---|
| 55 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
|---|
| [441] | 56 | |
|---|
| [953] | 57 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
|---|
| 58 | ${fieldValue(bean:costCodeInstance, field:'id')} |
|---|
| 59 | </td> |
|---|
| 60 | |
|---|
| 61 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
|---|
| 62 | ${fieldValue(bean:costCodeInstance, field:'name')} |
|---|
| 63 | </td> |
|---|
| 64 | |
|---|
| 65 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
|---|
| 66 | ${fieldValue(bean:costCodeInstance, field:'purchasingGroup')} |
|---|
| 67 | </td> |
|---|
| 68 | |
|---|
| 69 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
|---|
| 70 | ${fieldValue(bean:costCodeInstance, field:'description')} |
|---|
| 71 | </td> |
|---|
| 72 | |
|---|
| 73 | <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'> |
|---|
| 74 | ${fieldValue(bean:costCodeInstance, field:'isActive')} |
|---|
| 75 | </td> |
|---|
| 76 | |
|---|
| 77 | <td class="notClickable"> |
|---|
| 78 | <g:link action="show" id="${costCodeInstance.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 | |
|---|
| [441] | 90 | <div class="paginateButtons"> |
|---|
| [953] | 91 | <g:paginate total="${costCodeInstanceTotal}" params="${filterParams}" /> |
|---|
| [441] | 92 | </div> |
|---|
| [953] | 93 | |
|---|
| 94 | <filterpane:filterPane domainBean="CostCode" |
|---|
| 95 | title="Search" |
|---|
| 96 | action="list" |
|---|
| 97 | class="overlayPane" |
|---|
| 98 | associatedProperties="purchasingGroup.name" |
|---|
| [954] | 99 | filterPropertyValues="${['purchasingGroup.name':[values: associatedPropertyValues.purchasingGroupList]]}" /> |
|---|
| [953] | 100 | |
|---|
| [441] | 101 | </div> |
|---|
| 102 | </body> |
|---|
| 103 | </html> |
|---|