X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fnodes%2Fnode.php;h=ce0095fb6519375b04d7e71f6a817a2f4bbf8b38;hb=d0b2675251beb1bd2bcc81cc65d431282810e212;hp=c0fbd4f191a429664d993d6b052062b4f0f31818;hpb=10b954d4aa30a97573df08b1d8fbe50599262cf4;p=plewww.git diff --git a/planetlab/nodes/node.php b/planetlab/nodes/node.php index c0fbd4f..ce0095f 100644 --- a/planetlab/nodes/node.php +++ b/planetlab/nodes/node.php @@ -107,20 +107,19 @@ if (empty($nodes)) { // available actions if ( ! $peer_id && $extra_privileges ) { - $tabs["All nodes"]=l_nodes(); - // xxx subject to roles - $tabs["Add Interface"]=l_interface_add_u($node_id); - $tabs["Comon"]=l_comon("node_id",$node_id); - if ($extra_privileges) { - $tabs["Events"]=l_event("Node","node",$node_id); - } - $tabs['Update'] = array ('url'=>"/db/nodes/node_actions.php", 'method'=>'POST', 'values'=>array('action'=>'prompt-update','node_id'=>$node_id)); - $tabs['Delete (no confirm)'] = array ('url'=>"/db/nodes/node_actions.php", + $tabs['Delete'] = array ('url'=>"/db/nodes/node_actions.php", 'method'=>'POST', - 'values'=>array('action'=>'delete','node_id'=>$node_id)); + 'values'=>array('action'=>'delete','node_id'=>$node_id), + 'confirm'=>'Are you sure to delete ' . $hostname. ' ?'); + // xxx subject to roles + $tabs["Add Interface"]=l_interface_add_u($node_id); + $tabs["Comon"]=l_comon("node_id",$node_id); + $tabs["Events"]=l_event("Node","node",$node_id); + + $tabs["All nodes"]=l_nodes(); plc_tabs($tabs);