index 7d0c56636fcf7ac7f38790348704b10af0bcbd14..9444ed8721373b3297be1efb2cb834440f96c899 100644 (file)
$s_action = "new_package";
}elseif(preg_match("/create_profile/i",$key)){
$s_action = "new_profile";
- }elseif(preg_match("/UseNewClass/",$key)){
- $s_action = "select_class_name_finished";
- }elseif(preg_match("/UseSelectedClass/",$key)){
+ }elseif(preg_match("/edit_continue/",$key)){
$s_action = "select_class_name_finished";
}elseif(preg_match("/^entry_edit_.*/",$key)){
$s_entry = preg_replace("/^entry_edit_/","",$key);
}
+ if(isset($_GET['edit_entry'])){
+ $s_entry = $_GET['edit_entry'];
+ $s_action = "edit";
+ }
+
/* Confirm dialog
* Delte object
*/
/* Lock the current entry, so nobody will edit it during deletion */
add_lock ($this->dn, $this->ui->dn);
- $smarty->assign("warning", sprintf(_("You're about to delete all information about the component at '%s'."), $this->dn));
+ $smarty->assign("warning", sprintf(_("You're about to delete all information about the FAI class at '%s'."), $this->dn));
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
} else {
}
}
+ /* Delete canceled? */
+ if (isset($_POST['delete_cancel'])){
+ del_lock ($this->dn);
+ }
+
+
/* Deltetion was confirmed, so delete this entry
*/
if (isset($_POST['delete_terminal_confirm'])){
$display.= "</p>";
}elseif(!isset($this->dialog->current)){
$display.= "<p style=\"text-align:right\">\n";
+ $display.= "<input type=submit name=\"edit_continue\" value=\""._("Continue")."\"> ";
$display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
$display.= "</p>";
}
$action = "<input type='image' src='images/edit.png' alt='"._("edit")."' name='entry_edit_%KEY%' title='"._("Edit class")."'>";
$action .= "<input type='image' src='images/edittrash.png' alt='"._("delete")."' name='entry_delete_%KEY%' title='"._("Delete class")."'>";
+ $editlink ="<a href='?plug=".$_GET['plug']."&edit_entry=%KEY%'>%NAME%</a>";
+
/* Attach objects */
foreach($this->objects as $key => $value){
$info= "";
}
$field1 = array("string" => $img , "attach" => "style='height:26px;width=20px;'");
- $field2 = array("string" => $value['cn'].$desc , "attach" => "");
+ $field2 = array("string" => preg_replace(array("/%KEY%/","/%NAME%/"),array($key,$value['cn'].$desc),$editlink) , "attach" => "");
$field3 = array("string" => $info, "attach" => "");
$field4 = array("string" => preg_replace("/%KEY%/",$key,$action) , "attach"=>"style='text-align:right;border:none'");
$divlist->AddEntry(array($field1,$field2,$field3,$field4));