Mercurial > hg > ismi-richfaces
comparison src/main/webapp/entry/text.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 <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 | |
87 <h:outputText value="Misattributions" /> | |
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" /> | |
134 <h:inputTextarea cols="65" rows="10" | |
135 value="#{CurrentText.attributes['table_of_contents']}" | |
136 style="direction: rtl;" /> | |
137 <h:outputText /> | |
138 | |
139 <h:outputText value="Notes" /> | |
140 <h:inputTextarea cols="65" rows="10" | |
141 value="#{CurrentText.attributes['notes']}" /> | |
142 <h:outputText /> | |
143 | |
144 <h:outputText value="Commentary on" /> | |
145 <ismi:autocomplete lo="#{CurrentText.commentaryLo}" /> | |
146 <h:outputText/> | |
147 | |
148 <h:outputText value="Translation of" /> | |
149 <ismi:autocomplete lo="#{CurrentText.translationLo}" /> | |
150 <h:outputText/> | |
151 | |
152 <h:outputText value="Version of" /> | |
153 <ismi:autocomplete lo="#{CurrentText.versionLo}" /> | |
154 <h:outputText/> | |
155 | |
156 <h:outputText value="Aliases for Title" /> | |
157 <h:panelGrid columns="1" border="1"> | |
158 <h:panelGrid columns="2"> | |
159 <h:dataTable value="#{CurrentText.aliasList.entities}" var="item"> | |
160 <h:column> | |
161 <h:outputText value="#{item.ownValue}" /> | |
162 </h:column> | |
163 <h:column> | |
164 <h:selectBooleanCheckbox | |
165 value="#{CurrentText.aliasList.selections[item.id]}" /> | |
166 </h:column> | |
167 </h:dataTable> | |
168 <h:commandButton value="Remove Selection" | |
169 actionListener="#{CurrentText.aliasList.listenerRemoveSelection}" /> | |
170 </h:panelGrid> | |
171 | |
172 <h:panelGrid columns="2"> | |
173 <h:inputText value="#{CurrentText.aliasList.input}" | |
174 style="width:500px;" /> | |
175 <h:commandButton value="CREATE" | |
176 actionListener="#{CurrentText.aliasList.listenerCreate}" /> | |
177 </h:panelGrid> | |
178 </h:panelGrid> | |
179 <h:outputText /> | |
180 | |
181 <h:outputText value="Aliases for Explicit" /> | |
182 <h:panelGrid columns="1" border="1"> | |
183 <h:panelGrid columns="2"> | |
184 <h:dataTable value="#{CurrentText.explicitAliasList.entities}" | |
185 var="item"> | |
186 <h:column> | |
187 <h:outputText value="#{item.ownValue}" /> | |
188 </h:column> | |
189 <h:column> | |
190 <h:selectBooleanCheckbox | |
191 value="#{CurrentText.explicitAliasList.selections[item.id]}" /> | |
192 </h:column> | |
193 </h:dataTable> | |
194 <h:commandButton value="Remove Selection" | |
195 actionListener="#{CurrentText.explicitAliasList.listenerRemoveSelection}" /> | |
196 </h:panelGrid> | |
197 | |
198 <h:panelGrid columns="2"> | |
199 <h:inputText value="#{CurrentText.explicitAliasList.input}" | |
200 style="direction: rtl;width:500px;" /> | |
201 <h:commandButton value="CREATE" | |
202 actionListener="#{CurrentText.explicitAliasList.listenerCreate}" /> | |
203 </h:panelGrid> | |
204 </h:panelGrid> | |
205 <h:outputText /> | |
206 | |
207 <h:outputText value="Aliases for Incipit" /> | |
208 <h:panelGrid columns="1" border="1"> | |
209 <h:panelGrid columns="2"> | |
210 <h:dataTable value="#{CurrentText.incipitAliasList.entities}" | |
211 var="item"> | |
212 <h:column> | |
213 <h:outputText value="#{item.ownValue}" /> | |
214 </h:column> | |
215 <h:column> | |
216 <h:selectBooleanCheckbox | |
217 value="#{CurrentText.incipitAliasList.selections[item.id]}" /> | |
218 </h:column> | |
219 </h:dataTable> | |
220 <h:commandButton value="Remove Selection" | |
221 actionListener="#{CurrentText.incipitAliasList.listenerRemoveSelection}" /> | |
222 </h:panelGrid> | |
223 | |
224 <h:panelGrid columns="2"> | |
225 <h:inputText value="#{CurrentText.incipitAliasList.input}" | |
226 style="direction: rtl;width:500px;" /> | |
227 <h:commandButton value="CREATE" | |
228 actionListener="#{CurrentText.incipitAliasList.listenerCreate}" /> | |
229 </h:panelGrid> | |
230 </h:panelGrid> | |
231 <h:outputText /> | |
232 </h:panelGrid> | |
233 | |
234 <ismi:refWidget entityForm="#{CurrentText}" /> | |
235 | |
236 <h:panelGrid columns="4"> | |
237 <h:outputText value="ID of the Text" /> | |
238 <h:inputText value="#{CurrentText.currentId}" /> | |
239 <h:commandButton value="Load Text By ID" | |
240 action="#{CurrentText.actionReloadEntity}" | |
241 onclick="confirm('Do you really want to reload the entity?');" /> | |
242 <h:outputText value="#{CurrentText.currentIdMsg}" style="color:red" /> | |
243 </h:panelGrid> | |
244 | |
245 <h:commandButton value="#{CurrentText.saveButtonLabel}" | |
246 rendered="#{CurrentText.renderSaveButton}" | |
247 action="#{CurrentText.save}" | |
248 onclick="#{ApplicationBean1.JSConfirmationSave}" /> | |
249 <h:commandButton value="Clear Form" | |
250 action="#{CurrentText.clearAction}" | |
251 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
252 <h:commandButton value="Save as new Entity" | |
253 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}" | |
254 rendered="#{(CurrentText.entity.id != null and Session.canCreate)}" | |
255 action="#{CurrentText.saveAsNewEntity}" /> | |
256 | |
257 <h:outputText rendered="#{CurrentText.create_error}" | |
258 value="City already exists - not saved!" /> | |
259 | |
260 | |
261 </ui:composition> | |
262 </body> | |
263 </html> |