1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
4 | <meta name="layout" content="main" /> |
---|
5 | <title>Person List</title> |
---|
6 | </head> |
---|
7 | <body> |
---|
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 Person</g:link></span> |
---|
11 | </div> |
---|
12 | <div class="body"> |
---|
13 | <h1>Person List</h1> |
---|
14 | <g:if test="${flash.message}"> |
---|
15 | <div class="message">${flash.message}</div> |
---|
16 | </g:if> |
---|
17 | <div class="list"> |
---|
18 | <table> |
---|
19 | <thead> |
---|
20 | <tr> |
---|
21 | |
---|
22 | <g:sortableColumn property="id" title="Id" /> |
---|
23 | |
---|
24 | <g:sortableColumn property="firstName" title="First Name" /> |
---|
25 | |
---|
26 | <g:sortableColumn property="lastName" title="Last Name" /> |
---|
27 | |
---|
28 | <g:sortableColumn property="userId" title="User Id" /> |
---|
29 | |
---|
30 | <g:sortableColumn property="password" title="Password" /> |
---|
31 | |
---|
32 | <g:sortableColumn property="employeeID" title="Employee ID" /> |
---|
33 | |
---|
34 | </tr> |
---|
35 | </thead> |
---|
36 | <tbody> |
---|
37 | <g:each in="${personInstanceList}" status="i" var="personInstance"> |
---|
38 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
39 | |
---|
40 | <td><g:link action="show" id="${personInstance.id}">${fieldValue(bean:personInstance, field:'id')}</g:link></td> |
---|
41 | |
---|
42 | <td>${fieldValue(bean:personInstance, field:'firstName')}</td> |
---|
43 | |
---|
44 | <td>${fieldValue(bean:personInstance, field:'lastName')}</td> |
---|
45 | |
---|
46 | <td>${fieldValue(bean:personInstance, field:'userId')}</td> |
---|
47 | |
---|
48 | <td>${fieldValue(bean:personInstance, field:'password')}</td> |
---|
49 | |
---|
50 | <td>${fieldValue(bean:personInstance, field:'employeeID')}</td> |
---|
51 | |
---|
52 | </tr> |
---|
53 | </g:each> |
---|
54 | </tbody> |
---|
55 | </table> |
---|
56 | </div> |
---|
57 | <div class="paginateButtons"> |
---|
58 | <g:paginate total="${Person.count()}" /> |
---|
59 | </div> |
---|
60 | </div> |
---|
61 | </body> |
---|
62 | </html> |
---|