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 <body>
|
|
9 <ui:composition>
|
|
10
|
|
11
|
|
12 <!-- Select Codex -->
|
|
13 <h:panelGrid id="witnessSelectCodex">
|
|
14 <h:panelGroup rendered="#{CurrentWitness.codicesOverviewRendered}">
|
|
15 <div style="z-index: 100;" class="rf-pp-shade">
|
|
16 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
17 </div>
|
|
18
|
|
19 <h:panelGrid columns="1" class="rf-pp-cntr"
|
|
20 style="height: 100px; left: 100px; position: fixed; top: 50px; width: 500px; z-index: 100;">
|
|
21
|
|
22 <div class="rf-pp-shdw"
|
|
23 style="height: 100px; left: 100px; left: 5px; top: 5px; bottom: -5px; opacity: 0.1;">
|
|
24 </div>
|
|
25 <div class="rf-pp-hdr " style="cursor: default;">
|
|
26 <div class="rf-pp-hdr-cnt">Select Codex</div>
|
|
27 </div>
|
|
28
|
|
29 <h:panelGrid columns="1" class="rf-pp-cnt-scrlr"
|
|
30 style="width: 500px; height: 329px;">
|
|
31 <h:panelGrid columns="1" class="rf-pp-cnt">
|
|
32
|
|
33 <h:panelGrid columns="1">
|
|
34 <rich:dataTable value="#{CurrentWitness.codicesAll}" var="item"
|
|
35 rows="5">
|
|
36
|
|
37 <rich:column>
|
|
38 <a4j:commandButton value="#{item.id}"
|
|
39 actionListener="#{CurrentWitness.selectCodexFromOverviewAction}"
|
|
40 render="witnessSelectCodex" />
|
|
41 </rich:column>
|
|
42 <rich:column>
|
|
43 <h:outputText value="#{item.ident}" />
|
|
44 </rich:column>
|
|
45 <rich:column>
|
|
46 <h:outputText value="#{item.collection}" />
|
|
47 </rich:column>
|
|
48 <rich:column>
|
|
49 <h:outputText value="#{item.repository}" />
|
|
50 </rich:column>
|
|
51 <rich:column>
|
|
52 <h:outputText value="#{item.place}" />
|
|
53 </rich:column>
|
|
54 </rich:dataTable>
|
|
55 <a4j:commandButton value="Close"
|
|
56 action="#{CurrentWitness.closeCodicesOverview}"
|
|
57 render="witnessSelectCodex" />
|
|
58 </h:panelGrid>
|
|
59 </h:panelGrid>
|
|
60 </h:panelGrid>
|
|
61 </h:panelGrid>
|
|
62
|
|
63 </h:panelGroup>
|
|
64 </h:panelGrid>
|
|
65
|
|
66
|
|
67 <!-- Codex unknown -->
|
|
68 <h:panelGrid id="witnessCodexUnknown">
|
|
69 <h:panelGroup rendered="#{CurrentWitness.createCodexRendered}">
|
|
70 <div style="z-index: 100;" class="rf-pp-shade">
|
|
71 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
72 </div>
|
|
73
|
|
74 <h:panelGrid columns="1" styleClass="ismi-pp-cntr"
|
|
75 style="margin-left: -200px">
|
|
76
|
|
77 <div class="ismi-pp-hdr">
|
|
78 <div class="ismi-pp-hdr-cnt">Codex unknown</div>
|
|
79 </div>
|
|
80
|
|
81 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel">
|
|
82 <h:outputText>Codex unknown!</h:outputText>
|
|
83 <h:outputText>You can only save a witness, if the codex exists</h:outputText>
|
|
84 <h:outputText>and the codex has an identifier!</h:outputText>
|
|
85 <h:panelGrid columns="2">
|
|
86 <a4j:commandButton value="Create Codex"
|
|
87 rendered="#{!empty CurrentWitness.newIdentifier}"
|
|
88 action="#{CurrentWitness.createCodexAction}" />
|
|
89 <a4j:commandButton value="Continue Editing"
|
|
90 action="#{CurrentWitness.cancelCodexAction}" />
|
|
91 </h:panelGrid>
|
|
92 </h:panelGrid>
|
|
93 </h:panelGrid>
|
|
94 </h:panelGroup>
|
|
95 </h:panelGrid>
|
|
96
|
|
97
|
|
98
|
|
99 <!-- Select Title -->
|
|
100 <h:panelGrid id="ppWitnessSelectTitle">
|
|
101 <h:panelGroup rendered="#{CurrentWitness.selectTitleRendered}">
|
|
102 <div style="z-index: 100;" class="rf-pp-shade">
|
|
103 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
104 </div>
|
|
105
|
|
106 <h:panelGrid columns="1" styleClass="ismi-pp-cntr"
|
|
107 style="margin-left: -200px">
|
|
108
|
|
109 <div class="ismi-pp-hdr">
|
|
110 <div class="ismi-pp-hdr-cnt">Select Title</div>
|
|
111 </div>
|
|
112
|
|
113 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel">
|
|
114
|
|
115 <h:selectOneListbox partialSubmit="true" size="10"
|
|
116 value="#{CurrentWitness.selectedTitleId}" style="width: 400px;">
|
|
117 <f:selectItems value="#{CurrentWitness.titles_list}" />
|
|
118 </h:selectOneListbox>
|
|
119
|
|
120 <h:panelGrid columns="2">
|
|
121 <a4j:commandButton value="Take"
|
|
122 actionListener="#{CurrentWitness.listenerSelectTitle}"
|
|
123 render="ppWitnessSelectTitle,witnessTitlePanel,witnessAuthorPanel" />
|
|
124
|
|
125 <a4j:commandButton
|
|
126 actionListener="#{CurrentWitness.listenerCancelPpSelectTitle}"
|
|
127 value="Cancel"
|
|
128 render="ppWitnessSelectTitle,witnessTitlePanel,witnessAuthorPanel" />
|
|
129 </h:panelGrid>
|
|
130
|
|
131 </h:panelGrid>
|
|
132 </h:panelGrid>
|
|
133 </h:panelGroup>
|
|
134 </h:panelGrid>
|
|
135
|
|
136 <!-- Select Person -->
|
|
137 <h:panelGrid id="ppWitnessSelectPerson">
|
|
138 <h:panelGroup rendered="#{CurrentWitness.selectPersonRendered}">
|
|
139 <div style="z-index: 100;" class="rf-pp-shade">
|
|
140 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
141 </div>
|
|
142
|
|
143 <h:panelGrid columns="1" styleClass="ismi-pp-cntr"
|
|
144 style="margin-left: -200px">
|
|
145
|
|
146 <div class="ismi-pp-hdr">
|
|
147 <div class="ismi-pp-hdr-cnt">Select Person</div>
|
|
148 </div>
|
|
149
|
|
150 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel">
|
|
151
|
|
152 <h:panelGroup>
|
|
153 <h:selectOneListbox partialSubmit="true" size="10"
|
|
154 value="#{CurrentWitness.selectedPersonId}" style="width: 400px;">
|
|
155 <f:selectItems value="#{CurrentWitness.persons_list}" />
|
|
156 </h:selectOneListbox>
|
|
157
|
|
158 </h:panelGroup>
|
|
159 <h:panelGroup>
|
|
160 Restrict by role:<h:selectBooleanCheckbox
|
|
161 partialSubmit="true"
|
|
162 valueChangeListener="#{CurrentWitness.restrictedByRoleChange}"
|
|
163 value="#{CurrentWitness.restrictedByRole}">
|
|
164 <a4j:ajax event="click" render="ppWitnessSelectPerson" />
|
|
165 </h:selectBooleanCheckbox>
|
|
166 </h:panelGroup>
|
|
167 <h:panelGrid columns="2">
|
|
168 <a4j:commandButton
|
|
169 actionListener="#{CurrentWitness.listenerSelectPerson}"
|
|
170 value="Take"
|
|
171 render="ppWitnessSelectPerson,witnessTitlePanel,witnessAuthorPanel,witnessCopyPanel" />
|
|
172 <a4j:commandButton
|
|
173 actionListener="#{CurrentWitness.listenerCancelPpSelectAuthor}"
|
|
174 value="Cancel"
|
|
175 render="ppWitnessSelectPerson,witnessTitlePanel,witnessAuthorPanel,witnessCopyPanel" />
|
|
176 </h:panelGrid>
|
|
177
|
|
178 </h:panelGrid>
|
|
179 </h:panelGrid>
|
|
180
|
|
181
|
|
182 </h:panelGroup>
|
|
183 </h:panelGrid>
|
|
184
|
|
185
|
|
186 </ui:composition>
|
|
187 </body>
|
|
188 </html> |