[118] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[273] | 7 | <title>Section List</title> |
---|
[385] | 8 | <nav:resources override="true"/> |
---|
[118] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[385] | 12 | <nav:renderSubItems group="navAlt"/> |
---|
[118] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[355] | 15 | <g:render template="/shared/messages" /> |
---|
[118] | 16 | <div class="list"> |
---|
| 17 | <table> |
---|
| 18 | <thead> |
---|
| 19 | <tr> |
---|
| 20 | |
---|
| 21 | <g:sortableColumn property="id" title="Id" /> |
---|
| 22 | |
---|
[273] | 23 | <g:sortableColumn property="name" title="Name" /> |
---|
| 24 | |
---|
[118] | 25 | <g:sortableColumn property="description" title="Description" /> |
---|
| 26 | |
---|
| 27 | <g:sortableColumn property="isActive" title="Is Active" /> |
---|
| 28 | |
---|
[273] | 29 | <th>Department</th> |
---|
| 30 | |
---|
[122] | 31 | <th>Site</th> |
---|
[339] | 32 | |
---|
| 33 | <th></th> |
---|
[122] | 34 | |
---|
[118] | 35 | </tr> |
---|
| 36 | </thead> |
---|
| 37 | <tbody> |
---|
[273] | 38 | <g:each in="${sectionInstanceList}" status="i" var="sectionInstance"> |
---|
[836] | 39 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
[118] | 40 | |
---|
[498] | 41 | <td onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'> |
---|
| 42 | ${fieldValue(bean:sectionInstance, field:'id')} |
---|
| 43 | </td> |
---|
[118] | 44 | |
---|
[498] | 45 | <td onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'> |
---|
| 46 | ${fieldValue(bean:sectionInstance, field:'name')} |
---|
| 47 | </td> |
---|
[118] | 48 | |
---|
[498] | 49 | <td onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'> |
---|
| 50 | ${fieldValue(bean:sectionInstance, field:'description')} |
---|
| 51 | </td> |
---|
[118] | 52 | |
---|
[498] | 53 | <td onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'> |
---|
| 54 | ${fieldValue(bean:sectionInstance, field:'isActive')} |
---|
| 55 | </td> |
---|
[118] | 56 | |
---|
[498] | 57 | <td onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'> |
---|
| 58 | ${fieldValue(bean:sectionInstance, field:'department')} |
---|
| 59 | </td> |
---|
[122] | 60 | |
---|
[498] | 61 | <td onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'> |
---|
| 62 | ${fieldValue(bean:sectionInstance, field:'site')} |
---|
| 63 | </td> |
---|
[339] | 64 | |
---|
[498] | 65 | <td class="notClickable"> |
---|
[339] | 66 | <g:link action="show" id="${sectionInstance.id}"> |
---|
| 67 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 68 | </g:link> |
---|
| 69 | </td> |
---|
[273] | 70 | |
---|
[118] | 71 | </tr> |
---|
| 72 | </g:each> |
---|
| 73 | </tbody> |
---|
| 74 | </table> |
---|
| 75 | </div> |
---|
| 76 | <div class="paginateButtons"> |
---|
[273] | 77 | <g:paginate total="${sectionInstanceTotal}" /> |
---|
[118] | 78 | </div> |
---|
| 79 | </div> |
---|
| 80 | </body> |
---|
| 81 | </html> |
---|