diff 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
line wrap: on
line diff
--- a/src/main/webapp/search/displayAuthor.xhtml	Tue Dec 22 20:18:05 2015 +0100
+++ b/src/main/webapp/search/displayAuthor.xhtml	Thu Jan 07 16:26:48 2016 +0100
@@ -287,10 +287,18 @@
                             action="#{Session.displayAuthor.actionEditTitle}"
                             rendered="#{Session.canEdit}" />
 
-                       <!-- no WITNESS -->
-                       <h:outputText value="No known witnesses"
-                                rendered="#{empty Session.displayAuthor.witnessItems}"
-                                styleClass="titlePanel" />
+                        <!-- WITNESS with scans -->
+                        <h:panelGrid columns="3">
+                            <h:selectBooleanCheckbox value="#{Session.displayAuthor.showWitnessesWithScans}"/>
+                            <h:outputText value="Show only witnesses with scans"/>
+                            <h:commandButton value="Change"
+                            action="#{Session.displayAuthor.changeShowWitnessesWithScans}"/>
+                        </h:panelGrid>
+
+                        <!-- no WITNESS -->
+                        <h:outputText value="No known witnesses"
+                                 rendered="#{empty Session.displayAuthor.witnessItems}"
+                                 styleClass="titlePanel" />
 
 						<!-- WITNESS -->
 						<h:panelGrid id="witnessesPanel" style="width:100%;" rendered="#{!empty Session.displayAuthor.witnessItems}">
@@ -300,13 +308,6 @@
 								rendered="#{!empty Session.displayAuthor.witnessItems}"
 								styleClass="titlePanel" />
 
-                            <h:panelGrid columns="3">
-                                <h:selectBooleanCheckbox value="#{Session.displayAuthor.showWitnessesWithScans}"/>
-	                            <h:outputText value="Show only witnesses with scans"/>
-	                            <h:commandButton value="Change"
-                                action="#{Session.displayAuthor.changeShowWitnessesWithScans}"/>
-                            </h:panelGrid>
-
 							<h:panelGrid columns="1"
 								rendered="#{(!empty Session.displayAuthor.witnessItems) and Session.user != null}">
 								<h:commandLink value="Make all public"