annotate src/main/webapp/entry/collection.xhtml @ 9:e07a1ae515b7

(none)
author jurzua
date Tue, 24 Feb 2015 10:09:31 +0000
parents 764f47286679
children 3e620f32ed5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
jurzua
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
jurzua
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml"
jurzua
parents:
diff changeset
3 xmlns:h="http://java.sun.com/jsf/html"
jurzua
parents:
diff changeset
4 xmlns:f="http://java.sun.com/jsf/core"
jurzua
parents:
diff changeset
5 xmlns:ui="http://java.sun.com/jsf/facelets"
jurzua
parents:
diff changeset
6 xmlns:a4j="http://richfaces.org/a4j"
jurzua
parents:
diff changeset
7 xmlns:rich="http://richfaces.org/rich"
jurzua
parents:
diff changeset
8 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi">
jurzua
parents:
diff changeset
9
jurzua
parents:
diff changeset
10 <body>
jurzua
parents:
diff changeset
11 <ui:composition>
jurzua
parents:
diff changeset
12
jurzua
parents:
diff changeset
13 <h:panelGrid>
jurzua
parents:
diff changeset
14 <h:outputText
jurzua
parents:
diff changeset
15 value="Collection - #{CurrentCollection.entity.ownValue}"
jurzua
parents:
diff changeset
16 rendered="#{!empty CurrentCollection.entity.ownValue}"
jurzua
parents:
diff changeset
17 styleClass="titlePanel" />
jurzua
parents:
diff changeset
18 <h:outputText value="Collection"
jurzua
parents:
diff changeset
19 rendered="#{empty CurrentCollection.entity.ownValue}"
jurzua
parents:
diff changeset
20 styleClass="titlePanel" />
jurzua
parents:
diff changeset
21 </h:panelGrid>
jurzua
parents:
diff changeset
22
jurzua
parents:
diff changeset
23 <h:panelGrid columns="4" styleClass="createPanel"
jurzua
parents:
diff changeset
24 columnClasses="createPanelFirstColumn" id="collectionRepoPanel">
jurzua
parents:
diff changeset
25
jurzua
parents:
diff changeset
26 <h:outputLabel value="Country" />
jurzua
parents:
diff changeset
27 <ismi:autocomplete lo="#{CurrentCollection.countryLo}" />
jurzua
parents:
diff changeset
28 <h:outputText />
jurzua
parents:
diff changeset
29 <h:panelGrid>
jurzua
parents:
diff changeset
30 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
jurzua
parents:
diff changeset
31 rendered="#{!empty CurrentCollection.countryLo.entity.id}"
jurzua
parents:
diff changeset
32 actionListener="#{CurrentCollection.editThisCountryAction}" />
jurzua
parents:
diff changeset
33 </h:panelGrid>
jurzua
parents:
diff changeset
34
jurzua
parents:
diff changeset
35 <h:outputLabel value="Place/City" />
jurzua
parents:
diff changeset
36 <ismi:autocomplete lo="#{CurrentCollection.cityLo}" />
jurzua
parents:
diff changeset
37 <h:panelGrid>
jurzua
parents:
diff changeset
38 <h:selectOneMenu
jurzua
parents:
diff changeset
39 rendered="#{!empty CurrentCollection.citiesInCurrentCountry}"
jurzua
parents:
diff changeset
40 valueChangeListener="#{CurrentCollection.inCurrentCountryListener}">
jurzua
parents:
diff changeset
41 <f:selectItems value="#{CurrentCollection.citiesInCurrentCountry}" />
jurzua
parents:
diff changeset
42 <a4j:ajax event="change" render="collectionRepoPanel" />
jurzua
parents:
diff changeset
43 </h:selectOneMenu>
jurzua
parents:
diff changeset
44 </h:panelGrid>
jurzua
parents:
diff changeset
45 <h:panelGrid>
jurzua
parents:
diff changeset
46 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
jurzua
parents:
diff changeset
47 rendered="#{!empty CurrentCollection.cityLo.entity.id}"
jurzua
parents:
diff changeset
48 actionListener="#{CurrentCollection.editThisCityAction}" />
jurzua
parents:
diff changeset
49 </h:panelGrid>
jurzua
parents:
diff changeset
50
jurzua
parents:
diff changeset
51
jurzua
parents:
diff changeset
52 <h:outputLabel value="Repository" />
jurzua
parents:
diff changeset
53 <ismi:autocomplete lo="#{CurrentCollection.repositoryLo}" />
jurzua
parents:
diff changeset
54 <h:panelGrid>
jurzua
parents:
diff changeset
55 <h:selectOneMenu partialSubmit="true"
jurzua
parents:
diff changeset
56 rendered="#{!empty CurrentCollection.repositoriesInCurrentCity}"
jurzua
parents:
diff changeset
57 valueChangeListener="#{CurrentCollection.inCurrentCityListener}">
jurzua
parents:
diff changeset
58 <f:selectItems
jurzua
parents:
diff changeset
59 value="#{CurrentCollection.repositoriesInCurrentCity}" />
jurzua
parents:
diff changeset
60 <a4j:ajax event="change" render="collectionRepoPanel" />
jurzua
parents:
diff changeset
61 </h:selectOneMenu>
jurzua
parents:
diff changeset
62 <h:outputText
jurzua
parents:
diff changeset
63 rendered="#{empty CurrentCollection.repositoriesInCurrentCity}" />
jurzua
parents:
diff changeset
64 </h:panelGrid>
jurzua
parents:
diff changeset
65 <h:panelGrid>
jurzua
parents:
diff changeset
66 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
jurzua
parents:
diff changeset
67 rendered="#{!empty CurrentCollection.repositoryLo.entity.id}"
jurzua
parents:
diff changeset
68 actionListener="#{CurrentCollection.editThisRepositoryAction}" />
jurzua
parents:
diff changeset
69 </h:panelGrid>
jurzua
parents:
diff changeset
70
jurzua
parents:
diff changeset
71 <h:outputText />
jurzua
parents:
diff changeset
72 <h:commandButton
jurzua
parents:
diff changeset
73 actionListener="#{CurrentCollection.checkConsistencyFromCountryToCodex}"
jurzua
parents:
diff changeset
74 value="Check Consistency From Country To Codex" />
jurzua
parents:
diff changeset
75 <h:outputText />
jurzua
parents:
diff changeset
76 <h:outputText />
jurzua
parents:
diff changeset
77
jurzua
parents:
diff changeset
78 <h:outputLabel value="Collection name" />
jurzua
parents:
diff changeset
79 <h:inputText size="100"
jurzua
parents:
diff changeset
80 value="#{CurrentCollection.attributes['name']}" />
jurzua
parents:
diff changeset
81 <h:outputText />
jurzua
parents:
diff changeset
82 <h:outputText />
jurzua
parents:
diff changeset
83
jurzua
parents:
diff changeset
84 </h:panelGrid>
jurzua
parents:
diff changeset
85
jurzua
parents:
diff changeset
86 <ismi:refWidget entityForm="#{CurrentCollection}" />
jurzua
parents:
diff changeset
87
jurzua
parents:
diff changeset
88 <h:panelGrid columns="4">
jurzua
parents:
diff changeset
89 <h:outputText value="ID of the Collection"/>
jurzua
parents:
diff changeset
90 <h:inputText value="#{CurrentCollection.currentId}"/>
jurzua
parents:
diff changeset
91 <h:commandButton value="Load Collection By ID" action="#{CurrentCollection.actionReloadEntity}"
jurzua
parents:
diff changeset
92 onclick="confirm('Do you really want to reload the entity?');"/>
jurzua
parents:
diff changeset
93 <h:outputText value="#{CurrentCollection.currentIdMsg}" style="color:red"/>
jurzua
parents:
diff changeset
94 </h:panelGrid>
jurzua
parents:
diff changeset
95
jurzua
parents:
diff changeset
96 <h:commandButton value="#{CurrentCollection.saveButtonLabel}"
jurzua
parents:
diff changeset
97 rendered="#{CurrentCollection.renderSaveButton}"
jurzua
parents:
diff changeset
98 action="#{CurrentCollection.save}"
jurzua
parents:
diff changeset
99 onclick="#{ApplicationBean1.JSConfirmationSave}" />
jurzua
parents:
diff changeset
100 <h:commandButton value="Clear Form"
jurzua
parents:
diff changeset
101 action="#{CurrentCollection.clearAction}"
jurzua
parents:
diff changeset
102 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
jurzua
parents:
diff changeset
103 <h:commandButton value="Save as new Entity"
jurzua
parents:
diff changeset
104 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}"
jurzua
parents:
diff changeset
105 rendered="#{(CurrentCollection.entity.id != null and Session.canCreate)}"
jurzua
parents:
diff changeset
106 action="#{CurrentCollection.saveAsNewEntity}" />
jurzua
parents:
diff changeset
107
jurzua
parents:
diff changeset
108
jurzua
parents:
diff changeset
109
jurzua
parents:
diff changeset
110 <!-- Unity Warning -->
jurzua
parents:
diff changeset
111 <h:panelGrid id="collUnityWarningPP">
jurzua
parents:
diff changeset
112 <h:panelGroup
jurzua
parents:
diff changeset
113 rendered="#{CurrentCollection.renderUnityCheckerDialog}">
jurzua
parents:
diff changeset
114 <div style="z-index: 100;" class="rf-pp-shade">
jurzua
parents:
diff changeset
115 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
jurzua
parents:
diff changeset
116 </div>
jurzua
parents:
diff changeset
117
jurzua
parents:
diff changeset
118 <h:panelGrid columns="1" class="rf-pp-cntr"
jurzua
parents:
diff changeset
119 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;">
jurzua
parents:
diff changeset
120
jurzua
parents:
diff changeset
121 <div class="rf-pp-shdw"
jurzua
parents:
diff changeset
122 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
jurzua
parents:
diff changeset
123 </div>
jurzua
parents:
diff changeset
124 <div class="rf-pp-hdr " style="cursor: default;">
jurzua
parents:
diff changeset
125 <div class="rf-pp-hdr-cnt">Unity Warning</div>
jurzua
parents:
diff changeset
126 </div>
jurzua
parents:
diff changeset
127
jurzua
parents:
diff changeset
128 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
jurzua
parents:
diff changeset
129 style="width: 300px; height: 200px;">
jurzua
parents:
diff changeset
130
jurzua
parents:
diff changeset
131 <h:outputText value="#{CurrentCollection.unityCheckerMsg}"/>
jurzua
parents:
diff changeset
132 <h:panelGrid>
jurzua
parents:
diff changeset
133 <a4j:commandButton value="Load Entity" action="#{CurrentCollection.loadCloneEntity}"/>
jurzua
parents:
diff changeset
134 <a4j:commandButton value="Continue Editing" action="#{CurrentCollection.hideUnityCheckerDialog}" />
jurzua
parents:
diff changeset
135 </h:panelGrid>
jurzua
parents:
diff changeset
136
jurzua
parents:
diff changeset
137 </h:panelGrid>
jurzua
parents:
diff changeset
138 </h:panelGrid>
jurzua
parents:
diff changeset
139
jurzua
parents:
diff changeset
140 </h:panelGroup>
jurzua
parents:
diff changeset
141 </h:panelGrid>
jurzua
parents:
diff changeset
142
jurzua
parents:
diff changeset
143
jurzua
parents:
diff changeset
144 </ui:composition>
jurzua
parents:
diff changeset
145 </body>
jurzua
parents:
diff changeset
146 </html>