Mercurial > hg > ismi-richfaces
annotate src/main/webapp/browse/entityDetails.xhtml @ 192:3fdd5e191d30
fix duplicate ids.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 09 Nov 2018 15:49:12 +0100 |
parents | 0d31c8be7c31 |
children | c7fec83ab69a |
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}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
76 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
77 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
|
78 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
79 <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
|
80 rendered="#{Session.entDetailsForm.entity.isPublic}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
81 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
82 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
|
83 action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
84 |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
163
diff
changeset
|
85 <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
|
86 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
|
87 rendered="#{Session.entDetailsForm.entity.isPublic}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
88 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
89 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
|
90 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
163
diff
changeset
|
91 <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
|
92 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
|
93 rendered="#{!Session.entDetailsForm.entity.isPublic}" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
94 style="margin-right:10px;" |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
95 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
|
96 action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
97 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
98 </h:panelGroup> |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
147
diff
changeset
|
99 |
7 | 100 <h:outputText value="Attributes" styleClass="titlePanel"/> |
101 | |
102 <rich:dataTable id="entity" | |
103 value="#{Session.entDetailsForm.attributeList}" var="attribute" | |
104 rendered="#{!empty Session.entDetailsForm.attributeList}" | |
105 styleClass="mainPanel" | |
106 columnClasses="mainPanelcolumn01,mainPanelcolumn02"> | |
107 | |
108 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
109 <f:facet name="header"> | |
110 <h:outputText value="Debug" /> | |
111 </f:facet> | |
112 <h:outputText value="#{attribute.id} - #{attribute.rowId}" /> | |
113 </h:column> | |
114 <h:column> | |
115 <f:facet name="header"> | |
116 <h:outputText value="Name" /> | |
117 </f:facet> | |
118 <h:outputText value="#{attribute.name}" /> | |
119 </h:column> | |
120 <h:column> | |
121 <f:facet name="header"> | |
122 <h:outputText value="Value" /> | |
123 </f:facet> | |
124 <h:outputText value="#{attribute.value}" /> | |
125 </h:column> | |
126 </rich:dataTable> | |
127 | |
128 <h:outputText value="Source Relations" styleClass="titlePanel"/> | |
129 | |
130 <rich:dataTable var="srcName" | |
131 value="#{Session.entDetailsForm.sourceRelationNames}" | |
132 styleClass="mainPanel" | |
133 columnClasses="mainPanelcolumn01"> | |
134 <h:column | |
135 rendered="#{Session.entDetailsForm.sourceRelationCount[srcName] != '0'}"> | |
136 | |
137 <h:outputText | |
138 value="#{srcName} [#{Session.entDetailsForm.sourceRelationCount[srcName]}]" /> | |
139 <h:commandLink value="show" | |
140 actionListener="#{Session.entDetailsForm.listenerShowSourceRelations}" | |
141 rendered="#{empty Session.entDetailsForm.sourceRelations[srcName]}" | |
142 styleClass="showLink"/> | |
143 | |
144 <rich:dataTable var="srcRelation" | |
145 value="#{Session.entDetailsForm.sourceRelations[srcName]}" | |
146 rendered="#{!empty Session.entDetailsForm.sourceRelations[srcName]}" | |
147 styleClass="internalPanel" | |
148 columnClasses="internalPanelColumn,internalPanelColumn,internalPanelColumnLeft"> | |
149 | |
150 <h:column> | |
151 <f:facet name="header"> | |
152 <h:outputText value="linked from this" /> | |
153 </f:facet> | |
154 <h:outputText value="#{'x'}" /> | |
155 </h:column> | |
156 | |
157 <h:column> | |
158 <f:facet name="header"> | |
159 <h:outputText value="Relation Name" /> | |
160 </f:facet> | |
161 <h:outputText value="#{srcRelation.ownValue}" /> | |
162 </h:column> | |
163 <h:column> | |
164 <f:facet name="header"> | |
165 <h:outputText value="linked to this" /> | |
166 </f:facet> | |
167 <h:panelGrid styleClass="attLink"> | |
168 <h:outputLink | |
169 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{srcRelation.target.id}"> | |
170 <h:outputText | |
147
1389c83028ef
show public information in Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
7
diff
changeset
|
171 value="[#{srcRelation.target.objectClass}] #{srcRelation.target.ownValue} [#{srcRelation.target.id}, #{srcRelation.target.privacity}]" /> |
7 | 172 </h:outputLink> |
173 </h:panelGrid> | |
174 | |
175 </h:column> | |
176 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
177 <h:panelGrid columns="1"> | |
178 <h:outputLabel value="user=#{srcRelation.user}" /> | |
179 <h:outputLabel value="id=#{srcRelation.id}" /> | |
180 <h:outputLabel value="rowId=#{srcRelation.rowId}" /> | |
181 </h:panelGrid> | |
182 </h:column> | |
183 </rich:dataTable> | |
184 | |
185 </h:column> | |
186 </rich:dataTable> | |
187 | |
188 <h:outputText value="Target Relations" styleClass="titlePanel"/> | |
189 | |
190 <rich:dataTable var="tarName" | |
191 value="#{Session.entDetailsForm.targetRelationNames}" | |
192 styleClass="mainPanel" | |
193 columnClasses="mainPanelcolumn01"> | |
194 <h:column | |
195 rendered="#{Session.entDetailsForm.targetRelationCount[tarName] != '0'}"> | |
196 | |
197 <h:outputText | |
198 value="#{tarName} [#{Session.entDetailsForm.targetRelationCount[tarName]}]" /> | |
199 <h:commandLink value="show" | |
200 actionListener="#{Session.entDetailsForm.listenerShowTargetRelations}" | |
201 rendered="#{empty Session.entDetailsForm.targetRelations[tarName]}" | |
202 styleClass="showLink"/> | |
203 | |
204 <rich:dataTable var="tarRelation" | |
205 value="#{Session.entDetailsForm.targetRelations[tarName]}" | |
206 rendered="#{!empty Session.entDetailsForm.targetRelations[tarName]}" | |
207 styleClass="internalPanel" | |
208 columnClasses="internalPanelColumnLeft,internalPanelColumn,internalPanelColumn"> | |
209 <h:column> | |
210 <f:facet name="header"> | |
211 <h:outputText value="linked from this" /> | |
212 </f:facet> | |
213 <h:panelGrid styleClass="attLink"> | |
214 <h:outputLink | |
215 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{tarRelation.source.id}"> | |
216 <h:outputText | |
147
1389c83028ef
show public information in Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
7
diff
changeset
|
217 value="[#{tarRelation.source.objectClass}] #{tarRelation.source.ownValue} [#{tarRelation.source.id}, #{tarRelation.source.privacity}]" /> |
7 | 218 </h:outputLink> |
219 </h:panelGrid> | |
220 | |
221 </h:column> | |
222 <h:column> | |
223 <f:facet name="header"> | |
224 <h:outputText value="Relation Name" /> | |
225 </f:facet> | |
226 <h:outputText value="#{tarRelation.ownValue}" /> | |
227 </h:column> | |
228 <h:column> | |
229 <f:facet name="header"> | |
230 <h:outputText value="linked to this" /> | |
231 </f:facet> | |
232 <h:outputText value="#{'x'}" /> | |
233 </h:column> | |
234 | |
235 <h:column rendered="#{ApplicationBean1.confService.debugModus}"> | |
236 <h:panelGrid columns="1"> | |
237 <h:outputLabel value="user=#{tarRelation.user}" /> | |
238 <h:outputLabel value="id=#{tarRelation.id}" /> | |
239 <h:outputLabel value="rowId=#{tarRelation.rowId}" /> | |
240 </h:panelGrid> | |
241 </h:column> | |
242 </rich:dataTable> | |
243 </h:column> | |
244 </rich:dataTable> | |
245 | |
163
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
246 <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
|
247 rendered="#{Session.canDelete}"/> |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
248 |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
249 <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
|
250 rendered="#{Session.canDelete}" |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
251 image="#{ApplicationBean1.imgRemove32}" |
1611da70e43e
move delete button in entity details to better place.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
157
diff
changeset
|
252 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
|
253 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
|
254 |
7 | 255 </h:panelGrid> |
256 </h:panelGrid> | |
257 </h:panelGrid> | |
258 </ui:define> | |
259 </ui:composition> | |
260 </body> | |
261 </html> |