Last change
on this file since 58 was
58,
checked in by gav, 15 years ago
|
Configure BootStrap? with latest concepts.
Install and setup Acegi plugin with custom views.
Test Fixture plugin in a test app but couldn't get it to work with Acegi encodePassword() so gave up.
|
File size:
1.6 KB
|
Rev | Line | |
---|
[58] | 1 | <head> |
---|
| 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>${personClassName} List</title> |
---|
| 4 | </head> |
---|
| 5 | |
---|
| 6 | <body> |
---|
| 7 | |
---|
| 8 | <div class="nav"> |
---|
| 9 | <span class="menuButton"><a class="home" href="\${createLinkTo(dir:'')}">Home</a></span> |
---|
| 10 | <span class="menuButton"><g:link class="create" action="create">New ${personClassName}</g:link></span> |
---|
| 11 | </div> |
---|
| 12 | |
---|
| 13 | <div class="body"> |
---|
| 14 | <h1>${personClassName} List</h1> |
---|
| 15 | <g:if test="\${flash.message}"> |
---|
| 16 | <div class="message">\${flash.message}</div> |
---|
| 17 | </g:if> |
---|
| 18 | <div class="list"> |
---|
| 19 | <table> |
---|
| 20 | <thead> |
---|
| 21 | <tr> |
---|
| 22 | <g:sortableColumn property="id" title="Id" /> |
---|
| 23 | <g:sortableColumn property="username" title="Login Name" /> |
---|
| 24 | <g:sortableColumn property="userRealName" title="Full Name" /> |
---|
| 25 | <g:sortableColumn property="enabled" title="Enabled" /> |
---|
| 26 | <g:sortableColumn property="description" title="Description" /> |
---|
| 27 | <th> </th> |
---|
| 28 | </tr> |
---|
| 29 | </thead> |
---|
| 30 | <tbody> |
---|
| 31 | <g:each in="\${personList}" status="i" var="person"> |
---|
| 32 | <tr class="\${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 33 | <td>\${person.id}</td> |
---|
| 34 | <td>\${person.username?.encodeAsHTML()}</td> |
---|
| 35 | <td>\${person.userRealName?.encodeAsHTML()}</td> |
---|
| 36 | <td>\${person.enabled?.encodeAsHTML()}</td> |
---|
| 37 | <td>\${person.description?.encodeAsHTML()}</td> |
---|
| 38 | <td class="actionButtons"> |
---|
| 39 | <span class="actionButton"> |
---|
| 40 | <g:link action="show" id="\${person.id}">Show</g:link> |
---|
| 41 | </span> |
---|
| 42 | </td> |
---|
| 43 | </tr> |
---|
| 44 | </g:each> |
---|
| 45 | </tbody> |
---|
| 46 | </table> |
---|
| 47 | </div> |
---|
| 48 | |
---|
| 49 | <div class="paginateButtons"> |
---|
| 50 | <g:paginate total="\${${personClass}.count()}" /> |
---|
| 51 | </div> |
---|
| 52 | |
---|
| 53 | </div> |
---|
| 54 | </body> |
---|
Note: See
TracBrowser
for help on using the repository browser.