1 | |
---|
2 | <%@ page import="dbnp.studycapturing.Person" %> |
---|
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: 'person.label', default: 'Person')}" /> |
---|
8 | <title><g:message code="default.edit.label" args="[entityName]" /></title> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="body"> |
---|
12 | <h1><g:message code="default.edit.label" args="[entityName]" /></h1> |
---|
13 | <g:if test="${flash.message}"> |
---|
14 | <div class="message">${flash.message}</div> |
---|
15 | </g:if> |
---|
16 | <g:hasErrors bean="${personInstance}"> |
---|
17 | <div class="errors"> |
---|
18 | <g:renderErrors bean="${personInstance}" as="list" /> |
---|
19 | </div> |
---|
20 | </g:hasErrors> |
---|
21 | <g:form method="post" > |
---|
22 | <g:hiddenField name="id" value="${personInstance?.id}" /> |
---|
23 | <g:hiddenField name="version" value="${personInstance?.version}" /> |
---|
24 | <div class="dialog"> |
---|
25 | <table> |
---|
26 | <tbody> |
---|
27 | |
---|
28 | <tr class="prop"> |
---|
29 | <td valign="top" class="name"> |
---|
30 | <label for="title"><g:message code="person.title.label" default="Title" /></label> |
---|
31 | </td> |
---|
32 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'title', 'errors')}"> |
---|
33 | <g:textField name="title" value="${personInstance?.title}" /> |
---|
34 | </td> |
---|
35 | </tr> |
---|
36 | |
---|
37 | <tr class="prop"> |
---|
38 | <td valign="top" class="name"> |
---|
39 | <label for="gender"><g:message code="person.gender.label" default="Gender" /></label> |
---|
40 | </td> |
---|
41 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'gender', 'errors')}"> |
---|
42 | <g:select name="gender" from="${possibleGenders}" noSelection="['' : 'Not specified']" value="${personInstance?.gender}" /> |
---|
43 | </td> |
---|
44 | </tr> |
---|
45 | |
---|
46 | <tr class="prop"> |
---|
47 | <td valign="top" class="name"> |
---|
48 | <label for="firstName"><g:message code="person.firstName.label" default="First Name" /></label> |
---|
49 | </td> |
---|
50 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'firstName', 'errors')}"> |
---|
51 | <g:textField name="firstName" value="${personInstance?.firstName}" /> |
---|
52 | </td> |
---|
53 | </tr> |
---|
54 | |
---|
55 | <tr class="prop"> |
---|
56 | <td valign="top" class="name"> |
---|
57 | <label for="initials"><g:message code="person.initials.label" default="Initials" /></label> |
---|
58 | </td> |
---|
59 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'initials', 'errors')}"> |
---|
60 | <g:textField name="initials" value="${personInstance?.initials}" /> |
---|
61 | </td> |
---|
62 | </tr> |
---|
63 | |
---|
64 | <tr class="prop"> |
---|
65 | <td valign="top" class="name"> |
---|
66 | <label for="prefix"><g:message code="person.prefix.label" default="Prefix" /></label> |
---|
67 | </td> |
---|
68 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'prefix', 'errors')}"> |
---|
69 | <g:textField name="prefix" value="${personInstance?.prefix}" /> |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | |
---|
73 | |
---|
74 | <tr class="prop"> |
---|
75 | <td valign="top" class="name"> |
---|
76 | <label for="lastName"><g:message code="person.lastName.label" default="Last Name" /></label> |
---|
77 | </td> |
---|
78 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'lastName', 'errors')}"> |
---|
79 | <g:textField name="lastName" value="${personInstance?.lastName}" /> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name"> |
---|
85 | <label for="address"><g:message code="person.address.label" default="Address" /></label> |
---|
86 | </td> |
---|
87 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'address', 'errors')}"> |
---|
88 | <g:textField name="address" value="${personInstance?.address}" /> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr class="prop"> |
---|
93 | <td valign="top" class="name"> |
---|
94 | <label for="phone"><g:message code="person.phone.label" default="Work Phone" /></label> |
---|
95 | </td> |
---|
96 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'phone', 'errors')}"> |
---|
97 | <g:textField name="phone" value="${personInstance?.phone}" /> |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | |
---|
101 | <tr class="prop"> |
---|
102 | <td valign="top" class="name"> |
---|
103 | <label for="mobile"><g:message code="person.mobile.label" default="Mobile Phone" /></label> |
---|
104 | </td> |
---|
105 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'mobile', 'errors')}"> |
---|
106 | <g:textField name="mobile" value="${personInstance?.phone}" /> |
---|
107 | </td> |
---|
108 | </tr> |
---|
109 | |
---|
110 | |
---|
111 | <tr class="prop"> |
---|
112 | <td valign="top" class="name"> |
---|
113 | <label for="fax"><g:message code="person.fax.label" default="Fax" /></label> |
---|
114 | </td> |
---|
115 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'fax', 'errors')}"> |
---|
116 | <g:textField name="fax" value="${personInstance?.fax}" /> |
---|
117 | </td> |
---|
118 | </tr> |
---|
119 | |
---|
120 | <tr class="prop"> |
---|
121 | <td valign="top" class="name"> |
---|
122 | <label for="email"><g:message code="person.email.label" default="Email" /></label> |
---|
123 | </td> |
---|
124 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'email', 'errors')}"> |
---|
125 | <g:textField name="email" value="${personInstance?.email}" /> |
---|
126 | </td> |
---|
127 | </tr> |
---|
128 | |
---|
129 | <tr class="prop"> |
---|
130 | <td valign="top" class="name"> |
---|
131 | <label for="affiliations"><g:message code="person.affiliations.label" default="Affiliations" /></label> |
---|
132 | </td> |
---|
133 | <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'affiliations', 'errors')}"> |
---|
134 | <g:select name="affiliations" from="${dbnp.studycapturing.PersonAffiliation.list()}" multiple="yes" optionKey="id" size="5" value="${personInstance?.affiliations}" /> |
---|
135 | </td> |
---|
136 | </tr> |
---|
137 | |
---|
138 | </tbody> |
---|
139 | </table> |
---|
140 | </div> |
---|
141 | <div class="buttons"> |
---|
142 | <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span> |
---|
143 | <span class="button"><g:actionSubmit class="cancel" action="show" value="Cancel" /></span> |
---|
144 | </div> |
---|
145 | </g:form> |
---|
146 | </div> |
---|
147 | </body> |
---|
148 | </html> |
---|