Last change
on this file since 358 was
355,
checked in by gav, 15 years ago
|
Change section views to use shared messages.
|
File size:
2.8 KB
|
Rev | Line | |
---|
[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> |
---|
[118] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[273] | 11 | <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span> |
---|
[118] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[273] | 14 | <h1>Section List</h1> |
---|
[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"> |
---|
[339] | 39 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'/> |
---|
[118] | 40 | |
---|
[339] | 41 | <td>${fieldValue(bean:sectionInstance, field:'id')}</td> |
---|
[118] | 42 | |
---|
[273] | 43 | <td>${fieldValue(bean:sectionInstance, field:'name')}</td> |
---|
[118] | 44 | |
---|
[273] | 45 | <td>${fieldValue(bean:sectionInstance, field:'description')}</td> |
---|
[118] | 46 | |
---|
[273] | 47 | <td>${fieldValue(bean:sectionInstance, field:'isActive')}</td> |
---|
[118] | 48 | |
---|
[273] | 49 | <td>${fieldValue(bean:sectionInstance, field:'department')}</td> |
---|
[122] | 50 | |
---|
[273] | 51 | <td>${fieldValue(bean:sectionInstance, field:'site')}</td> |
---|
[339] | 52 | |
---|
| 53 | <td> |
---|
| 54 | <g:link action="show" id="${sectionInstance.id}"> |
---|
| 55 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 56 | </g:link> |
---|
| 57 | </td> |
---|
[273] | 58 | |
---|
[118] | 59 | </tr> |
---|
| 60 | </g:each> |
---|
| 61 | </tbody> |
---|
| 62 | </table> |
---|
| 63 | </div> |
---|
| 64 | <div class="paginateButtons"> |
---|
[273] | 65 | <g:paginate total="${sectionInstanceTotal}" /> |
---|
[118] | 66 | </div> |
---|
| 67 | </div> |
---|
| 68 | </body> |
---|
| 69 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.