source: trunk/grails-app/views/personAffiliation/list.gsp @ 382

Last change on this file since 382 was 382, checked in by roberth, 9 years ago

Updated the fields of person to contain title, gender, prefix and mobile phone. Also updated the views so that the pagination buttons appear beneath the 'add new' button.

File size: 1.9 KB
Line 
1
2<%@ page import="dbnp.studycapturing.PersonAffiliation" %>
3<html>
4    <head>
5        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6        <meta name="layout" content="main" />
7        <g:set var="entityName" value="${message(code: 'personAffiliation.label', default: 'PersonAffiliation')}" />
8        <title><g:message code="default.list.label" args="['Affiliation']" /></title>
9    </head>
10    <body>
11        <div class="body">
12            <h1><g:message code="default.list.label" args="['Affiliation']" /></h1>
13            <g:if test="${flash.message}">
14            <div class="message">${flash.message}</div>
15            </g:if>
16            <div class="list">
17                <table>
18                    <thead>
19                        <tr>
20                       
21                            <g:sortableColumn property="name" title="${message(code: 'personAffiliation.name.label', default: 'Name')}" />
22                       
23                        </tr>
24                    </thead>
25                    <tbody>
26                    <g:each in="${personAffiliationInstanceList}" status="i" var="personAffiliationInstance">
27                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
28                       
29                            <td><g:link action="show" id="${personAffiliationInstance.id}">${fieldValue(bean: personAffiliationInstance, field: "name")}</g:link></td>
30                       
31                        </tr>
32                    </g:each>
33                    </tbody>
34                </table>
35            </div>
36            <div class="buttons">
37                <span class="button"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
38            </div>
39            <div class="paginateButtons">
40                <g:paginate total="${personAffiliationInstanceTotal}" prev="&laquo; Previous" next="&raquo; Next" />
41            </div>
42        </div>
43    </body>
44</html>
Note: See TracBrowser for help on using the repository browser.