Mercurial > hg > ismi-richfaces
comparison src/main/webapp/browse/entityDetails.xhtml @ 148:b40a84944716
add public/private editing to Entity Details.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 11 Jul 2017 17:44:50 +0200 |
parents | 1389c83028ef |
children | 2522985f44af |
comparison
equal
deleted
inserted
replaced
147:1389c83028ef | 148:b40a84944716 |
---|---|
17 <h:outputText value="Entity Details" /> | 17 <h:outputText value="Entity Details" /> |
18 </div> | 18 </div> |
19 | 19 |
20 <h:panelGrid columns="1" | 20 <h:panelGrid columns="1" |
21 style="margin-left: auto; margin-right: auto; text-align: center; width: 700px"> | 21 style="margin-left: auto; margin-right: auto; text-align: center; width: 700px"> |
22 | |
23 | 22 |
24 <hr/> | 23 <hr/> |
25 | 24 |
26 <h:panelGrid columns="3" styleClass="controlPanel"> | 25 <h:panelGrid columns="3" styleClass="controlPanel"> |
27 <h:outputLabel value="ID" /> | 26 <h:outputLabel value="ID" /> |
71 <hr/> | 70 <hr/> |
72 | 71 |
73 <h:panelGrid id="entityDetailsPanel" columns="1" | 72 <h:panelGrid id="entityDetailsPanel" columns="1" |
74 styleClass="entityDetailsPanel" columnClasses="createPanelFirstColumn"> | 73 styleClass="entityDetailsPanel" columnClasses="createPanelFirstColumn"> |
75 | 74 |
75 <h:outputText value="Publication state: #{Session.entDetailsForm.entity.privacity}" styleClass="titlePanel"/> | |
76 | |
77 <h:panelGroup | |
78 rendered="#{Session.canEdit}" | |
79 style="display:block; margin-left:auto; margin-right:auto;"> | |
80 | |
81 <a4j:commandButton value="Make entity public" title="Change publication state of this entity" | |
82 rendered="#{!Session.entDetailsForm.entity.isPublic}" | |
83 style="margin-right:10px;" | |
84 onclick="if(!confirm('Do you really want to make this entity public?')){ return; };" | |
85 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> | |
86 <a4j:commandButton value="Make entity private" title="Change publication state of this entity" | |
87 rendered="#{Session.entDetailsForm.entity.isPublic}" | |
88 style="margin-right:10px;" | |
89 onclick="if(!confirm('Do you really want to make this entity private?')){ return; };" | |
90 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> | |
91 | |
92 <a4j:commandButton value="Make related entities public" | |
93 title="Change publication state of directly related entities" | |
94 rendered="#{Session.entDetailsForm.entity.isPublic}" | |
95 style="margin-right:10px;" | |
96 onclick="if(!confirm('Do you really want to make all related entities public?')){ return; };" | |
97 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> | |
98 <a4j:commandButton value="Make related entities private" | |
99 title="Change publication state of directly related entities" | |
100 rendered="#{!Session.entDetailsForm.entity.isPublic}" | |
101 style="margin-right:10px;" | |
102 onclick="if(!confirm('Do you really want to make all related entities private?')){ return; };" | |
103 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> | |
104 | |
105 </h:panelGroup> | |
106 | |
76 <h:outputText value="Attributes" styleClass="titlePanel"/> | 107 <h:outputText value="Attributes" styleClass="titlePanel"/> |
77 | 108 |
78 <rich:dataTable id="entity" | 109 <rich:dataTable id="entity" |
79 value="#{Session.entDetailsForm.attributeList}" var="attribute" | 110 value="#{Session.entDetailsForm.attributeList}" var="attribute" |
80 rendered="#{!empty Session.entDetailsForm.attributeList}" | 111 rendered="#{!empty Session.entDetailsForm.attributeList}" |