Changeset 147 for trunk/grails-app/views/person
- Timestamp:
- Oct 8, 2009, 7:58:38 PM (15 years ago)
- Location:
- trunk/grails-app/views/person
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/create.gsp
r97 r147 2 2 <meta name="layout" content="main" /> 3 3 <title>Create Person</title> 4 <nav:resources override="true"/> 4 5 </head> 5 6 … … 7 8 8 9 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="list" action="list">Person List</g:link></span> 10 <nav:renderSubItems group="navAlt"/> 11 11 </div> 12 12 13 13 <div class="body"> 14 <h1>Create Person</h1>15 14 <g:if test="${flash.message}"> 16 15 <div class="message">${flash.message}</div> -
trunk/grails-app/views/person/edit.gsp
r97 r147 2 2 <meta name="layout" content="main" /> 3 3 <title>Edit Person</title> 4 <nav:resources override="true"/> 4 5 </head> 5 6 … … 7 8 8 9 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="list" action="list">Person List</g:link></span> 11 <span class="menuButton"><g:link class="create" action="create">New Person</g:link></span> 10 <nav:renderSubItems group="navAlt"/> 12 11 </div> 13 12 14 13 <div class="body"> 15 <h1>Edit Person</h1>16 14 <g:if test="${flash.message}"> 17 15 <div class="message">${flash.message}</div> … … 23 21 </g:hasErrors> 24 22 25 <div class="prop">23 <!-- <div class="prop"> 26 24 <span class="name">ID: ${person.id}</span> 27 </div> 25 </div>--> 28 26 29 27 <g:form> -
trunk/grails-app/views/person/list.gsp
r59 r147 1 1 <head> 2 <meta name="layout" content="main" /> 3 <title>Person List</title> 2 <meta name="layout" content="main" /> 3 <title>Person List</title> 4 <filterpane:includes /> 5 <nav:resources override="true"/> 4 6 </head> 5 7 6 8 <body> 7 9 8 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="create" action="create">New Person</g:link></span> 11 </div> 10 <div class="nav"> 11 <nav:renderSubItems group="navAlt"/> 12 </div> 12 13 13 <div class="body"> 14 <h1>Person List</h1> 15 <g:if test="${flash.message}"> 16 <div class="message">${flash.message}</div> 17 </g:if> 18 <div class="list"> 19 <table> 20 <thead> 21 <tr> 22 <g:sortableColumn property="id" title="Id" /> 23 <g:sortableColumn property="loginName" title="Login Name" /> 24 <g:sortableColumn property="firstName" title="First Name" /> 25 <g:sortableColumn property="lastName" title="Last Name" /> 26 <g:sortableColumn property="isActive " title="isActive" /> 27 <th> </th> 28 <th> </th> 29 </tr> 30 </thead> 31 <tbody> 32 <g:each in="${personList}" status="i" var="person"> 33 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 34 <td>${person.id}</td> 35 <td>${person.loginName?.encodeAsHTML()}</td> 36 <td>${person.firstName?.encodeAsHTML()}</td> 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> 37 43 <td>${person.lastName?.encodeAsHTML()}</td> 38 <td>${person.isActive?.encodeAsHTML()}</td> 39 <td class="actionButtons"> 40 <span class="actionButton"> 41 <g:link action="show" id="${person.id}">Show</g:link> 42 </span> 43 </td> 44 <td class="actionButtons"> 45 <span class="actionButton"> 46 <g:link action="edit" id="${person.id}">Edit</g:link> 47 </span> 44 <td>${person.isActive?.encodeAsHTML()}</td> 45 <td> 46 <g:link action="show" id="${person.id}"> 47 <img src="${createLinkTo(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 48 </g:link> 48 49 </td> 49 50 51 52 53 50 </tr> 51 </g:each> 52 </tbody> 53 </table> 54 </div> 54 55 55 <div class="paginateButtons"> 56 <g:paginate total="${Person.count()}" /> 57 </div> 56 <div class="paginateButtons"> 57 <g:paginate total="${personTotal}" params="${filterParams}" /> 58 <filterpane:filterButton text="Search" appliedText="Change Search" /> 59 Results:${personTotal} 60 </div> 58 61 59 </div> 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 --> 60 72 </body> -
trunk/grails-app/views/person/show.gsp
r59 r147 2 2 <meta name="layout" content="main" /> 3 3 <title>Show Person</title> 4 <nav:resources override="true"/> 4 5 </head> 5 6 … … 7 8 8 9 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="list" action="list">Person List</g:link></span> 11 <span class="menuButton"><g:link class="create" action="create">New Person</g:link></span> 10 <nav:renderSubItems group="navAlt"/> 12 11 </div> 13 12 14 13 <div class="body"> 15 <h1>Show Person</h1>16 14 <g:if test="${flash.message}"> 17 15 <div class="message">${flash.message}</div>
Note: See TracChangeset
for help on using the changeset viewer.