1 | <head> |
---|
2 | <meta name="layout" content="main" /> |
---|
3 | <title>Person List</title> |
---|
4 | <filterpane:includes /> |
---|
5 | <nav:resources override="true"/> |
---|
6 | </head> |
---|
7 | |
---|
8 | <body> |
---|
9 | |
---|
10 | <div class="nav"> |
---|
11 | <nav:renderSubItems group="navAlt"/> |
---|
12 | </div> |
---|
13 | |
---|
14 | <div class="body"> |
---|
15 | <g:if test="${flash.message}"> |
---|
16 | <div class="message">${flash.message}</div> |
---|
17 | </g:if> |
---|
18 | <filterpane:currentCriteria domainBean="Person" |
---|
19 | action="list" |
---|
20 | dateFormat="${'EEE, dd-MMM-yyyy'}" |
---|
21 | removeImgDir="images" |
---|
22 | removeImgFile="bullet_delete.png" |
---|
23 | title="Search"/> |
---|
24 | |
---|
25 | <div class="paginateButtons"> |
---|
26 | <span class="searchButtons"> |
---|
27 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
28 | </span> |
---|
29 | Results:${personTotal} |
---|
30 | </div> |
---|
31 | |
---|
32 | <div class="list"> |
---|
33 | <table> |
---|
34 | <thead> |
---|
35 | <tr> |
---|
36 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
37 | <g:sortableColumn property="loginName" title="Login Name" params="${filterParams}" /> |
---|
38 | <g:sortableColumn property="firstName" title="First Name" params="${filterParams}" /> |
---|
39 | <g:sortableColumn property="lastName" title="Last Name" params="${filterParams}" /> |
---|
40 | <g:sortableColumn property="isActive" title="Active" params="${filterParams}" /> |
---|
41 | <th></th> |
---|
42 | </tr> |
---|
43 | </thead> |
---|
44 | <tbody> |
---|
45 | <g:each in="${personList}" status="i" var="person"> |
---|
46 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'/> |
---|
47 | |
---|
48 | <td>${person.id}</td> |
---|
49 | <td>${person.loginName?.encodeAsHTML()}</td> |
---|
50 | <td>${person.firstName?.encodeAsHTML()}</td> |
---|
51 | <td>${person.lastName?.encodeAsHTML()}</td> |
---|
52 | <td>${person.isActive?.encodeAsHTML()}</td> |
---|
53 | <td> |
---|
54 | <g:link action="show" id="${person.id}"> |
---|
55 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
56 | </g:link> |
---|
57 | </td> |
---|
58 | </tr> |
---|
59 | </g:each> |
---|
60 | </tbody> |
---|
61 | </table> |
---|
62 | </div> |
---|
63 | |
---|
64 | <div class="paginateButtons"> |
---|
65 | <g:paginate total="${personTotal}" params="${filterParams}" /> |
---|
66 | </div> |
---|
67 | |
---|
68 | <filterpane:filterPane domainBean="Person" |
---|
69 | title="Search" |
---|
70 | action="list" |
---|
71 | class="overlayPane" |
---|
72 | excludeProperties="password, sessionTimeout, emailShow" |
---|
73 | associatedProperties="authorities.authority, personGroups.name" |
---|
74 | filterPropertyValues="${['personGroups.name':[values:PersonGroup.list()], |
---|
75 | 'authorities.authority':[values:Authority.list()]]}" /> |
---|
76 | |
---|
77 | |
---|
78 | </div> <!-- end body div --> |
---|
79 | </body> |
---|