changeset 163:1611da70e43e

move delete button in entity details to better place.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Thu, 17 May 2018 14:42:57 +0200
parents 49a631863746
children d5ae699a4152 caf1aa768457
files src/main/webapp/browse/entityDetails.xhtml
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/webapp/browse/entityDetails.xhtml	Thu May 03 18:12:08 2018 +0200
+++ b/src/main/webapp/browse/entityDetails.xhtml	Thu May 17 14:42:57 2018 +0200
@@ -50,12 +50,6 @@
 								rendered="#{Session.canEdit}"
 								action="#{Session.entDetailsForm.actionEdit}"
 								style="margin-right: 20px;" />
-							<h:commandButton value="Remove" title="Remove this entity"
-								rendered="#{Session.canDelete}"
-								image="#{ApplicationBean1.imgRemove32}"
-								onclick="if(!confirm('Do you really want to remove this entity?')){ return; };"
-								action="#{Session.entDetailsForm.listenerDeleteEntity}"
-								style="margin-right: 20px;" />
 	                        <h:commandButton value="Query Builder"
 	                             onclick="window.open('#{ApplicationBean1.generateQueryBrowserUrlForId(Session.entDetailsForm.entity.id)}')"
 	                             title="Start Query Builder with this id"
@@ -249,6 +243,15 @@
 							</h:column>
 						</rich:dataTable>
 
+                        <h:outputText value="Delete Entity"  styleClass="titlePanel" 
+                            rendered="#{Session.canDelete}"/>
+
+                        <h:commandButton value="Delete this entity" title="Remove this entity"
+                            rendered="#{Session.canDelete}"
+                            image="#{ApplicationBean1.imgRemove32}"
+                            onclick="if(confirm('ATTENTION: Do you really want to remove this entity?')){return true;}else{return false;};"
+                            action="#{Session.entDetailsForm.listenerDeleteEntity}"/>
+                            
 					</h:panelGrid>
 				</h:panelGrid>
 			</h:panelGrid>