Changeset 467 for trunk/grails-app/views/person
- Timestamp:
- Mar 30, 2010, 7:29:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/list.gsp
r450 r467 24 24 25 25 <div class="paginateButtons"> 26 Results: ${personList.size()} / ${personTotal} 26 27 <span class="searchButtons"> 27 28 <filterpane:filterButton text="Search" appliedText="Change Search" /> 28 29 </span> 29 Results:${personTotal}30 30 </div> 31 31 … … 67 67 <br /> 68 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}"'/> 69 <g:if test="${personList.size() > 0}"> 70 <div class="list"> 71 <table> 72 <thead> 73 <tr> 74 <g:sortableColumn property="id" title="Id" params="${filterParams}" /> 75 <g:sortableColumn property="loginName" title="Login Name" params="${filterParams}" /> 76 <g:sortableColumn property="firstName" title="First Name" params="${filterParams}" /> 77 <g:sortableColumn property="lastName" title="Last Name" params="${filterParams}" /> 78 <g:sortableColumn property="isActive" title="Active" params="${filterParams}" /> 79 <th></th> 80 </tr> 81 </thead> 82 <tbody> 83 <g:each in="${personList}" status="i" var="person"> 84 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/person/show/${person.id}"'/> 84 85 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> 86 <td>${person.id}</td> 87 <td>${person.loginName?.encodeAsHTML()}</td> 88 <td>${person.firstName?.encodeAsHTML()}</td> 89 <td>${person.lastName?.encodeAsHTML()}</td> 90 <td>${person.isActive?.encodeAsHTML()}</td> 91 <td> 92 <g:link action="show" id="${person.id}"> 93 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 94 </g:link> 95 </td> 96 </tr> 97 </g:each> 98 </tbody> 99 </table> 100 </div> 101 </g:if> 100 102 101 103 <div class="paginateButtons">
Note: See TracChangeset
for help on using the changeset viewer.