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

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

Lots of changes to setup Acegi, should be complete with all current pages secured.
Added CSS and PersonGroup? and PersonGroupType?.
Adjust BootStrap? to suite.
Add Home and Admin pages.

File size: 1.8 KB
Line 
1<head>
2        <meta name="layout" content="main" />
3        <title>Person List</title>
4</head>
5
6<body>
7
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>
12
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>&nbsp;</th>
28                    <th>&nbsp;</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>
37                    <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>
48                    </td>
49                                </tr>
50                        </g:each>
51                        </tbody>
52                        </table>
53                </div>
54
55                <div class="paginateButtons">
56                        <g:paginate total="${Person.count()}" />
57                </div>
58
59        </div>
60</body>
Note: See TracBrowser for help on using the repository browser.