Rev | Line | |
---|
[21] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
| 7 | <title>Entry List</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New Entry</g:link></span> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <h1>Entry List</h1> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <div class="list"> |
---|
| 20 | <table> |
---|
| 21 | <thead> |
---|
| 22 | <tr> |
---|
| 23 | |
---|
| 24 | <g:sortableColumn property="id" title="Id" /> |
---|
| 25 | |
---|
[25] | 26 | <g:sortableColumn property="comments" title="Comments" /> |
---|
[21] | 27 | |
---|
[25] | 28 | <g:sortableColumn property="date" title="Date" /> |
---|
| 29 | |
---|
[21] | 30 | <g:sortableColumn property="duration" title="Duration" /> |
---|
| 31 | |
---|
[25] | 32 | <th>Entry Type</th> |
---|
| 33 | |
---|
| 34 | <th>Person</th> |
---|
| 35 | |
---|
[21] | 36 | </tr> |
---|
| 37 | </thead> |
---|
| 38 | <tbody> |
---|
| 39 | <g:each in="${entryInstanceList}" status="i" var="entryInstance"> |
---|
| 40 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 41 | |
---|
| 42 | <td><g:link action="show" id="${entryInstance.id}">${fieldValue(bean:entryInstance, field:'id')}</g:link></td> |
---|
| 43 | |
---|
[25] | 44 | <td>${fieldValue(bean:entryInstance, field:'comments')}</td> |
---|
[21] | 45 | |
---|
[25] | 46 | <td>${fieldValue(bean:entryInstance, field:'date')}</td> |
---|
[21] | 47 | |
---|
| 48 | <td>${fieldValue(bean:entryInstance, field:'duration')}</td> |
---|
| 49 | |
---|
[25] | 50 | <td>${fieldValue(bean:entryInstance, field:'entryType')}</td> |
---|
[21] | 51 | |
---|
[25] | 52 | <td>${fieldValue(bean:entryInstance, field:'person')}</td> |
---|
| 53 | |
---|
[21] | 54 | </tr> |
---|
| 55 | </g:each> |
---|
| 56 | </tbody> |
---|
| 57 | </table> |
---|
| 58 | </div> |
---|
| 59 | <div class="paginateButtons"> |
---|
| 60 | <g:paginate total="${Entry.count()}" /> |
---|
| 61 | </div> |
---|
| 62 | </div> |
---|
| 63 | </body> |
---|
| 64 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.