Mercurial > hg > ismi-richfaces
comparison src/main/webapp/search/displayTitle.xhtml @ 73:ebd008b2e6ba
cleaned displayTitle too. added filter for witnesses with scans.
author | casties |
---|---|
date | Tue, 22 Dec 2015 20:18:05 +0100 |
parents | 954d6200336d |
children | a58e6b2fb87f |
comparison
equal
deleted
inserted
replaced
72:70207f24937e | 73:ebd008b2e6ba |
---|---|
143 <h:outputText value="#{item.additionalInf}" /> | 143 <h:outputText value="#{item.additionalInf}" /> |
144 </h:column> | 144 </h:column> |
145 </rich:dataTable> | 145 </rich:dataTable> |
146 </h:panelGrid> | 146 </h:panelGrid> |
147 | 147 |
148 | |
149 | |
150 </h:panelGrid> | 148 </h:panelGrid> |
151 <h:panelGrid id="witnessesPanel"> | 149 |
150 <!-- no WITNESS --> | |
151 <h:outputText value="No known witnesses" | |
152 rendered="#{empty Session.displayTitle.witnessItems}" | |
153 styleClass="titlePanel" /> | |
154 | |
155 <!-- WITNESSes --> | |
156 <h:panelGrid id="witnessesPanel" style="width:100%;" rendered="#{!empty Session.displayTitle.witnessItems}"> | |
152 <a name="witnesses" /> | 157 <a name="witnesses" /> |
153 <h:outputText | 158 <h:outputText |
154 value="Witnesses (#{Session.displayTitle.witnessItemsSize})" | 159 value="Witnesses (#{Session.displayTitle.witnessItemsSize})" |
155 rendered="#{!empty Session.displayTitle.witnessItems}" | 160 rendered="#{!empty Session.displayTitle.witnessItems}" |
156 styleClass="titlePanel" /> | 161 styleClass="titlePanel" /> |
162 | |
163 <h:panelGrid columns="3"> | |
164 <h:selectBooleanCheckbox value="#{Session.displayTitle.showWitnessesWithScans}"/> | |
165 <h:outputText value="Show only witnesses with scans"/> | |
166 <h:commandButton value="Change" | |
167 action="#{Session.displayTitle.changeShowWitnessesWithScans}"/> | |
168 </h:panelGrid> | |
157 | 169 |
158 <h:panelGrid columns="1" | 170 <h:panelGrid columns="1" |
159 rendered="#{(!empty Session.displayTitle.witnessItems) and Session.user != null}"> | 171 rendered="#{(!empty Session.displayTitle.witnessItems) and Session.user != null}"> |
160 <h:commandLink value="Make all public" | 172 <h:commandLink value="Make all public" |
161 actionListener="#{Session.displayTitle.listenerMakeAllWitnessesPublic}" | 173 actionListener="#{Session.displayTitle.listenerMakeAllWitnessesPublic}" |
184 </rich:dataTable> | 196 </rich:dataTable> |
185 | 197 |
186 <h:panelGrid id="witnessPanel" columns="1" style="width: 100%;" | 198 <h:panelGrid id="witnessPanel" columns="1" style="width: 100%;" |
187 rendered="#{Session.displayTitle.selectedWitnessId != null}"> | 199 rendered="#{Session.displayTitle.selectedWitnessId != null}"> |
188 | 200 |
189 <h:commandButton value="edit or view this witness" | 201 <h:outputText |
190 action="#{Session.displayTitle.actionEditWitness}" | 202 value="Witness [#{Session.displayTitle.selectedWitnessId}]: #{Session.displayTitle.witness.ov}" |
191 rendered="#{Session.canEdit}" /> | 203 styleClass="titlePanel" /> |
192 | 204 |
193 <h:panelGrid columns="2" styleClass="displayPanel" | 205 <h:panelGrid columns="2" styleClass="displayPanel" |
194 columnClasses="displayPanelColumn01,displayPanelColumn02"> | 206 columnClasses="displayPanelColumn01,displayPanelColumn02"> |
195 | 207 |
196 <h:outputText value="Permission" /> | 208 <h:outputText value="Permission" /> |
308 </rich:dataTable> | 320 </rich:dataTable> |
309 </h:panelGrid> | 321 </h:panelGrid> |
310 | 322 |
311 </h:panelGrid> | 323 </h:panelGrid> |
312 | 324 |
325 <h:commandButton value="edit this witness" | |
326 action="#{Session.displayTitle.actionEditWitness}" | |
327 rendered="#{Session.canEdit}" /> | |
328 | |
329 | |
313 </h:panelGrid> | 330 </h:panelGrid> |
314 </h:panelGrid> | 331 </h:panelGrid> |
315 </ui:define> | 332 </ui:define> |
316 </ui:composition> | 333 </ui:composition> |
317 </body> | 334 </body> |