comparison src/main/webapp/entry/person.xhtml @ 7:764f47286679

(none)
author jurzua
date Wed, 29 Oct 2014 14:28:34 +0000
parents
children e07a1ae515b7
comparison
equal deleted inserted replaced
6:ded3bccf2cf9 7:764f47286679
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:h="http://java.sun.com/jsf/html"
4 xmlns:f="http://java.sun.com/jsf/core"
5 xmlns:ui="http://java.sun.com/jsf/facelets"
6 xmlns:a4j="http://richfaces.org/a4j"
7 xmlns:rich="http://richfaces.org/rich"
8 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi">
9
10 <body>
11 <ui:composition>
12
13 <h:panelGrid>
14 <h:panelGrid columns="2">
15 <h:outputLink value="#{CurrentPerson.displayUrl}"
16 title="Display this entity"
17 rendered="#{!empty CurrentPerson.displayUrl}">
18 <h:graphicImage url="#{ApplicationBean1.displayImage}" />
19 </h:outputLink>
20
21 <h:outputText value="Person - #{CurrentPerson.entity.ownValue}"
22 rendered="#{!empty CurrentPerson.entity.ownValue}"
23 style="font-size: 12pt;" styleClass="titlePanel" />
24 <h:outputText value="Person"
25 rendered="#{empty CurrentPerson.entity.ownValue}"
26 style="font-size: 12pt; " styleClass="titlePanel"/>
27 </h:panelGrid>
28 </h:panelGrid>
29
30 <h:panelGrid columns="3" styleClass="createPanel"
31 columnClasses="createPanelFirstColumn" id="personPanel">
32
33 <h:outputText value="Name" />
34 <h:inputText size="100" style="direction: rtl"
35 value="#{CurrentPerson.attributes['name']}" />
36 <h:outputText />
37
38 <h:outputText value="Name (translit)" />
39 <h:panelGrid columns="1">
40 <h:inputText size="100"
41 value="#{CurrentPerson.attributes['name_translit']}" >
42 <a4j:ajax event="keyup" render="romanized_author_name" listener="#{CurrentPerson.listenerRomanizeNameTranslit}" />
43 </h:inputText>
44 <h:outputText id="romanized_author_name" value="Romanization: #{CurrentPerson.romanizedNameTranslit}" />
45 </h:panelGrid>
46 <h:commandButton value="translit"
47 action="#{CurrentPerson.translitNameAction}" />
48
49 <h:outputText value="Prime Alias" />
50 <h:inputText
51 valueChangeListener="#{CurrentPerson.shortNameChangeListener}"
52 size="100" value="#{CurrentPerson.valueShortName}" />
53 <h:outputText />
54
55 <h:panelGrid>
56 <h:outputText value="Birth Date" />
57 </h:panelGrid>
58 <ismi:date date="#{CurrentPerson.calBirthDate}" />
59 <h:outputText />
60
61 <h:outputText value="Birth Date Text"
62 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" />
63 <h:inputText size="45"
64 value="#{CurrentPerson.attributes['birth_date_text']}"
65 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" />
66 <h:outputText
67 rendered="#{!empty CurrentPerson.attributes['birth_date_text']}" />
68
69 <h:outputText value="Death Date" />
70 <ismi:date date="#{CurrentPerson.calDeathDate}" />
71 <h:outputText />
72
73 <h:outputText value="Death Date Text"
74 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" />
75 <h:inputText size="45"
76 value="#{CurrentPerson.attributes['death_date_text']}"
77 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" />
78 <h:outputText
79 rendered="#{!empty CurrentPerson.attributes['death_date_text']}" />
80
81 <h:outputText value="Num Death Date"
82 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" />
83 <h:inputText size="45"
84 value="#{CurrentPerson.attributes['num_death_date']}"
85 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" />
86 <h:outputText
87 rendered="#{!empty CurrentPerson.attributes['num_death_date']}" />
88
89 <h:outputText value="Hijra Date Text"
90 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" />
91 <h:inputText size="45"
92 value="#{CurrentPerson.attributes['hijra_date']}"
93 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" />
94 <h:outputText
95 rendered="#{!empty CurrentPerson.attributes['hijra_date']}" />
96
97
98 <h:outputText value="URL (to biography)" />
99 <h:panelGrid columns="1" id="urlPerson">
100 <h:inputText size="70" value="#{CurrentPerson.attributes['url']}">
101 <a4j:ajax event="change" render="urlPerson" />
102 </h:inputText>
103 <a href="#{CurrentPerson.attributes['url']}" target="_blank"> <h:outputText
104 value="#{CurrentPerson.attributes['url']}" />
105 </a>
106 </h:panelGrid>
107 <h:outputText />
108
109 <h:outputText value="Authority ID (LoC)" />
110 <h:inputText size="70"
111 value="#{CurrentPerson.attributes['authority_id']}" />
112 <h:outputText />
113
114 <h:outputText value="Notes"></h:outputText>
115 <h:inputTextarea cols="70" rows="10"
116 value="#{CurrentPerson.attributes['notes']}"></h:inputTextarea>
117 <h:outputText />
118
119 <h:outputText value="Born in" />
120 <ismi:autocomplete lo="#{CurrentPerson.birthPlaceLo}" />
121 <h:outputText />
122
123 <h:outputText value="Died in" />
124 <ismi:autocomplete lo="#{CurrentPerson.deathPlaceLo}" />
125 <h:outputText />
126
127 <h:outputText value="Lived in (event)" />
128 <h:panelGrid columns="2" id="livedInEventPanel">
129 <rich:dataTable var="item"
130 value="#{CurrentPerson.livedInPlaces.entities}"
131 rendered="#{!empty CurrentPerson.livedInPlaces.entities}"
132 style="width: 100%;">
133 <h:column>
134 <f:facet name="header">
135 <h:outputText value="Place" style="width: 100px;" />
136 </f:facet>
137 <h:outputText value="[#{item.id}] #{item.ownValue}" />
138 </h:column>
139 <h:column>
140 <f:facet name="header">
141 <h:outputText value="Date" />
142 </f:facet>
143 <h:panelGrid columns="1">
144 <h:outputText
145 value="#{CurrentPerson.livedInPlaces.calendarMap[item.id].calendarAsHtml}"
146 escape="false" />
147 <a4j:commandButton image="#{ApplicationBean1.editImage}"
148 actionListener="#{CurrentPerson.listenerEditCalendarForLivedInPlaces}"
149 render="livedInEventPanel,currentCalendarPP" />
150 </h:panelGrid>
151 </h:column>
152 <h:column>
153 <h:selectBooleanCheckbox
154 value="#{CurrentPerson.livedInPlaces.selections[item.id]}" />
155 </h:column>
156 </rich:dataTable>
157 <a4j:commandButton value="Remove Selection"
158 actionListener="#{CurrentPerson.livedInPlaces.listenerRemoveSelection}"
159 rendered="#{!empty CurrentPerson.livedInPlaces.entities}"
160 render="livedInEventPanel" />
161
162 <ismi:autocomplete lo="#{CurrentPerson.livedInPlaces.lo}" />
163 <a4j:commandButton value="ADD"
164 actionListener="#{CurrentPerson.livedInPlaces.listenerAdd}"
165 render="livedInEventPanel" />
166
167 </h:panelGrid>
168 <h:outputText />
169
170 </h:panelGrid>
171
172 <ismi:entityList value="#{CurrentPerson.studentOfList}" />
173
174 <h:panelGrid columns="3" styleClass="createPanel"
175 columnClasses="createPanelFirstColumn">
176
177 <h:outputText value="Floruit Dates" />
178 <h:panelGrid columns="1" id="floruitPanel">
179 <h:panelGrid columns="2">
180 <h:dataTable value="#{CurrentPerson.floruitList.entities}" var="item"
181 rendered="#{!empty CurrentPerson.floruitList.entities}">
182 <h:column>
183 <h:panelGrid columns="1">
184 <h:outputText
185 value="#{CurrentPerson.floruitList.calendarMap[item.id].calendarAsHtml}"
186 escape="false" />
187 <a4j:commandButton image="#{ApplicationBean1.editImage}"
188 actionListener="#{CurrentPerson.listenerEditCalendarForFloruitDate}"
189 render="floruitPanel,currentCalendarPP" />
190 </h:panelGrid>
191 </h:column>
192 <h:column>
193 <h:selectBooleanCheckbox
194 value="#{CurrentPerson.floruitList.selections[item.id]}" />
195 </h:column>
196 </h:dataTable>
197 <h:commandButton value="Remove Selection"
198 actionListener="#{CurrentPerson.floruitList.listenerRemoveSelection}"
199 rendered="#{!empty CurrentPerson.floruitList.entities}" />
200 </h:panelGrid>
201 <h:commandButton value="New Floruit Date"
202 actionListener="#{CurrentPerson.floruitList.listenerCreateNoUnique}" />
203 </h:panelGrid>
204 <h:outputText />
205
206 <h:outputText value="Aliases" />
207 <h:panelGrid columns="1">
208 <h:panelGrid columns="2">
209 <h:dataTable value="#{CurrentPerson.aliasList.entities}" var="item"
210 rendered="#{!empty CurrentPerson.aliasList.entities}">
211 <h:column>
212 <h:outputText value="#{item.ownValue}" />
213 </h:column>
214 <h:column>
215 <h:selectBooleanCheckbox
216 value="#{CurrentPerson.aliasList.selections[item.id]}" />
217 </h:column>
218 </h:dataTable>
219 <h:commandButton value="Remove Selection"
220 actionListener="#{CurrentPerson.aliasList.listenerRemoveSelection}"
221 rendered="#{!empty CurrentPerson.aliasList.entities}" />
222 </h:panelGrid>
223
224 <h:panelGrid columns="2">
225 <h:inputText value="#{CurrentPerson.aliasList.input}" />
226 <h:commandButton value="CREATE"
227 actionListener="#{CurrentPerson.aliasList.listenerCreate}" />
228 </h:panelGrid>
229 </h:panelGrid>
230 <h:outputText />
231
232 <h:outputText value="Roles" />
233 <h:panelGrid columns="2">
234 <h:dataTable value="#{CurrentPerson.roleList.entities}" var="item"
235 rendered="#{!empty CurrentPerson.roleList.entities}">
236 <h:column>
237 <h:outputText value="#{item.ownValue}" />
238 </h:column>
239 <h:column>
240 <h:selectBooleanCheckbox
241 value="#{CurrentPerson.roleList.selections[item.id]}" />
242 </h:column>
243 </h:dataTable>
244 <h:commandButton value="Remove Selection"
245 rendered="#{!empty CurrentPerson.roleList.entities}"
246 actionListener="#{CurrentPerson.roleList.listenerRemoveSelection}" />
247
248 <h:selectOneMenu value="#{CurrentPerson.roleList.id}"
249 partialSubmit="true">
250 <f:selectItems value="#{ApplicationBean1.roleList}" />
251 </h:selectOneMenu>
252 <h:commandButton value="ADD"
253 actionListener="#{CurrentPerson.roleList.listenerAddRole}" />
254 </h:panelGrid>
255 <h:outputText />
256
257
258
259 </h:panelGrid>
260
261 <ismi:refWidget entityForm="#{CurrentPerson}" />
262
263
264 <h:panelGrid columns="4">
265 <h:outputText value="ID of the Person" />
266 <h:inputText value="#{CurrentPerson.currentId}" />
267 <h:commandButton value="Load Person By ID"
268 action="#{CurrentPerson.actionReloadEntity}"
269 onclick="confirm('Do you really want to reload the entity?');" />
270 <h:outputText value="#{CurrentPerson.currentIdMsg}"
271 style="color:red" />
272 </h:panelGrid>
273
274 <h:commandButton value="#{CurrentPerson.saveButtonLabel}"
275 rendered="#{CurrentPerson.renderSaveButton}"
276 action="#{CurrentPerson.save}"
277 onclick="#{ApplicationBean1.JSConfirmationSave}" />
278 <h:commandButton value="Clear Form"
279 action="#{CurrentPerson.clearAction}"
280 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
281
282 </ui:composition>
283 </body>
284 </html>