source: trunk/grails-app/views/person/list.gsp @ 147

Last change on this file since 147 was 147, checked in by gav, 15 years ago

Re-install class-diagram from local svn build with patch to allow war deployment.
Class-diagram overrides removed from Config.groovy since these have all been included upstream.
Tidy comments in SecurityConfig?.groovy
Some work on adding assignedPerson work flow and PersonController?.
Add navAlt and filterPane search to Person and TaskProcedure?.

File size: 3.1 KB
Line 
1<head>
2    <meta name="layout" content="main" />
3    <title>Person List</title>
4    <filterpane:includes />
5    <nav:resources override="true"/>
6</head>
7
8<body>
9
10    <div class="nav">
11        <nav:renderSubItems group="navAlt"/>
12    </div>
13
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>
43                    <td>${person.lastName?.encodeAsHTML()}</td>
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>
49                    </td>
50                </tr>
51            </g:each>
52            </tbody>
53            </table>
54        </div>
55
56        <div class="paginateButtons">
57            <g:paginate total="${personTotal}" params="${filterParams}" />
58            <filterpane:filterButton text="Search" appliedText="Change Search" />
59            Results:${personTotal}
60        </div>
61
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 -->
72</body>
Note: See TracBrowser for help on using the repository browser.