source: trunk/grails-app/views/personAffiliation/create.gsp @ 987

Last change on this file since 987 was 987, checked in by robert@…, 12 years ago

Fixed bug #15

  • Property svn:keywords set to Author Date Rev
File size: 2.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="${layout}" />
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.institute.label" default="Institute" /></label>
29                                </td>
30                                <td valign="top" class="value ${hasErrors(bean: personAffiliationInstance, field: 'institute', 'errors')}">
31                                    <g:textField name="institute" value="${personAffiliationInstance?.institute}" />
32                                </td>
33                            </tr>
34                       
35                            <tr class="prop">
36                                <td valign="top" class="name">
37                                    <label for="name"><g:message code="personAffiliation.department.label" default="Department" /></label>
38                                </td>
39                                <td valign="top" class="value ${hasErrors(bean: personAffiliationInstance, field: 'department', 'errors')}">
40                                    <g:textField name="department" value="${personAffiliationInstance?.department}" />
41                                </td>
42                            </tr>
43                        </tbody>
44                    </table>
45                </div>
46                <div class="buttons">
47                   <g:each in="${extraparams}" var="param">
48                     <input type="hidden" name="${param.key}" value="${param.value}">
49                   </g:each>
50                   <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
51                   <span class="button"><g:link class="cancel" action="list" params="${extraparams}">Cancel</g:link></span>
52                </div>
53            </g:form>
54        </div>
55    </body>
56</html>
Note: See TracBrowser for help on using the repository browser.