source: trunk/grails-app/views/personRole/show.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.PersonRole" %>
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: 'personRole.label', default: 'PersonRole')}" />
8        <title><g:message code="default.show.label" args="['Role']" /></title>
9    </head>
10    <body>
11   
12        <div class="body">
13            <h1><g:message code="default.show.label" args="['Role']" /></h1>
14            <g:if test="${flash.message}">
15            <div class="message">${flash.message}</div>
16            </g:if>
17            <div class="dialog">
18                <table>
19                    <tbody>
20                   
21                        <tr class="prop">
22                            <td valign="top" class="name"><g:message code="personRole.name.label" default="Name" /></td>
23                           
24                            <td valign="top" class="value">${fieldValue(bean: personRoleInstance, field: "name")}</td>
25                           
26                        </tr>
27                   
28                    </tbody>
29                </table>
30            </div>
31            <div class="buttons">
32                <g:form>
33                    <g:hiddenField name="id" value="${personRoleInstance?.id}" />
34                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
35                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
36                    <span class="button"><g:link class="backToList" action="list">Back to list</g:link></span>
37                </g:form>
38            </div>
39        </div>
40    </body>
41</html>
Note: See TracBrowser for help on using the repository browser.