Mercurial > hg > ismi-richfaces
annotate src/main/webapp/entry/collection.xhtml @ 199:8af530c5b4cd
new find-lost-alias function in clean menu to delete aliases without relations.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 23 Jan 2019 20:28:00 +0100 |
parents | 9cd25e1a58f0 |
children |
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:outputText | |
15 value="Collection - #{CurrentCollection.entity.ownValue}" | |
16 rendered="#{!empty CurrentCollection.entity.ownValue}" | |
17 styleClass="titlePanel" /> | |
18 <h:outputText value="Collection" | |
19 rendered="#{empty CurrentCollection.entity.ownValue}" | |
20 styleClass="titlePanel" /> | |
21 </h:panelGrid> | |
22 | |
23 <h:panelGrid columns="4" styleClass="createPanel" | |
24 columnClasses="createPanelFirstColumn" id="collectionRepoPanel"> | |
25 | |
26 <h:outputLabel value="Country" /> | |
27 <ismi:autocomplete lo="#{CurrentCollection.countryLo}" /> | |
28 <h:outputText /> | |
29 <h:panelGrid> | |
30 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
31 rendered="#{!empty CurrentCollection.countryLo.entity.id}" | |
32 actionListener="#{CurrentCollection.editThisCountryAction}" /> | |
33 </h:panelGrid> | |
34 | |
35 <h:outputLabel value="Place/City" /> | |
36 <ismi:autocomplete lo="#{CurrentCollection.cityLo}" /> | |
37 <h:panelGrid> | |
38 <h:selectOneMenu | |
39 rendered="#{!empty CurrentCollection.citiesInCurrentCountry}" | |
40 valueChangeListener="#{CurrentCollection.inCurrentCountryListener}"> | |
41 <f:selectItems value="#{CurrentCollection.citiesInCurrentCountry}" /> | |
42 <a4j:ajax event="change" render="collectionRepoPanel" /> | |
43 </h:selectOneMenu> | |
44 </h:panelGrid> | |
45 <h:panelGrid> | |
46 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
47 rendered="#{!empty CurrentCollection.cityLo.entity.id}" | |
48 actionListener="#{CurrentCollection.editThisCityAction}" /> | |
49 </h:panelGrid> | |
50 | |
51 | |
52 <h:outputLabel value="Repository" /> | |
53 <ismi:autocomplete lo="#{CurrentCollection.repositoryLo}" /> | |
54 <h:panelGrid> | |
55 <h:selectOneMenu partialSubmit="true" | |
56 rendered="#{!empty CurrentCollection.repositoriesInCurrentCity}" | |
57 valueChangeListener="#{CurrentCollection.inCurrentCityListener}"> | |
58 <f:selectItems | |
59 value="#{CurrentCollection.repositoriesInCurrentCity}" /> | |
60 <a4j:ajax event="change" render="collectionRepoPanel" /> | |
61 </h:selectOneMenu> | |
62 <h:outputText | |
63 rendered="#{empty CurrentCollection.repositoriesInCurrentCity}" /> | |
64 </h:panelGrid> | |
65 <h:panelGrid> | |
66 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}" | |
67 rendered="#{!empty CurrentCollection.repositoryLo.entity.id}" | |
68 actionListener="#{CurrentCollection.editThisRepositoryAction}" /> | |
69 </h:panelGrid> | |
70 | |
71 <h:outputText /> | |
72 <h:commandButton | |
73 actionListener="#{CurrentCollection.checkConsistencyFromCountryToCodex}" | |
74 value="Check Consistency From Country To Codex" /> | |
75 <h:outputText /> | |
76 <h:outputText /> | |
77 | |
78 <h:outputLabel value="Collection name" /> | |
79 <h:inputText size="100" | |
80 value="#{CurrentCollection.attributes['name']}" /> | |
81 <h:outputText /> | |
82 <h:outputText /> | |
83 | |
84 </h:panelGrid> | |
85 | |
86 <ismi:refWidget entityForm="#{CurrentCollection}" /> | |
87 | |
88 <h:panelGrid columns="4"> | |
89 <h:outputText value="ID of the Collection"/> | |
90 <h:inputText value="#{CurrentCollection.currentId}"/> | |
91 <h:commandButton value="Load Collection By ID" action="#{CurrentCollection.actionReloadEntity}" | |
92 onclick="confirm('Do you really want to reload the entity?');"/> | |
93 <h:outputText value="#{CurrentCollection.currentIdMsg}" style="color:red"/> | |
94 </h:panelGrid> | |
95 | |
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:
79
diff
changeset
|
96 <a4j:commandButton value="#{CurrentCollection.saveButtonLabel}" |
7 | 97 rendered="#{CurrentCollection.renderSaveButton}" |
98 action="#{CurrentCollection.save}" | |
99 onclick="#{ApplicationBean1.JSConfirmationSave}" /> | |
100 <h:commandButton value="Clear Form" | |
101 action="#{CurrentCollection.clearAction}" | |
102 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> | |
103 | |
104 | |
105 | |
106 <!-- Unity Warning --> | |
107 <h:panelGrid id="collUnityWarningPP"> | |
108 <h:panelGroup | |
109 rendered="#{CurrentCollection.renderUnityCheckerDialog}"> | |
110 <div style="z-index: 100;" class="rf-pp-shade"> | |
111 <button class="rf-pp-btn" tabindex="-1" accesskey="" /> | |
112 </div> | |
113 | |
114 <h:panelGrid columns="1" class="rf-pp-cntr" | |
115 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;"> | |
116 | |
117 <div class="rf-pp-shdw" | |
118 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;"> | |
119 </div> | |
120 <div class="rf-pp-hdr " style="cursor: default;"> | |
121 <div class="rf-pp-hdr-cnt">Unity Warning</div> | |
122 </div> | |
123 | |
124 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr" | |
125 style="width: 300px; height: 200px;"> | |
126 | |
127 <h:outputText value="#{CurrentCollection.unityCheckerMsg}"/> | |
128 <h:panelGrid> | |
129 <a4j:commandButton value="Load Entity" action="#{CurrentCollection.loadCloneEntity}"/> | |
130 <a4j:commandButton value="Continue Editing" action="#{CurrentCollection.hideUnityCheckerDialog}" /> | |
131 </h:panelGrid> | |
132 | |
133 </h:panelGrid> | |
134 </h:panelGrid> | |
135 | |
136 </h:panelGroup> | |
137 </h:panelGrid> | |
138 | |
139 | |
140 </ui:composition> | |
141 </body> | |
142 </html> |