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.show.label" args="[entityName]" /></title> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="body"> |
---|
12 | <h1><g:message code="default.show.label" args="[entityName]" /></h1> |
---|
13 | <g:if test="${flash.message}"> |
---|
14 | <div class="message">${flash.message}</div> |
---|
15 | </g:if> |
---|
16 | <div class="dialog"> |
---|
17 | <table> |
---|
18 | <tbody> |
---|
19 | |
---|
20 | <tr class="prop"> |
---|
21 | <td valign="top" class="name"><g:message code="person.title.label" default="Title" /></td> |
---|
22 | |
---|
23 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "title")}</td> |
---|
24 | |
---|
25 | </tr> |
---|
26 | <tr class="prop"> |
---|
27 | <td valign="top" class="name"><g:message code="person.gender.label" default="Gender" /></td> |
---|
28 | |
---|
29 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "gender")}</td> |
---|
30 | |
---|
31 | </tr> |
---|
32 | <tr class="prop"> |
---|
33 | <td valign="top" class="name"><g:message code="person.firstName.label" default="First Name" /></td> |
---|
34 | |
---|
35 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "firstName")}</td> |
---|
36 | |
---|
37 | </tr> |
---|
38 | |
---|
39 | <tr class="prop"> |
---|
40 | <td valign="top" class="name"><g:message code="person.initials.label" default="Initials" /></td> |
---|
41 | |
---|
42 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "initials")}</td> |
---|
43 | |
---|
44 | </tr> |
---|
45 | |
---|
46 | <tr class="prop"> |
---|
47 | <td valign="top" class="name"><g:message code="person.prefix.label" default="Prefx" /></td> |
---|
48 | |
---|
49 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "prefix")}</td> |
---|
50 | |
---|
51 | </tr> |
---|
52 | <tr class="prop"> |
---|
53 | <td valign="top" class="name"><g:message code="person.lastName.label" default="Last Name" /></td> |
---|
54 | |
---|
55 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "lastName")}</td> |
---|
56 | |
---|
57 | </tr> |
---|
58 | |
---|
59 | <tr class="prop"> |
---|
60 | <td valign="top" class="name"><g:message code="person.address.label" default="Address" /></td> |
---|
61 | |
---|
62 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "address")}</td> |
---|
63 | |
---|
64 | </tr> |
---|
65 | |
---|
66 | <tr class="prop"> |
---|
67 | <td valign="top" class="name"><g:message code="person.phone.label" default="Work Phone" /></td> |
---|
68 | |
---|
69 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "phone")}</td> |
---|
70 | |
---|
71 | </tr> |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="name"><g:message code="person.mobile.label" default="Mobile Phone" /></td> |
---|
74 | |
---|
75 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "mobile")}</td> |
---|
76 | |
---|
77 | </tr> |
---|
78 | |
---|
79 | <tr class="prop"> |
---|
80 | <td valign="top" class="name"><g:message code="person.fax.label" default="Fax" /></td> |
---|
81 | |
---|
82 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "fax")}</td> |
---|
83 | |
---|
84 | </tr> |
---|
85 | |
---|
86 | <tr class="prop"> |
---|
87 | <td valign="top" class="name"><g:message code="person.email.label" default="Email" /></td> |
---|
88 | |
---|
89 | <td valign="top" class="value">${fieldValue(bean: personInstance, field: "email")}</td> |
---|
90 | |
---|
91 | </tr> |
---|
92 | |
---|
93 | <tr class="prop"> |
---|
94 | <td valign="top" class="name"><g:message code="person.affiliations.label" default="Affiliations" /></td> |
---|
95 | |
---|
96 | <td valign="top" style="text-align: left;" class="value"> |
---|
97 | <ul> |
---|
98 | <g:each in="${personInstance.affiliations}" var="a"> |
---|
99 | <li><g:link controller="personAffiliation" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
100 | </g:each> |
---|
101 | </ul> |
---|
102 | </td> |
---|
103 | |
---|
104 | </tr> |
---|
105 | |
---|
106 | </tbody> |
---|
107 | </table> |
---|
108 | </div> |
---|
109 | <div class="buttons"> |
---|
110 | <g:form> |
---|
111 | <g:hiddenField name="id" value="${personInstance?.id}" /> |
---|
112 | <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> |
---|
113 | <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span> |
---|
114 | <span class="button"><g:link class="backToList" action="list">Back to list</g:link></span> |
---|
115 | </g:form> |
---|
116 | </div> |
---|
117 | </div> |
---|
118 | </body> |
---|
119 | </html> |
---|