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