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

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

Updated the person, personrole and personaffiliation view templates in order to create a consistent example for simple tables.
Also updated bootstrap.groovy to contain several persons and roles

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="paginateButtons">
37                <g:paginate total="${personAffiliationInstanceTotal}" />
38            </div>
39            <br clear="all" />
40            <div class="buttons">
41                <span class="button"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
42            </div>
43        </div>
44    </body>
45</html>
Note: See TracBrowser for help on using the repository browser.