source: trunk/grails-app/views/personRole/edit.gsp @ 527

Last change on this file since 527 was 527, checked in by roberth, 14 years ago

Adding of contacts is made possible in the study creation wizard.

  • Property svn:keywords set to Date Author Rev
File size: 2.4 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="${layout}" />
7        <g:set var="entityName" value="${message(code: 'personRole.label', default: 'PersonRole')}" />
8        <title><g:message code="default.edit.label" args="['Role']" /></title>
9    </head>
10    <body>
11
12        <div class="body">
13            <h1><g:message code="default.edit.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 method="post" >
23                <g:hiddenField name="id" value="${personRoleInstance?.id}" />
24                <g:hiddenField name="version" value="${personRoleInstance?.version}" />
25                <div class="dialog">
26                    <table>
27                        <tbody>
28                       
29                            <tr class="prop">
30                                <td valign="top" class="name">
31                                  <label for="name"><g:message code="personRole.name.label" default="Name" /></label>
32                                </td>
33                                <td valign="top" class="value ${hasErrors(bean: personRoleInstance, field: 'name', 'errors')}">
34                                    <g:textField name="name" value="${personRoleInstance?.name}" />
35                                </td>
36                            </tr>
37                       
38                        </tbody>
39                    </table>
40                </div>
41                <div class="buttons">
42                     <g:each in="${extraparams}" var="param">
43                       <input type="hidden" name="${param.key}" value="${param.value}">
44                     </g:each>
45                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
46                    <span class="button"><g:actionSubmit class="cancel" action="list" value="Cancel" /></span>
47                </div>
48            </g:form>
49        </div>
50    </body>
51</html>
Note: See TracBrowser for help on using the repository browser.