source: trunk/grails-app/views/personRole/create.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: 2.0 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.create.label" args="['Role']" /></title>
9    </head>
10    <body>
11
12        <div class="body">
13            <h1><g:message code="default.create.label" args="['Role']" /></h1>
14            <g:if test="${flash.message}">
15            <div class="message">${flash.message}</div>
16            </g:if>
17            <g:hasErrors bean="${personRoleInstance}">
18            <div class="errors">
19                <g:renderErrors bean="${personRoleInstance}" as="list" />
20            </div>
21            </g:hasErrors>
22            <g:form action="save" method="post" >
23                <div class="dialog">
24                    <table>
25                        <tbody>
26                       
27                            <tr class="prop">
28                                <td valign="top" class="name">
29                                    <label for="name"><g:message code="personRole.name.label" default="Name" /></label>
30                                </td>
31                                <td valign="top" class="value ${hasErrors(bean: personRoleInstance, field: 'name', 'errors')}">
32                                    <g:textField name="name" value="${personRoleInstance?.name}" />
33                                </td>
34                            </tr>
35                       
36                        </tbody>
37                    </table>
38                </div>
39                <div class="buttons">
40                   <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
41                   <span class="button"><g:link class="cancel" action="list">Cancel</g:link></span>
42                </div>
43            </g:form>
44        </div>
45    </body>
46</html>
Note: See TracBrowser for help on using the repository browser.