diff src/main/webapp/clean/components/publicShowSubjects.xhtml @ 175:3d8b31508128

PublicByAuthor feature works now.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Thu, 07 Jun 2018 18:47:18 +0200
parents aa564b1b5e1f
children
line wrap: on
line diff
--- a/src/main/webapp/clean/components/publicShowSubjects.xhtml	Wed Jun 06 21:02:30 2018 +0200
+++ b/src/main/webapp/clean/components/publicShowSubjects.xhtml	Thu Jun 07 18:47:18 2018 +0200
@@ -32,19 +32,20 @@
 				value="#{Session.publicByAuthor.selectedPersonSubjects}"
 				var="subject" styleClass="select">
 				<rich:column>
-					<h2 style="margin-top: 1em">
+					<h2 style="margin-top:1em">
 						#{subject}
 						<ui:repeat
 							value="#{Session.publicByAuthor.subjectParents.get(subject)}"
 							var="parent"> &lt; #{parent}</ui:repeat>
 					</h2>
 
-					<a4j:commandButton value="make these texts and their witnesses public"
-						/>
+					<a4j:commandButton value="make all these texts and their witnesses public"
+						actionListener="#{Session.publicByAuthor.actionMakePersonSubjectAndRelatedPublic}"
+						render="selectSubjectPanel" style="margin-bottom:0.5em"/>
 
 					<rich:dataTable
 						value="#{Session.publicByAuthor.selectedPersonSubjectMap.get(subject)}"
-						var="text" styleClass="select">
+						var="text">
 						<rich:column>
 							    #{text.ownValue}
 					    </rich:column>
@@ -56,6 +57,11 @@
 						<rich:column>
 							    #{text.privacity}
 						</rich:column>
+						<rich:column>
+		                  <a4j:commandButton value="make this text and its witnesses public"
+                                actionListener="#{Session.publicByAuthor.actionMakeTextAndRelatedPublic}"
+                                render="selectSubjectPanel"/>
+						</rich:column>
 					</rich:dataTable>
 
 				</rich:column>