Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/digi.xhtml @ 111:22a18bfc66b0
new completion that uses ALIASes: AbstractListenerObject. was_copied_in in WITNESS form can use PLACE aliases now. some cleanup.
author | casties |
---|---|
date | Fri, 09 Dec 2016 21:18:27 +0100 |
parents | e2f6ccc4d322 |
children | 1326182855ef |
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 <h:panelGrid> | |
14 <h:panelGrid columns="2"> | |
15 | |
16 <h:outputText value="Digitalization - [#{CurrentDigi.entity.id}] #{CurrentDigi.entity.ownValue}" | |
17 rendered="#{!empty CurrentDigi.entity.ownValue}" | |
18 style="font-size: 12pt;" styleClass="titlePanel" /> | |
19 | |
62
bba950221e71
cleanup. site name on page configurable with openmind.properties "instance-name".
casties
parents:
7
diff
changeset
|
20 <h:outputText value="Digitalization" |
7 | 21 rendered="#{empty CurrentDigi.entity.ownValue}" |
22 style="font-size: 12pt; " styleClass="titlePanel"/> | |
23 <h:outputLink | |
84 | 24 value="#{ApplicationBean1.root}/imageServer/displayDigi.jsp?digiId=#{CurrentDigi.entity.id}" |
25 title="Display image" > | |
7 | 26 <h:graphicImage value="#{ApplicationBean1.displayImage}" width="20" height="20"/> |
27 </h:outputLink> | |
28 </h:panelGrid> | |
29 </h:panelGrid> | |
30 | |
31 | |
32 | |
33 <h:panelGrid columns="3" styleClass="createPanel" | |
34 columnClasses="createPanelFirstColumn" id="digiPanel"> | |
35 | |
36 <h:outputText value="Name" /> | |
37 <h:inputText size="50" | |
38 value="#{CurrentDigi.attributes['name']}" /> | |
39 <h:outputText /> | |
40 | |
41 <h:outputText value="Number of files" /> | |
42 <h:inputText size="50" | |
43 value="#{CurrentDigi.attributes['num_files']}" /> | |
44 <h:outputText /> | |
45 | |
46 <h:outputText value="Codex" styleClass="titlePanel"/> | |
47 <h:panelGrid columns="4" styleClass="createPanel" | |
48 columnClasses="createPanelFirstColumn" id="digiCodexPanel"> | |
49 | |
50 <h:outputLabel value="Country" /> | |
51 <ismi:autocomplete lo="#{CurrentDigi.countryLo}" /> | |
52 <h:outputText /> | |
53 <h:panelGrid> | |
54 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
55 rendered="#{!empty CurrentDigi.countryLo.entity.id}" | |
56 actionListener="#{CurrentDigi.editThisCountryAction}" /> | |
57 </h:panelGrid> | |
58 | |
59 <h:outputLabel value="Place/City" /> | |
60 <ismi:autocomplete lo="#{CurrentDigi.cityLo}" /> | |
61 <h:panelGrid> | |
62 <h:selectOneMenu | |
63 rendered="#{!empty CurrentDigi.citiesInCurrentCountry}" | |
64 valueChangeListener="#{CurrentDigi.inCurrentCountryListener}"> | |
65 <f:selectItems value="#{CurrentDigi.citiesInCurrentCountry}" /> | |
66 <a4j:ajax event="change" render="digiCodexPanel" /> | |
67 </h:selectOneMenu> | |
68 </h:panelGrid> | |
69 <h:panelGrid> | |
70 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
71 rendered="#{!empty CurrentDigi.cityLo.entity.id}" | |
72 actionListener="#{CurrentDigi.editThisCityAction}" /> | |
73 </h:panelGrid> | |
74 | |
75 | |
76 <h:outputLabel value="Repository" /> | |
77 <ismi:autocomplete lo="#{CurrentDigi.repositoryLo}" /> | |
78 <h:panelGrid> | |
79 <h:selectOneMenu partialSubmit="true" | |
80 rendered="#{!empty CurrentDigi.repositoriesInCurrentCity}" | |
81 valueChangeListener="#{CurrentDigi.inCurrentCityListener}"> | |
82 <f:selectItems value="#{CurrentDigi.repositoriesInCurrentCity}" /> | |
83 <a4j:ajax event="change" render="digiCodexPanel" /> | |
84 </h:selectOneMenu> | |
85 <h:outputText | |
86 rendered="#{empty CurrentDigi.repositoriesInCurrentCity}" /> | |
87 </h:panelGrid> | |
88 <h:panelGrid> | |
89 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
90 rendered="#{!empty CurrentDigi.repositoryLo.entity.id}" | |
91 actionListener="#{CurrentDigi.editThisRepositoryAction}" /> | |
92 </h:panelGrid> | |
93 | |
94 | |
95 <h:outputLabel value="Collection" /> | |
96 <ismi:autocomplete lo="#{CurrentDigi.collectionLo}" /> | |
97 <h:panelGrid> | |
98 <h:selectOneMenu | |
99 rendered="#{!empty CurrentDigi.collectionsInCurrentRepository}" | |
100 valueChangeListener="#{CurrentDigi.inCurrentRepositoryListener}"> | |
101 <f:selectItems | |
102 value="#{CurrentDigi.collectionsInCurrentRepository}" /> | |
103 <a4j:ajax event="change" render="digiCodexPanel" /> | |
104 </h:selectOneMenu> | |
105 </h:panelGrid> | |
106 <h:panelGrid> | |
107 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
108 rendered="#{!empty CurrentDigi.collectionLo.entity.id}" | |
109 actionListener="#{CurrentDigi.editThisCollectionAction}" /> | |
110 </h:panelGrid> | |
111 | |
112 <h:outputLabel value="Shelf Mark / Identifier" /> | |
113 <h:panelGroup> | |
114 <h:outputText | |
115 rendered="#{!empty CurrentDigi.codexLo.attribute.ownValue}" | |
116 value="#{CurrentDigi.codexLo.term}" | |
117 style="font-style:normal; | |
118 font-size:15px; | |
119 font-weight:bold; | |
120 font-family:sans-serif;" /> | |
121 </h:panelGroup> | |
122 <h:panelGrid> | |
123 <h:selectOneMenu | |
124 rendered="#{!empty CurrentDigi.shelfMarksInCurrentCollection}" | |
125 valueChangeListener="#{CurrentDigi.identifierChangedListener}"> | |
126 <f:selectItems | |
127 value="#{CurrentDigi.shelfMarksInCurrentCollection}" /> | |
128 <a4j:ajax event="change" render="digiCodexPanel" /> | |
129 </h:selectOneMenu> | |
130 </h:panelGrid> | |
131 <h:panelGrid> | |
132 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
133 rendered="#{!empty CurrentDigi.codexLo.entity.ownValue}" | |
134 actionListener="#{CurrentDigi.editThisCodexAction}" /> | |
135 </h:panelGrid> | |
136 | |
137 | |
138 <h:outputText /> | |
139 <h:commandButton | |
140 actionListener="#{CurrentDigi.checkConsistencyFromCountryToCodex}" | |
84 | 141 value="Check Consistency From Country To Codex" /> |
7 | 142 <h:outputText /> |
143 <h:outputText /> | |
144 | |
84 | 145 <h:outputText /> |
146 <h:commandButton | |
147 actionListener="#{CurrentDigi.unsetCodex}" | |
148 value="Remove Codex" /> | |
149 <h:outputText /> | |
150 <h:outputText /> | |
7 | 151 |
152 </h:panelGrid> | |
153 | |
154 | |
155 </h:panelGrid> | |
156 | |
157 | |
158 | |
159 | |
160 <h:panelGrid columns="4"> | |
161 <h:outputText value="ID of the Digitalization" /> | |
162 <h:inputText value="#{CurrentDigi.currentId}" /> | |
163 <h:commandButton value="Load By ID" | |
164 action="#{CurrentDigi.actionReloadEntity}" | |
165 onclick="confirm('Do you really want to reload the entity?');" /> | |
166 <h:outputText value="#{CurrentDigi.currentIdMsg}" | |
167 style="color:red" /> | |
168 </h:panelGrid> | |
169 | |
170 <h:commandButton | |
171 value="#{CurrentDigi.saveButtonLabel}" | |
172 rendered="#{CurrentDigi.renderSaveButton}" | |
173 action="#{CurrentDigi.save}" | |
174 onclick="#{ApplicationBean1.JSConfirmationSave}" /> | |
175 <h:commandButton value="Clear Form" | |
176 action="#{CurrentDigi.clearAction}" | |
177 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
178 | |
179 </ui:composition> | |
180 </body> | |
181 </html> |