| [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"> | 
|---|
| [221] | 26 | <span class="searchButtons"> | 
|---|
|  | 27 | <filterpane:filterButton text="Search" appliedText="Change Search" /> | 
|---|
|  | 28 | </span> | 
|---|
| [155] | 29 | Results:${personTotal} | 
|---|
|  | 30 | </div> | 
|---|
|  | 31 |  | 
|---|
| [147] | 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}" /> | 
|---|
| [166] | 40 | <g:sortableColumn property="isActive " title="Active" params="${filterParams}" /> | 
|---|
| [147] | 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> | 
|---|
| [59] | 51 | <td>${person.lastName?.encodeAsHTML()}</td> | 
|---|
| [147] | 52 | <td>${person.isActive?.encodeAsHTML()}</td> | 
|---|
|  | 53 | <td> | 
|---|
|  | 54 | <g:link action="show" id="${person.id}"> | 
|---|
| [151] | 55 | <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> | 
|---|
| [147] | 56 | </g:link> | 
|---|
| [59] | 57 | </td> | 
|---|
| [147] | 58 | </tr> | 
|---|
|  | 59 | </g:each> | 
|---|
|  | 60 | </tbody> | 
|---|
|  | 61 | </table> | 
|---|
|  | 62 | </div> | 
|---|
| [59] | 63 |  | 
|---|
| [147] | 64 | <div class="paginateButtons"> | 
|---|
|  | 65 | <g:paginate total="${personTotal}" params="${filterParams}" /> | 
|---|
|  | 66 | </div> | 
|---|
| [59] | 67 |  | 
|---|
| [147] | 68 | <filterpane:filterPane domainBean="Person" | 
|---|
|  | 69 | title="Search" | 
|---|
|  | 70 | action="list" | 
|---|
| [155] | 71 | class="overlayPane" | 
|---|
| [147] | 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 |  | 
|---|
| [156] | 78 | </div> <!-- end body div --> | 
|---|
| [59] | 79 | </body> | 
|---|