Mercurial > hg > ismi-richfaces
comparison src/main/webapp/clean/components/lostMisidentification.xhtml @ 211:631864bfec2e
add methods for lost misattributions and misidentifications.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 04 Oct 2019 17:42:27 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
210:0aa8975784d9 | 211:631864bfec2e |
---|---|
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">Misidentifications without relations</h2> | |
13 | |
14 <h:panelGrid columns="3" styleClass="displayPanel" | |
15 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
16 | |
17 <a4j:commandButton value="Show misidentifications without relations" | |
18 actionListener="#{Session.missingRelations.actionFindLostMisidentification}" | |
19 render="showMisidentificationPanel,lostMisidentificationButton" /> | |
20 <h:outputText/> | |
21 <h:outputText/> | |
22 | |
23 </h:panelGrid> | |
24 | |
25 <h:panelGrid id="showMisidentificationPanel" columns="1" | |
26 style="margin-left: auto; margin-right: auto; text-align: center; width: 100%;"> | |
27 | |
28 <h:outputText | |
29 value="#{Session.missingRelations.browseBean.resultSummaryMsg}" | |
30 rendered="#{!empty Session.missingRelations.browseBean.resultSummaryMsg}" | |
31 styleClass="summaryMsg" /> | |
32 | |
33 <h:column | |
34 rendered="#{!empty Session.missingRelations.browseBean.entities}"> | |
35 <h:outputText value="go to page" styleClass="sumaryMsg" /> | |
36 <h:inputText value="#{Session.missingRelations.browseBean.page}" | |
37 size="4" /> | |
38 <h:commandButton value="submit" | |
39 actionListener="#{Session.missingRelations.browseBean.actionGoToPageAdvancedResult}" /> | |
40 <h:outputText value=" #{Session.missingRelations.browseBean.pageMsg}" | |
41 rendered="#{!empty Session.missingRelations.browseBean.pageMsg}" | |
42 style="color:red" /> | |
43 </h:column> | |
44 | |
45 | |
46 <h:column | |
47 rendered="#{!empty Session.missingRelations.browseBean.entities}"> | |
48 <h:panelGroup> | |
49 <h:commandButton | |
50 image="/resources/css/xp/css-images/arrow-first.gif" | |
51 style="border:none;" title="First Page" | |
52 action="#{Session.missingRelations.browseBean.advancedFirst}" /> | |
53 | |
54 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" | |
55 style="border:none;" title="Fast Backwards" | |
56 action="#{Session.missingRelations.browseBean.advancedFastRewind}" /> | |
57 | |
58 <h:commandButton | |
59 image="/resources/css/xp/css-images/arrow-previous.gif" | |
60 style="border:none;" title="Previous Page" | |
61 action="#{Session.missingRelations.browseBean.advancedPrevious}" /> | |
62 | |
63 <h:outputText | |
64 value="#{Session.missingRelations.browseBean.advancedPaginator.recordStatus}" | |
65 styleClass="sumaryMsg" /> | |
66 | |
67 <h:commandButton | |
68 image="/resources/css/xp/css-images/arrow-next.gif" | |
69 style="border:none;" title="Next Page" | |
70 action="#{Session.missingRelations.browseBean.advancedNext}" /> | |
71 | |
72 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" | |
73 style="border:none;" title="Fast Forward" | |
74 action="#{Session.missingRelations.browseBean.advancedFastForward}" /> | |
75 | |
76 <h:commandButton | |
77 image="/resources/css/xp/css-images/arrow-last.gif" | |
78 style="border:none;" title="Last Page" | |
79 action="#{Session.missingRelations.browseBean.advancedLast}" /> | |
80 </h:panelGroup> | |
81 </h:column> | |
82 | |
83 <rich:dataTable id="MisidentificationDataTable" rows="30" | |
84 value="#{Session.missingRelations.browseBean.currentEntities}" | |
85 rendered="#{!empty Session.missingRelations.browseBean.currentEntities}" | |
86 var="entity" styleClass="rsPanel" columnClasses="rsPanelColumn"> | |
87 <h:column style="text-align:left"> | |
88 <f:facet name="header">Misidentification</f:facet> | |
89 <h:outputLink target="_blank" | |
90 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{entity.id}"> | |
91 <h:outputText | |
92 value="#{entity.ownValue} [#{entity.id}]" /> | |
93 </h:outputLink> | |
94 <h:commandButton | |
95 action="#{Session.missingRelations.browseBean.actionEdit}" | |
96 rendered="#{Session.canEdit}" | |
97 image="/resources/css/xp/css-images/edit16.gif" | |
98 title="Edit this entity" /> | |
99 </h:column> | |
100 <h:column style="text-align:left"> | |
101 <f:facet name="header">State</f:facet> | |
102 <h:outputText value="#{entity.privacity}" /> | |
103 </h:column> | |
104 </rich:dataTable> | |
105 | |
106 <h:column | |
107 rendered="#{!empty Session.missingRelations.browseBean.entities}"> | |
108 <h:panelGroup> | |
109 <h:commandButton | |
110 image="/resources/css/xp/css-images/arrow-first.gif" | |
111 style="border:none;" title="First Page" | |
112 action="#{Session.missingRelations.browseBean.advancedFirst}" /> | |
113 | |
114 <h:commandButton image="/resources/css/xp/css-images/arrow-fr.gif" | |
115 style="border:none;" title="Fast Backwards" | |
116 action="#{Session.missingRelations.browseBean.advancedFastRewind}" /> | |
117 | |
118 <h:commandButton | |
119 image="/resources/css/xp/css-images/arrow-previous.gif" | |
120 style="border:none;" title="Previous Page" | |
121 action="#{Session.missingRelations.browseBean.advancedPrevious}" /> | |
122 | |
123 <h:outputText | |
124 value="#{Session.missingRelations.browseBean.advancedPaginator.recordStatus}" | |
125 styleClass="sumaryMsg" /> | |
126 | |
127 <h:commandButton | |
128 image="/resources/css/xp/css-images/arrow-next.gif" | |
129 style="border:none;" title="Next Page" | |
130 action="#{Session.missingRelations.browseBean.advancedNext}" /> | |
131 | |
132 <h:commandButton image="/resources/css/xp/css-images/arrow-ff.gif" | |
133 style="border:none;" title="Fast Forward" | |
134 action="#{Session.missingRelations.browseBean.advancedFastForward}" /> | |
135 | |
136 <h:commandButton | |
137 image="/resources/css/xp/css-images/arrow-last.gif" | |
138 style="border:none;" title="Last Page" | |
139 action="#{Session.missingRelations.browseBean.advancedLast}" /> | |
140 </h:panelGroup> | |
141 </h:column> | |
142 | |
143 <h:column rendered="#{!empty Session.missingRelations.browseBean.entities}"> | |
144 <h:commandButton value="download all as CSV" | |
145 actionListener="#{Session.missingRelations.browseBean.downloadAdvancedCsv}" /> | |
146 </h:column> | |
147 | |
148 </h:panelGrid> | |
149 | |
150 <h:panelGrid columns="3" styleClass="displayPanel" id="lostMisidentificationButton" | |
151 columnClasses="displayPanelColumn01,displayPanelColumn02"> | |
152 | |
153 <a4j:commandButton value="Delete all these misidentifications" | |
154 rendered="#{Session.canDelete and (!empty Session.missingRelations.browseBean.entities)}" | |
155 onclick="if(!confirm('Do you really want to delete all selected misidentifications?')){ return; };" | |
156 actionListener="#{Session.missingRelations.actionDeleteSelectedEntities}" | |
157 render="showMisidentificationPanel,lostMisidentificationButton" /> | |
158 <h:outputText/> | |
159 <h:outputText/> | |
160 | |
161 </h:panelGrid> | |
162 | |
163 | |
164 </ui:composition> | |
165 </body> | |
166 </html> |