[59] | 1 | <head> |
---|
[147] | 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Person List</title> |
---|
| 4 | <filterpane:includes /> |
---|
| 5 | <nav:resources override="true"/> |
---|
[59] | 6 | </head> |
---|
| 7 | |
---|
| 8 | <body> |
---|
| 9 | |
---|
[147] | 10 | <div class="nav"> |
---|
| 11 | <nav:renderSubItems group="navAlt"/> |
---|
| 12 | </div> |
---|
[59] | 13 | |
---|
[147] | 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"/> |
---|
[155] | 24 | |
---|
| 25 | <div class="paginateButtons"> |
---|
| 26 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
| 27 | Results:${personTotal} |
---|
| 28 | </div> |
---|
| 29 | |
---|
[147] | 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}" /> |
---|
[166] | 38 | <g:sortableColumn property="isActive " title="Active" params="${filterParams}" /> |
---|
[147] | 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> |
---|
[59] | 49 | <td>${person.lastName?.encodeAsHTML()}</td> |
---|
[147] | 50 | <td>${person.isActive?.encodeAsHTML()}</td> |
---|
| 51 | <td> |
---|
| 52 | <g:link action="show" id="${person.id}"> |
---|
[151] | 53 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
[147] | 54 | </g:link> |
---|
[59] | 55 | </td> |
---|
[147] | 56 | </tr> |
---|
| 57 | </g:each> |
---|
| 58 | </tbody> |
---|
| 59 | </table> |
---|
| 60 | </div> |
---|
[59] | 61 | |
---|
[147] | 62 | <div class="paginateButtons"> |
---|
| 63 | <g:paginate total="${personTotal}" params="${filterParams}" /> |
---|
| 64 | </div> |
---|
[59] | 65 | |
---|
[147] | 66 | <filterpane:filterPane domainBean="Person" |
---|
| 67 | title="Search" |
---|
| 68 | action="list" |
---|
[155] | 69 | class="overlayPane" |
---|
[147] | 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 | |
---|
[156] | 76 | </div> <!-- end body div --> |
---|
[59] | 77 | </body> |
---|