Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/text.xhtml @ 139:9cd25e1a58f0
change save button to a4j to show busy indicator for person, text, and other entry forms.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 16 Jun 2017 19:21:44 +0200 |
parents | 71638720fe2f |
children | 1c09041f1182 |
rev | line source |
---|---|
7 | 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 <ui:include src="components/textPopups.xhtml" /> | |
14 | |
15 <h:panelGroup> | |
16 | |
17 <h:panelGrid columns="2"> | |
18 <h:outputLink value="#{CurrentText.displayUrl}" | |
19 title="Display this entity" | |
20 rendered="#{!empty CurrentText.displayUrl}"> | |
21 <h:graphicImage url="#{ApplicationBean1.displayImage}" /> | |
22 </h:outputLink> | |
23 <h:outputText value="Text - #{CurrentText.entity.ownValue}" | |
24 rendered="#{!empty CurrentText.entity.ownValue}" | |
25 styleClass="titlePanel"/> | |
26 <h:outputText value="Text" | |
27 rendered="#{empty CurrentText.entity.ownValue}" | |
28 styleClass="titlePanel"/> | |
29 </h:panelGrid> | |
30 </h:panelGroup> | |
31 | |
32 | |
33 <h:panelGrid columns="3" styleClass="createPanel" columnClasses="createPanelFirstColumn"> | |
34 | |
35 <h:outputText value="Full Title (arabic)" /> | |
36 <h:inputText size="100" style="direction: rtl;" | |
37 value="#{CurrentText.attributes['full_title']}" /> | |
38 <h:outputText /> | |
39 | |
40 <h:outputText value="Full Title (translit)" id="full_title_translit" /> | |
41 | |
42 <h:panelGrid columns="1"> | |
43 <h:inputText size="100" | |
44 data-attName="full_title_translit" | |
45 value="#{CurrentText.attributes['full_title_translit']}"> | |
46 <a4j:ajax event="keyup" render="romanized_title" listener="#{CurrentText.listenerRomanizeTitleTranslit}" /> | |
47 </h:inputText> | |
48 <h:outputText id="romanized_title" value="Romanization: #{CurrentText.romanizedTitle}" /> | |
49 </h:panelGrid> | |
50 | |
51 <h:commandButton value="translit" | |
52 action="#{CurrentText.translitTitleAction}" /> | |
53 | |
54 <h:outputText value="Prime Alias"/> | |
55 <h:panelGrid columns="1"> | |
56 <h:inputText | |
57 size="100" value="#{CurrentText.valueShortTitle}"> | |
58 <a4j:ajax event="keyup" render="romanized_prime_alias" listener="#{CurrentText.listenerRomanizePrimaAlias}" /> | |
59 </h:inputText> | |
60 <h:outputText id="romanized_prime_alias" value="Romanization: #{CurrentText.romanizedPrimaAlias}" /> | |
61 </h:panelGrid> | |
62 <h:outputText /> | |
63 | |
64 <h:outputText value="Language" /> | |
65 <h:selectOneMenu partialSubmit="true" | |
66 value="#{CurrentText.attributes['language']}"> | |
67 <f:selectItems value="#{ApplicationBean1.suggestedLanguages}" /> | |
68 </h:selectOneMenu> | |
69 <h:outputText /> | |
70 | |
71 <h:outputText value="Subject" /> | |
72 <h:selectOneMenu partialSubmit="true" | |
73 value="#{CurrentText.idSubject}"> | |
74 <f:selectItems value="#{ApplicationBean1.suggestedSubjects}" /> | |
75 </h:selectOneMenu> | |
76 <h:outputText /> | |
77 | |
78 | |
79 <h:outputText value="Created by" /> | |
80 <a4j:outputPanel id="createByPanel"> | |
81 <ismi:autocomplete lo="#{CurrentText.authorLo}" /> | |
82 </a4j:outputPanel> | |
83 <h:commandButton value="Show all authors" | |
84 actionListener="#{CurrentText.listenerShowAllAuthors}"> | |
85 </h:commandButton> | |
86 | |
120 | 87 <h:outputText value="Misattributed to" /> |
7 | 88 <ui:include src="components/misattribution.xhtml" /> |
89 <h:outputText /> | |
90 | |
91 | |
92 <h:outputText value="Created in" /> | |
93 <ismi:autocomplete lo="#{CurrentText.placeLo}" /> | |
94 <h:outputText /> | |
95 | |
96 <h:outputText value="Incipit" /> | |
97 <h:inputTextarea cols="65" rows="10" dir="RTL" | |
98 value="#{CurrentText.attributes['incipit']}" /> | |
99 <h:outputText /> | |
100 <h:outputText value="Explicit" /> | |
101 <h:inputTextarea cols="65" rows="10" dir="RTL" | |
102 value="#{CurrentText.attributes['explicit']}" /> | |
103 <h:outputText /> | |
104 <h:outputText value="Dedication" /> | |
105 <h:inputTextarea cols="65" rows="10" dir="RTL" | |
106 value="#{CurrentText.attributes['dedication']}" /> | |
107 <h:outputText /> | |
108 | |
109 <h:outputText value="Dedicated to" /> | |
110 <a4j:outputPanel id="dedicatedToPanel"> | |
111 <ismi:autocomplete lo="#{CurrentText.dedicatedPersonLo}" /> | |
112 </a4j:outputPanel> | |
113 | |
114 <h:commandButton value="Show all persons" | |
115 actionListener="#{CurrentText.listenerShowAllDedicatedToPersons}" /> | |
116 | |
117 <h:outputText value="Creation Date" /> | |
118 <ismi:date date="#{CurrentText.creationDate}" /> | |
119 <h:outputText /> | |
120 | |
121 <h:outputText value="Text Type" /> | |
122 <h:selectOneMenu partialSubmit="true" | |
123 value="#{CurrentText.attributes['text_type']}"> | |
124 <f:selectItems value="#{ApplicationBean1.suggestedTextTypes}" /> | |
125 </h:selectOneMenu> | |
126 <h:outputText /> | |
127 | |
128 <h:outputText value="Text arrangement" /> | |
129 <h:inputTextarea cols="65" rows="10" | |
130 value="#{CurrentText.attributes['text_arrangement']}" /> | |
131 <h:outputText /> | |
132 | |
133 <h:outputText value="Table of Contents" /> | |
76 | 134 <rich:editor |
135 value="#{CurrentWitness.attributes['table_of_contents']}" | |
136 style="direction: rtl;" /> | |
137 <!-- <h:inputTextarea cols="65" rows="10" | |
7 | 138 value="#{CurrentText.attributes['table_of_contents']}" |
139 style="direction: rtl;" /> | |
76 | 140 <h:outputText /> --> |
7 | 141 |
142 <h:outputText value="Notes" /> | |
143 <h:inputTextarea cols="65" rows="10" | |
144 value="#{CurrentText.attributes['notes']}" /> | |
145 <h:outputText /> | |
9 | 146 |
147 <h:outputText value="Notes (old)" /> | |
148 <h:inputTextarea cols="65" rows="10" | |
149 value="#{CurrentText.attributes['notes_old']}" /> | |
150 <h:outputText /> | |
7 | 151 |
152 <h:outputText value="Commentary on" /> | |
153 <ismi:autocomplete lo="#{CurrentText.commentaryLo}" /> | |
154 <h:outputText/> | |
155 | |
156 <h:outputText value="Translation of" /> | |
157 <ismi:autocomplete lo="#{CurrentText.translationLo}" /> | |
158 <h:outputText/> | |
159 | |
160 <h:outputText value="Version of" /> | |
161 <ismi:autocomplete lo="#{CurrentText.versionLo}" /> | |
162 <h:outputText/> | |
163 | |
164 <h:outputText value="Aliases for Title" /> | |
165 <h:panelGrid columns="1" border="1"> | |
166 <h:panelGrid columns="2"> | |
167 <h:dataTable value="#{CurrentText.aliasList.entities}" var="item"> | |
168 <h:column> | |
169 <h:outputText value="#{item.ownValue}" /> | |
170 </h:column> | |
171 <h:column> | |
172 <h:selectBooleanCheckbox | |
173 value="#{CurrentText.aliasList.selections[item.id]}" /> | |
174 </h:column> | |
175 </h:dataTable> | |
176 <h:commandButton value="Remove Selection" | |
177 actionListener="#{CurrentText.aliasList.listenerRemoveSelection}" /> | |
178 </h:panelGrid> | |
179 | |
180 <h:panelGrid columns="2"> | |
181 <h:inputText value="#{CurrentText.aliasList.input}" | |
182 style="width:500px;" /> | |
183 <h:commandButton value="CREATE" | |
184 actionListener="#{CurrentText.aliasList.listenerCreate}" /> | |
185 </h:panelGrid> | |
186 </h:panelGrid> | |
187 <h:outputText /> | |
188 | |
189 <h:outputText value="Aliases for Explicit" /> | |
190 <h:panelGrid columns="1" border="1"> | |
191 <h:panelGrid columns="2"> | |
192 <h:dataTable value="#{CurrentText.explicitAliasList.entities}" | |
193 var="item"> | |
194 <h:column> | |
195 <h:outputText value="#{item.ownValue}" /> | |
196 </h:column> | |
197 <h:column> | |
198 <h:selectBooleanCheckbox | |
199 value="#{CurrentText.explicitAliasList.selections[item.id]}" /> | |
200 </h:column> | |
201 </h:dataTable> | |
202 <h:commandButton value="Remove Selection" | |
203 actionListener="#{CurrentText.explicitAliasList.listenerRemoveSelection}" /> | |
204 </h:panelGrid> | |
205 | |
206 <h:panelGrid columns="2"> | |
207 <h:inputText value="#{CurrentText.explicitAliasList.input}" | |
208 style="direction: rtl;width:500px;" /> | |
209 <h:commandButton value="CREATE" | |
210 actionListener="#{CurrentText.explicitAliasList.listenerCreate}" /> | |
211 </h:panelGrid> | |
212 </h:panelGrid> | |
213 <h:outputText /> | |
214 | |
215 <h:outputText value="Aliases for Incipit" /> | |
216 <h:panelGrid columns="1" border="1"> | |
217 <h:panelGrid columns="2"> | |
218 <h:dataTable value="#{CurrentText.incipitAliasList.entities}" | |
219 var="item"> | |
220 <h:column> | |
221 <h:outputText value="#{item.ownValue}" /> | |
222 </h:column> | |
223 <h:column> | |
224 <h:selectBooleanCheckbox | |
225 value="#{CurrentText.incipitAliasList.selections[item.id]}" /> | |
226 </h:column> | |
227 </h:dataTable> | |
228 <h:commandButton value="Remove Selection" | |
229 actionListener="#{CurrentText.incipitAliasList.listenerRemoveSelection}" /> | |
230 </h:panelGrid> | |
231 | |
232 <h:panelGrid columns="2"> | |
233 <h:inputText value="#{CurrentText.incipitAliasList.input}" | |
234 style="direction: rtl;width:500px;" /> | |
235 <h:commandButton value="CREATE" | |
236 actionListener="#{CurrentText.incipitAliasList.listenerCreate}" /> | |
237 </h:panelGrid> | |
238 </h:panelGrid> | |
239 <h:outputText /> | |
240 </h:panelGrid> | |
241 | |
242 <ismi:refWidget entityForm="#{CurrentText}" /> | |
243 | |
244 <h:panelGrid columns="4"> | |
245 <h:outputText value="ID of the Text" /> | |
246 <h:inputText value="#{CurrentText.currentId}" /> | |
247 <h:commandButton value="Load Text By ID" | |
248 action="#{CurrentText.actionReloadEntity}" | |
249 onclick="confirm('Do you really want to reload the entity?');" /> | |
250 <h:outputText value="#{CurrentText.currentIdMsg}" style="color:red" /> | |
251 </h:panelGrid> | |
252 | |
139
9cd25e1a58f0
change save button to a4j to show busy indicator for person, text, and other entry forms.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
120
diff
changeset
|
253 <a4j:commandButton value="#{CurrentText.saveButtonLabel}" |
7 | 254 rendered="#{CurrentText.renderSaveButton}" |
255 action="#{CurrentText.save}" | |
256 onclick="#{ApplicationBean1.JSConfirmationSave}" /> | |
257 <h:commandButton value="Clear Form" | |
258 action="#{CurrentText.clearAction}" | |
259 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
260 | |
261 <h:outputText rendered="#{CurrentText.create_error}" | |
262 value="City already exists - not saved!" /> | |
263 | |
264 | |
265 </ui:composition> | |
266 </body> | |
267 </html> |