comparison src/main/webapp/browse/entityDetails.xhtml @ 194:c7fec83ab69a

fix bugs with make-public buttons in entity details form. Closes #152.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Fri, 07 Dec 2018 15:47:06 +0100
parents 0d31c8be7c31
children
comparison
equal deleted inserted replaced
193:76d2dda8d4de 194:c7fec83ab69a
71 rendered="#{Session.canEdit}" 71 rendered="#{Session.canEdit}"
72 style="display:block; margin-left:auto; margin-right:auto;"> 72 style="display:block; margin-left:auto; margin-right:auto;">
73 73
74 <a4j:commandButton value="Make entity public" title="Change publication state of this entity" 74 <a4j:commandButton value="Make entity public" title="Change publication state of this entity"
75 rendered="#{!Session.entDetailsForm.entity.isPublic}" 75 rendered="#{!Session.entDetailsForm.entity.isPublic}"
76 render="entityDetailsPanel"
76 style="margin-right:10px;" 77 style="margin-right:10px;"
77 onclick="if(!confirm('Do you really want to make this entity public?')){ return; };" 78 onclick="if(!confirm('Do you really want to make this entity public?')){ return; };"
78 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> 79 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/>
79 <a4j:commandButton value="Make entity private" title="Change publication state of this entity" 80 <a4j:commandButton value="Make entity private" title="Change publication state of this entity"
80 rendered="#{Session.entDetailsForm.entity.isPublic}" 81 rendered="#{Session.entDetailsForm.entity.isPublic}"
82 render="entityDetailsPanel"
81 style="margin-right:10px;" 83 style="margin-right:10px;"
82 onclick="if(!confirm('Do you really want to make this entity private?')){ return; };" 84 onclick="if(!confirm('Do you really want to make this entity private?')){ return; };"
83 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> 85 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/>
84 86
85 <a4j:commandButton value="Make all directly related entities public" 87 <a4j:commandButton value="Make all directly related entities public"
86 title="Change publication state of directly related entities" 88 title="Change publication state of directly related entities"
87 rendered="#{Session.entDetailsForm.entity.isPublic}" 89 rendered="#{Session.entDetailsForm.entity.isPublic}"
90 render="entityDetailsPanel"
88 style="margin-right:10px;" 91 style="margin-right:10px;"
89 onclick="if(!confirm('Do you really want to make all related entities public?')){ return; };" 92 onclick="if(!confirm('Do you really want to make all related entities public?')){ return; };"
90 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> 93 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/>
91 <a4j:commandButton value="Make all directly related entities private" 94 <a4j:commandButton value="Make all directly related entities private"
92 title="Change publication state of directly related entities" 95 title="Change publication state of directly related entities"
93 rendered="#{!Session.entDetailsForm.entity.isPublic}" 96 rendered="#{!Session.entDetailsForm.entity.isPublic}"
97 render="entityDetailsPanel"
94 style="margin-right:10px;" 98 style="margin-right:10px;"
95 onclick="if(!confirm('Do you really want to make all related entities private?')){ return; };" 99 onclick="if(!confirm('Do you really want to make all related entities private?')){ return; };"
96 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> 100 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/>
97 101
98 </h:panelGroup> 102 </h:panelGroup>