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