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 | <jsUtil:toggleControl toggleId="options" |
---|
33 | imageId="optionsImg" |
---|
34 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
---|
35 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
---|
36 | text="${g.message(code: 'default.options.text')}" |
---|
37 | /> |
---|
38 | |
---|
39 | <div id="options" style="display:none;"> |
---|
40 | <g:form method="post" > |
---|
41 | <g:hiddenField name="params" value="${filterParams}" /> |
---|
42 | <div class="dialog"> |
---|
43 | <table> |
---|
44 | <tbody> |
---|
45 | |
---|
46 | <tr class="prop"> |
---|
47 | <td valign="top" class="name"> |
---|
48 | <label for="max">Persons:</label> |
---|
49 | </td> |
---|
50 | <td valign="top" class="value"> |
---|
51 | <g:link action="exportPersonsTemplate"> |
---|
52 | Template |
---|
53 | </g:link> |
---|
54 | / |
---|
55 | <g:link action="importPersons"> |
---|
56 | Import |
---|
57 | </g:link> |
---|
58 | </td> |
---|
59 | </tr> |
---|
60 | |
---|
61 | </tbody> |
---|
62 | </table> |
---|
63 | </div> |
---|
64 | </g:form> |
---|
65 | </div> |
---|
66 | |
---|
67 | <br /> |
---|
68 | |
---|
69 | <div class="list"> |
---|
70 | <table> |
---|
71 | <thead> |
---|
72 | <tr> |
---|
73 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
74 | <g:sortableColumn property="loginName" title="Login Name" params="${filterParams}" /> |
---|
75 | <g:sortableColumn property="firstName" title="First Name" params="${filterParams}" /> |
---|
76 | <g:sortableColumn property="lastName" title="Last Name" params="${filterParams}" /> |
---|
77 | <g:sortableColumn property="isActive" title="Active" params="${filterParams}" /> |
---|
78 | <th></th> |
---|
79 | </tr> |
---|
80 | </thead> |
---|
81 | <tbody> |
---|
82 | <g:each in="${personList}" status="i" var="person"> |
---|
83 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'/> |
---|
84 | |
---|
85 | <td>${person.id}</td> |
---|
86 | <td>${person.loginName?.encodeAsHTML()}</td> |
---|
87 | <td>${person.firstName?.encodeAsHTML()}</td> |
---|
88 | <td>${person.lastName?.encodeAsHTML()}</td> |
---|
89 | <td>${person.isActive?.encodeAsHTML()}</td> |
---|
90 | <td> |
---|
91 | <g:link action="show" id="${person.id}"> |
---|
92 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
93 | </g:link> |
---|
94 | </td> |
---|
95 | </tr> |
---|
96 | </g:each> |
---|
97 | </tbody> |
---|
98 | </table> |
---|
99 | </div> |
---|
100 | |
---|
101 | <div class="paginateButtons"> |
---|
102 | <g:paginate total="${personTotal}" params="${filterParams}" /> |
---|
103 | </div> |
---|
104 | |
---|
105 | <filterpane:filterPane domainBean="Person" |
---|
106 | title="Search" |
---|
107 | action="list" |
---|
108 | class="overlayPane" |
---|
109 | excludeProperties="password, sessionTimeout" |
---|
110 | associatedProperties="authorities.authority, personGroups.name" |
---|
111 | filterPropertyValues="${['personGroups.name':[values:PersonGroup.list()], |
---|
112 | 'authorities.authority':[values:Authority.list()]]}" /> |
---|
113 | |
---|
114 | |
---|
115 | </div> <!-- end body div --> |
---|
116 | </body> |
---|