Mercurial > hg > ismi-richfaces
annotate 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 |
rev | line source |
---|---|
7 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html xmlns="http://www.w3.org/1999/xhtml" | |
3 xmlns:h="http://java.sun.com/jsf/html" | |
4 xmlns:f="http://java.sun.com/jsf/core" | |
5 xmlns:ui="http://java.sun.com/jsf/facelets" | |
6 xmlns:a4j="http://richfaces.org/a4j" | |
7 xmlns:rich="http://richfaces.org/rich"> | |
8 | |
9 <body> | |
10 <ui:composition template="/templates/publicTemplate.xhtml"> | |
11 | |
12 <ui:define name="publicContent"> | |
13 | |
14 <h:outputStylesheet name="/css/ismi-db/repository.css" /> | |
15 | |
16 <div id="pageTitle"> | |
17 <h:outputText value="Entity Details" /> | |
18 </div> | |
19 | |
20 <h:panelGrid columns="1" | |
21 style="margin-left: auto; margin-right: auto; text-align: center; width: 700px"> | |
22 | |
23 <hr/> | |
24 | |
25 <h:panelGrid columns="3" styleClass="controlPanel"> | |
26 <h:outputLabel value="ID" /> | |
27 <h:inputText value="#{Session.entDetailsForm.currentEntityId}" /> | |
28 <a4j:commandButton value="Submit" | |
29 actionListener="#{Session.entDetailsForm.listenerShowEntity}" | |
30 render="entityDetailsPanel" /> | |
31 </h:panelGrid> | |
32 | |
33 <hr/> | |
34 | |
35 <h:panelGrid columns="1" | |
36 rendered="#{Session.entDetailsForm.entity.id != null}" | |
37 style="width: 100%;"> | |
38 | |
39 <h:panelGrid columns="1" style="text-align:left;color: #3B4186;"> | |
40 <h:outputText | |
41 value="#{Session.entDetailsForm.entity.objectClass}: #{Session.entDetailsForm.entity.ownValue}" /> | |
42 | |
43 <h:outputText | |
44 value="[ID=#{Session.entDetailsForm.entity.id}, Version=#{Session.entDetailsForm.entity.version}, #{Session.entDetailsForm.entity.privacity}]" | |
45 style="font-size: 9pt;"/> | |
46 <h:panelGroup | |
47 style="display: block;margin-left: auto;margin-right: auto;"> | |
48 <h:commandButton value="Edit" title="Edit this entity" | |
49 image="#{ApplicationBean1.imgEdit32}" | |
50 rendered="#{Session.canEdit}" | |
51 action="#{Session.entDetailsForm.actionEdit}" | |
52 style="margin-right: 20px;" /> | |
157
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
53 <h:commandButton value="Query Builder" |
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
54 onclick="window.open('#{ApplicationBean1.generateQueryBrowserUrlForId(Session.entDetailsForm.entity.id)}')" |
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
55 title="Start Query Builder with this id" |
2522985f44af
add "query builder" button to entityDetails form.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
56 type="button"/> |
7 | 57 </h:panelGroup> |
58 <h:outputText | |
59 value="Modified by: #{Session.entDetailsForm.entity.user} - Last modification: #{Session.entDetailsForm.entity.timeStamp}" | |
60 style="font-size: 9pt;"/> | |
61 </h:panelGrid> | |
62 | |
63 <hr/> | |
64 | |
65 <h:panelGrid id="entityDetailsPanel" columns="1" | |
66 styleClass="entityDetailsPanel" columnClasses="createPanelFirstColumn"> | |
67 | |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
68 <h:outputText value="Publication state: #{Session.entDetailsForm.entity.privacity}" styleClass="titlePanel"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
69 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
70 <h:panelGroup |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
71 rendered="#{Session.canEdit}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
72 style="display:block; margin-left:auto; margin-right:auto;"> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
73 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
74 <a4j:commandButton value="Make entity public" title="Change publication state of this entity" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
75 rendered="#{!Session.entDetailsForm.entity.isPublic}" |
194
c7fec83ab69a
fix bugs with make-public buttons in entity details form. Closes #152.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
76 render="entityDetailsPanel" |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
77 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
78 onclick="if(!confirm('Do you really want to make this entity public?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
79 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
80 <a4j:commandButton value="Make entity private" title="Change publication state of this entity" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
81 rendered="#{Session.entDetailsForm.entity.isPublic}" |
194
c7fec83ab69a
fix bugs with make-public buttons in entity details form. Closes #152.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
82 render="entityDetailsPanel" |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
83 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
84 onclick="if(!confirm('Do you really want to make this entity private?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
85 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
86 |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
163
diff
changeset
|
87 <a4j:commandButton value="Make all directly related entities public" |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
88 title="Change publication state of directly related entities" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
89 rendered="#{Session.entDetailsForm.entity.isPublic}" |
194
c7fec83ab69a
fix bugs with make-public buttons in entity details form. Closes #152.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
90 render="entityDetailsPanel" |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
91 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
92 onclick="if(!confirm('Do you really want to make all related entities public?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
93 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
163
diff
changeset
|
94 <a4j:commandButton value="Make all directly related entities private" |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
95 title="Change publication state of directly related entities" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
96 rendered="#{!Session.entDetailsForm.entity.isPublic}" |
194
c7fec83ab69a
fix bugs with make-public buttons in entity details form. Closes #152.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
97 render="entityDetailsPanel" |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
98 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
99 onclick="if(!confirm('Do you really want to make all related entities private?')){ return; };" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
100 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
101 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
102 </h:panelGroup> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
103 |
7 | 104 <h:outputText value="Attributes" styleClass="titlePanel"/> |
105 | |
106 <rich:dataTable id="entity" | |
107 value="#{Session.entDetailsForm.attributeList}" var="attribute" | |
108 rendered="#{!empty Session.entDetailsForm.attributeList}" | |
109 styleClass="mainPanel" | |
110 columnClasses="mainPanelcolumn01,mainPanelcolumn02"> | |
111 | |
112 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
113 <f:facet name="header"> | |
114 <h:outputText value="Debug" /> | |
115 </f:facet> | |
116 <h:outputText value="#{attribute.id} - #{attribute.rowId}" /> | |
117 </h:column> | |
118 <h:column> | |
119 <f:facet name="header"> | |
120 <h:outputText value="Name" /> | |
121 </f:facet> | |
122 <h:outputText value="#{attribute.name}" /> | |
123 </h:column> | |
124 <h:column> | |
125 <f:facet name="header"> | |
126 <h:outputText value="Value" /> | |
127 </f:facet> | |
128 <h:outputText value="#{attribute.value}" /> | |
129 </h:column> | |
130 </rich:dataTable> | |
131 | |
132 <h:outputText value="Source Relations" styleClass="titlePanel"/> | |
133 | |
134 <rich:dataTable var="srcName" | |
135 value="#{Session.entDetailsForm.sourceRelationNames}" | |
136 styleClass="mainPanel" | |
137 columnClasses="mainPanelcolumn01"> | |
138 <h:column | |
139 rendered="#{Session.entDetailsForm.sourceRelationCount[srcName] != '0'}"> | |
140 | |
141 <h:outputText | |
142 value="#{srcName} [#{Session.entDetailsForm.sourceRelationCount[srcName]}]" /> | |
143 <h:commandLink value="show" | |
144 actionListener="#{Session.entDetailsForm.listenerShowSourceRelations}" | |
145 rendered="#{empty Session.entDetailsForm.sourceRelations[srcName]}" | |
146 styleClass="showLink"/> | |
147 | |
148 <rich:dataTable var="srcRelation" | |
149 value="#{Session.entDetailsForm.sourceRelations[srcName]}" | |
150 rendered="#{!empty Session.entDetailsForm.sourceRelations[srcName]}" | |
151 styleClass="internalPanel" | |
152 columnClasses="internalPanelColumn,internalPanelColumn,internalPanelColumnLeft"> | |
153 | |
154 <h:column> | |
155 <f:facet name="header"> | |
156 <h:outputText value="linked from this" /> | |
157 </f:facet> | |
158 <h:outputText value="#{'x'}" /> | |
159 </h:column> | |
160 | |
161 <h:column> | |
162 <f:facet name="header"> | |
163 <h:outputText value="Relation Name" /> | |
164 </f:facet> | |
165 <h:outputText value="#{srcRelation.ownValue}" /> | |
166 </h:column> | |
167 <h:column> | |
168 <f:facet name="header"> | |
169 <h:outputText value="linked to this" /> | |
170 </f:facet> | |
171 <h:panelGrid styleClass="attLink"> | |
172 <h:outputLink | |
173 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{srcRelation.target.id}"> | |
174 <h:outputText | |
147
1389c83028ef
show public information in Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
7
diff
changeset
|
175 value="[#{srcRelation.target.objectClass}] #{srcRelation.target.ownValue} [#{srcRelation.target.id}, #{srcRelation.target.privacity}]" /> |
7 | 176 </h:outputLink> |
177 </h:panelGrid> | |
178 | |
179 </h:column> | |
180 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
181 <h:panelGrid columns="1"> | |
182 <h:outputLabel value="user=#{srcRelation.user}" /> | |
183 <h:outputLabel value="id=#{srcRelation.id}" /> | |
184 <h:outputLabel value="rowId=#{srcRelation.rowId}" /> | |
185 </h:panelGrid> | |
186 </h:column> | |
187 </rich:dataTable> | |
188 | |
189 </h:column> | |
190 </rich:dataTable> | |
191 | |
192 <h:outputText value="Target Relations" styleClass="titlePanel"/> | |
193 | |
194 <rich:dataTable var="tarName" | |
195 value="#{Session.entDetailsForm.targetRelationNames}" | |
196 styleClass="mainPanel" | |
197 columnClasses="mainPanelcolumn01"> | |
198 <h:column | |
199 rendered="#{Session.entDetailsForm.targetRelationCount[tarName] != '0'}"> | |
200 | |
201 <h:outputText | |
202 value="#{tarName} [#{Session.entDetailsForm.targetRelationCount[tarName]}]" /> | |
203 <h:commandLink value="show" | |
204 actionListener="#{Session.entDetailsForm.listenerShowTargetRelations}" | |
205 rendered="#{empty Session.entDetailsForm.targetRelations[tarName]}" | |
206 styleClass="showLink"/> | |
207 | |
208 <rich:dataTable var="tarRelation" | |
209 value="#{Session.entDetailsForm.targetRelations[tarName]}" | |
210 rendered="#{!empty Session.entDetailsForm.targetRelations[tarName]}" | |
211 styleClass="internalPanel" | |
212 columnClasses="internalPanelColumnLeft,internalPanelColumn,internalPanelColumn"> | |
213 <h:column> | |
214 <f:facet name="header"> | |
215 <h:outputText value="linked from this" /> | |
216 </f:facet> | |
217 <h:panelGrid styleClass="attLink"> | |
218 <h:outputLink | |
219 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{tarRelation.source.id}"> | |
220 <h:outputText | |
147
1389c83028ef
show public information in Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
7
diff
changeset
|
221 value="[#{tarRelation.source.objectClass}] #{tarRelation.source.ownValue} [#{tarRelation.source.id}, #{tarRelation.source.privacity}]" /> |
7 | 222 </h:outputLink> |
223 </h:panelGrid> | |
224 | |
225 </h:column> | |
226 <h:column> | |
227 <f:facet name="header"> | |
228 <h:outputText value="Relation Name" /> | |
229 </f:facet> | |
230 <h:outputText value="#{tarRelation.ownValue}" /> | |
231 </h:column> | |
232 <h:column> | |
233 <f:facet name="header"> | |
234 <h:outputText value="linked to this" /> | |
235 </f:facet> | |
236 <h:outputText value="#{'x'}" /> | |
237 </h:column> | |
238 | |
239 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
240 <h:panelGrid columns="1"> | |
241 <h:outputLabel value="user=#{tarRelation.user}" /> | |
242 <h:outputLabel value="id=#{tarRelation.id}" /> | |
243 <h:outputLabel value="rowId=#{tarRelation.rowId}" /> | |
244 </h:panelGrid> | |
245 </h:column> | |
246 </rich:dataTable> | |
247 </h:column> | |
248 </rich:dataTable> | |
249 | |
163
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
250 <h:outputText value="Delete Entity" styleClass="titlePanel" |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
251 rendered="#{Session.canDelete}"/> |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
252 |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
253 <h:commandButton value="Delete this entity" title="Remove this entity" |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
254 rendered="#{Session.canDelete}" |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
255 image="#{ApplicationBean1.imgRemove32}" |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
256 onclick="if(confirm('ATTENTION: Do you really want to remove this entity?')){return true;}else{return false;};" |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
257 action="#{Session.entDetailsForm.listenerDeleteEntity}"/> |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
258 |
7 | 259 </h:panelGrid> |
260 </h:panelGrid> | |
261 </h:panelGrid> | |
262 </ui:define> | |
263 </ui:composition> | |
264 </body> | |
265 </html> |