comparison src/main/webapp/entry/repository.xhtml @ 7:764f47286679

(none)
author jurzua
date Wed, 29 Oct 2014 14:28:34 +0000
parents
children 3e620f32ed5e
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 <h:panelGrid>
14 <h:outputText
15 value="Repository - #{CurrentRepository.entity.ownValue}"
16 rendered="#{!empty CurrentRepository.entity.ownValue}"
17 styleClass="titlePanel"/>
18 <h:outputText value="Repository"
19 rendered="#{empty CurrentRepository.entity.ownValue}"
20 styleClass="titlePanel"/>
21 </h:panelGrid>
22
23 <h:panelGrid columns="4" styleClass="createPanel"
24 columnClasses="createPanelFirstColumn" id="repoPanel">
25
26 <h:outputLabel value="Country" />
27 <ismi:autocomplete lo="#{CurrentRepository.countryLo}" />
28 <h:outputText />
29 <h:panelGrid>
30 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
31 rendered="#{!empty CurrentRepository.countryLo.entity.id}"
32 actionListener="#{CurrentRepository.editThisCountryAction}" />
33 </h:panelGrid>
34
35 <h:outputLabel value="Place/City" />
36 <ismi:autocomplete lo="#{CurrentRepository.cityLo}" />
37 <h:panelGrid>
38 <h:selectOneMenu
39 rendered="#{!empty CurrentRepository.citiesInCurrentCountry}"
40 valueChangeListener="#{CurrentRepository.inCurrentCountryListener}">
41 <f:selectItems value="#{CurrentRepository.citiesInCurrentCountry}" />
42 <a4j:ajax event="change" render="repoPanel" />
43 </h:selectOneMenu>
44 </h:panelGrid>
45 <h:panelGrid>
46 <h:commandButton alt="edit" image="#{ApplicationBean1.editImage}"
47 rendered="#{!empty CurrentRepository.cityLo.entity.id}"
48 actionListener="#{CurrentRepository.editThisCityAction}" />
49 </h:panelGrid>
50
51 <h:outputText />
52 <h:commandButton
53 actionListener="#{CurrentRepository.checkConsistencyFromCountryToCodex}"
54 value="Check Consistency From Country To Codex" />
55 <h:outputText />
56 <h:outputText />
57
58 <h:outputLabel value="Repository Name" />
59 <h:inputText size="100"
60 value="#{CurrentRepository.attributes['name']}" />
61 <h:outputText />
62 <h:outputText />
63
64 </h:panelGrid>
65
66 <ismi:refWidget entityForm="#{CurrentRepository}" />
67
68 <h:panelGrid columns="4">
69 <h:outputText value="ID of the Repository" />
70 <h:inputText value="#{CurrentRepository.currentId}" />
71 <h:commandButton value="Load Repository By ID"
72 action="#{CurrentRepository.actionReloadEntity}"
73 onclick="confirm('Do you really want to reload the entity?');" />
74 <h:outputText value="#{CurrentRepository.currentIdMsg}"
75 style="color:red" />
76 </h:panelGrid>
77
78 <h:commandButton value="#{CurrentRepository.saveButtonLabel}"
79 rendered="#{CurrentRepository.renderSaveButton}"
80 onclick="#{ApplicationBean1.JSConfirmationSave}"
81 action="#{CurrentRepository.save}" />
82 <h:commandButton value="Clear Form"
83 action="#{CurrentRepository.clearAction}"
84 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
85 <h:commandButton value="Save as new Entity"
86 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}"
87 rendered="#{(CurrentRepository.entity.id != null and Session.canCreate)}"
88 action="#{CurrentRepository.saveAsNewEntity}" />
89
90 <h:outputText rendered="#{CurrentRepository.create_error}"
91 value="City already exists - not saved!" />
92
93
94 <!-- Unity Warning -->
95 <h:panelGrid id="repUnityWarningPP">
96 <h:panelGroup
97 rendered="#{CurrentRepository.renderUnityCheckerDialog}">
98 <div style="z-index: 100;" class="rf-pp-shade">
99 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
100 </div>
101
102 <h:panelGrid columns="1" class="rf-pp-cntr"
103 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 300px; z-index: 100;">
104
105 <div class="rf-pp-shdw"
106 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
107 </div>
108 <div class="rf-pp-hdr " style="cursor: default;">
109 <div class="rf-pp-hdr-cnt">Unity Warning</div>
110 </div>
111
112 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
113 style="width: 300px; height: 200px;">
114
115 <h:outputText value="#{CurrentRepository.unityCheckerMsg}"/>
116 <h:panelGrid>
117 <a4j:commandButton value="Load Entity" action="#{CurrentRepository.loadCloneEntity}"/>
118 <a4j:commandButton value="Continue Editing" action="#{CurrentRepository.hideUnityCheckerDialog}" />
119 </h:panelGrid>
120
121 </h:panelGrid>
122 </h:panelGrid>
123
124 </h:panelGroup>
125 </h:panelGrid>
126
127 </ui:composition>
128 </body>
129 </html>