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