comparison src/main/webapp/clean/components/nonpublicDigitalization.xhtml @ 188:34ac2e1b323a

new Clean UI to find non-public digitalizations of public codices and make them public.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Tue, 06 Nov 2018 20:05:49 +0100
parents
children b36a57a452a6
comparison
equal deleted inserted replaced
187:be6bc580b137 188:34ac2e1b323a
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
9 <body>
10 <ui:composition>
11
12 <h2 style="color:black">non-public Digitalizations of public Codices</h2>
13
14 <h:panelGrid columns="3" styleClass="displayPanel"
15 columnClasses="displayPanelColumn01,displayPanelColumn02">
16
17 <a4j:commandButton value="show non-public digitalizations"
18 actionListener="#{Session.nonpublicEntities.actionFindNonpublicDigitalizations}"
19 render="showDigiPanel" />
20 <h:outputText/>
21 <h:outputText/>
22
23 <a4j:commandButton value="make all these digitalizations public"
24 actionListener="#{Session.nonpublicEntities.actionMakeDigitalizationsPublic}"
25 render="showDigiPanel" />
26 <h:outputText/>
27 <h:outputText/>
28
29 </h:panelGrid>
30
31 <h:panelGrid id="showDigiPanel" columns="1"
32 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;">
33
34 <h:outputText
35 value="#{Session.nonpublicEntities.browseBean.resultSummaryMsg}"
36 rendered="#{!empty Session.nonpublicEntities.browseBean.resultSummaryMsg}"
37 styleClass="summaryMsg" />
38
39 <h:column
40 rendered="#{!empty Session.nonpublicEntities.browseBean.entities}">
41 <h:outputText value="go to page" styleClass="sumaryMsg" />
42 <h:inputText value="#{Session.nonpublicEntities.browseBean.page}"
43 size="4" />
44 <h:commandButton value="submit"
45 actionListener="#{Session.nonpublicEntities.browseBean.actionGoToPageAdvancedResult}" />
46 <h:outputText value=" #{Session.nonpublicEntities.browseBean.pageMsg}"
47 rendered="#{!empty Session.nonpublicEntities.browseBean.pageMsg}"
48 style="color:red" />
49 </h:column>
50
51
52 <h:column
53 rendered="#{!empty Session.nonpublicEntities.browseBean.entities}">
54 <h:panelGroup>
55 <h:commandButton
56 image="/resources/css/xp/css-images/arrow-first.gif"
57 style="border:none;" title="First Page"
58 action="#{Session.nonpublicEntities.browseBean.advancedFirst}" />
59
60 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif"
61 style="border:none;" title="Fast Backwards"
62 action="#{Session.nonpublicEntities.browseBean.advancedFastRewind}" />
63
64 <h:commandButton
65 image="/resources/css/xp/css-images/arrow-previous.gif"
66 style="border:none;" title="Previous Page"
67 action="#{Session.nonpublicEntities.browseBean.advancedPrevious}" />
68
69 <h:outputText
70 value="#{Session.nonpublicEntities.browseBean.advancedPaginator.recordStatus}"
71 styleClass="sumaryMsg" />
72
73 <h:commandButton
74 image="/resources/css/xp/css-images/arrow-next.gif"
75 style="border:none;" title="Next Page"
76 action="#{Session.nonpublicEntities.browseBean.advancedNext}" />
77
78 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif"
79 style="border:none;" title="Fast Forward"
80 action="#{Session.nonpublicEntities.browseBean.advancedFastForward}" />
81
82 <h:commandButton
83 image="/resources/css/xp/css-images/arrow-last.gif"
84 style="border:none;" title="Last Page"
85 action="#{Session.nonpublicEntities.browseBean.advancedLast}" />
86 </h:panelGroup>
87 </h:column>
88
89 <rich:dataTable id="digiDataTable" rows="30"
90 value="#{Session.nonpublicEntities.browseBean.currentEntities}"
91 rendered="#{!empty Session.nonpublicEntities.browseBean.currentEntities}"
92 var="entity" styleClass="rsPanel" columnClasses="rsPanelColumn">
93 <h:column style="text-align:left">
94 <f:facet name="header">Text</f:facet>
95 <h:outputLink target="_blank"
96 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}">
97 <h:outputText
98 value="#{entity.ownValue} [#{entity.id}]" />
99 </h:outputLink>
100 <h:commandButton
101 action="#{Session.nonpublicEntities.browseBean.actionEdit}"
102 rendered="#{Session.canEdit}"
103 image="/resources/css/xp/css-images/edit16.gif"
104 title="Edit this entity" />
105 </h:column>
106 <h:column style="text-align:left">
107 <f:facet name="header">State</f:facet>
108 <h:outputText value="#{entity.privacity}" />
109 </h:column>
110 </rich:dataTable>
111
112 <h:column
113 rendered="#{!empty Session.nonpublicEntities.browseBean.entities}">
114 <h:panelGroup>
115 <h:commandButton
116 image="/resources/css/xp/css-images/arrow-first.gif"
117 style="border:none;" title="First Page"
118 action="#{Session.nonpublicEntities.browseBean.advancedFirst}" />
119
120 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif"
121 style="border:none;" title="Fast Backwards"
122 action="#{Session.nonpublicEntities.browseBean.advancedFastRewind}" />
123
124 <h:commandButton
125 image="/resources/css/xp/css-images/arrow-previous.gif"
126 style="border:none;" title="Previous Page"
127 action="#{Session.nonpublicEntities.browseBean.advancedPrevious}" />
128
129 <h:outputText
130 value="#{Session.nonpublicEntities.browseBean.advancedPaginator.recordStatus}"
131 styleClass="sumaryMsg" />
132
133 <h:commandButton
134 image="/resources/css/xp/css-images/arrow-next.gif"
135 style="border:none;" title="Next Page"
136 action="#{Session.nonpublicEntities.browseBean.advancedNext}" />
137
138 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif"
139 style="border:none;" title="Fast Forward"
140 action="#{Session.nonpublicEntities.browseBean.advancedFastForward}" />
141
142 <h:commandButton
143 image="/resources/css/xp/css-images/arrow-last.gif"
144 style="border:none;" title="Last Page"
145 action="#{Session.nonpublicEntities.browseBean.advancedLast}" />
146 </h:panelGroup>
147 </h:column>
148
149
150 </h:panelGrid>
151
152
153
154 </ui:composition>
155 </body>
156 </html>