root/trunk/grails-app/views/personAffiliation/create.gsp @ 361

Revision 361, 2.3 KB (checked in by roberth, 4 years ago)

Added controllers and views for Person, PersonAffiliation? and PersonRole? and added them to the menu. Also removed the link between Person and PersonRole?, in line with the datamodel

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="nav">
12            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
13            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="['Affiliation']" /></g:link></span>
14        </div>
15        <div class="body">
16            <h1><g:message code="default.create.label" args="['Affiliation']" /></h1>
17            <g:if test="${flash.message}">
18            <div class="message">${flash.message}</div>
19            </g:if>
20            <g:hasErrors bean="${personAffiliationInstance}">
21            <div class="errors">
22                <g:renderErrors bean="${personAffiliationInstance}" as="list" />
23            </div>
24            </g:hasErrors>
25            <g:form action="save" method="post" >
26                <div class="dialog">
27                    <table>
28                        <tbody>
29                       
30                            <tr class="prop">
31                                <td valign="top" class="name">
32                                    <label for="name"><g:message code="personAffiliation.name.label" default="Name" /></label>
33                                </td>
34                                <td valign="top" class="value ${hasErrors(bean: personAffiliationInstance, field: 'name', 'errors')}">
35                                    <g:textField name="name" value="${personAffiliationInstance?.name}" />
36                                </td>
37                            </tr>
38                       
39                        </tbody>
40                    </table>
41                </div>
42                <div class="buttons">
43                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
44                </div>
45            </g:form>
46        </div>
47    </body>
48</html>
Note: See TracBrowser for help on using the browser.