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 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
27 | Results:${personTotal} |
---|
28 | </div> |
---|
29 | |
---|
30 | <div class="list"> |
---|
31 | <table> |
---|
32 | <thead> |
---|
33 | <tr> |
---|
34 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
35 | <g:sortableColumn property="loginName" title="Login Name" params="${filterParams}" /> |
---|
36 | <g:sortableColumn property="firstName" title="First Name" params="${filterParams}" /> |
---|
37 | <g:sortableColumn property="lastName" title="Last Name" params="${filterParams}" /> |
---|
38 | <g:sortableColumn property="isActive " title="Active" params="${filterParams}" /> |
---|
39 | <th></th> |
---|
40 | </tr> |
---|
41 | </thead> |
---|
42 | <tbody> |
---|
43 | <g:each in="${personList}" status="i" var="person"> |
---|
44 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'/> |
---|
45 | |
---|
46 | <td>${person.id}</td> |
---|
47 | <td>${person.loginName?.encodeAsHTML()}</td> |
---|
48 | <td>${person.firstName?.encodeAsHTML()}</td> |
---|
49 | <td>${person.lastName?.encodeAsHTML()}</td> |
---|
50 | <td>${person.isActive?.encodeAsHTML()}</td> |
---|
51 | <td> |
---|
52 | <g:link action="show" id="${person.id}"> |
---|
53 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
54 | </g:link> |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | </g:each> |
---|
58 | </tbody> |
---|
59 | </table> |
---|
60 | </div> |
---|
61 | |
---|
62 | <div class="paginateButtons"> |
---|
63 | <g:paginate total="${personTotal}" params="${filterParams}" /> |
---|
64 | </div> |
---|
65 | |
---|
66 | <filterpane:filterPane domainBean="Person" |
---|
67 | title="Search" |
---|
68 | action="list" |
---|
69 | class="overlayPane" |
---|
70 | excludeProperties="password, sessionTimeout, emailShow" |
---|
71 | associatedProperties="authorities.authority, personGroups.name" |
---|
72 | filterPropertyValues="${['personGroups.name':[values:PersonGroup.list()], |
---|
73 | 'authorities.authority':[values:Authority.list()]]}" /> |
---|
74 | |
---|
75 | |
---|
76 | </div> <!-- end body div --> |
---|
77 | </body> |
---|