Last change
on this file since 379 was
379,
checked in by roberth, 13 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.3 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="main" /> |
---|
7 | <g:set var="entityName" value="${message(code: 'personAffiliation.label', default: 'PersonAffiliation')}" /> |
---|
8 | <title><g:message code="default.edit.label" args="['Affiliation']" /></title> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="body"> |
---|
12 | <h1><g:message code="default.edit.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 method="post" > |
---|
22 | <g:hiddenField name="id" value="${personAffiliationInstance?.id}" /> |
---|
23 | <g:hiddenField name="version" value="${personAffiliationInstance?.version}" /> |
---|
24 | <div class="dialog"> |
---|
25 | <table> |
---|
26 | <tbody> |
---|
27 | |
---|
28 | <tr class="prop"> |
---|
29 | <td valign="top" class="name"> |
---|
30 | <label for="name"><g:message code="personAffiliation.name.label" default="Name" /></label> |
---|
31 | </td> |
---|
32 | <td valign="top" class="value ${hasErrors(bean: personAffiliationInstance, field: 'name', 'errors')}"> |
---|
33 | <g:textField name="name" value="${personAffiliationInstance?.name}" /> |
---|
34 | </td> |
---|
35 | </tr> |
---|
36 | |
---|
37 | </tbody> |
---|
38 | </table> |
---|
39 | </div> |
---|
40 | <div class="buttons"> |
---|
41 | <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span> |
---|
42 | <span class="button"><g:actionSubmit class="cancel" action="show" value="Cancel" /></span> |
---|
43 | </div> |
---|
44 | </g:form> |
---|
45 | </div> |
---|
46 | </body> |
---|
47 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.