comparison src/main/webapp/search/displayAuthor.xhtml @ 74:a58e6b2fb87f

move "witnesses with scans" button.
author casties
date Thu, 07 Jan 2016 16:26:48 +0100
parents 70207f24937e
children ca36b24a22f7
comparison
equal deleted inserted replaced
73:ebd008b2e6ba 74:a58e6b2fb87f
285 285
286 <h:commandButton value="edit this title" 286 <h:commandButton value="edit this title"
287 action="#{Session.displayAuthor.actionEditTitle}" 287 action="#{Session.displayAuthor.actionEditTitle}"
288 rendered="#{Session.canEdit}" /> 288 rendered="#{Session.canEdit}" />
289 289
290 <!-- no WITNESS --> 290 <!-- WITNESS with scans -->
291 <h:outputText value="No known witnesses" 291 <h:panelGrid columns="3">
292 rendered="#{empty Session.displayAuthor.witnessItems}" 292 <h:selectBooleanCheckbox value="#{Session.displayAuthor.showWitnessesWithScans}"/>
293 styleClass="titlePanel" /> 293 <h:outputText value="Show only witnesses with scans"/>
294 <h:commandButton value="Change"
295 action="#{Session.displayAuthor.changeShowWitnessesWithScans}"/>
296 </h:panelGrid>
297
298 <!-- no WITNESS -->
299 <h:outputText value="No known witnesses"
300 rendered="#{empty Session.displayAuthor.witnessItems}"
301 styleClass="titlePanel" />
294 302
295 <!-- WITNESS --> 303 <!-- WITNESS -->
296 <h:panelGrid id="witnessesPanel" style="width:100%;" rendered="#{!empty Session.displayAuthor.witnessItems}"> 304 <h:panelGrid id="witnessesPanel" style="width:100%;" rendered="#{!empty Session.displayAuthor.witnessItems}">
297 <a name="witnesses" /> 305 <a name="witnesses" />
298 <h:outputText 306 <h:outputText
299 value="Witnesses (#{Session.displayAuthor.witnessItemsSize})" 307 value="Witnesses (#{Session.displayAuthor.witnessItemsSize})"
300 rendered="#{!empty Session.displayAuthor.witnessItems}" 308 rendered="#{!empty Session.displayAuthor.witnessItems}"
301 styleClass="titlePanel" /> 309 styleClass="titlePanel" />
302
303 <h:panelGrid columns="3">
304 <h:selectBooleanCheckbox value="#{Session.displayAuthor.showWitnessesWithScans}"/>
305 <h:outputText value="Show only witnesses with scans"/>
306 <h:commandButton value="Change"
307 action="#{Session.displayAuthor.changeShowWitnessesWithScans}"/>
308 </h:panelGrid>
309 310
310 <h:panelGrid columns="1" 311 <h:panelGrid columns="1"
311 rendered="#{(!empty Session.displayAuthor.witnessItems) and Session.user != null}"> 312 rendered="#{(!empty Session.displayAuthor.witnessItems) and Session.user != null}">
312 <h:commandLink value="Make all public" 313 <h:commandLink value="Make all public"
313 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPublic}" 314 actionListener="#{Session.displayAuthor.listenerMakeAllWitnessesPublic}"