summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9c5ed12)
raw | patch | inline | side by side (parent: 9c5ed12)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Jun 2006 05:41:09 +0000 (05:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Jun 2006 05:41:09 +0000 (05:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3805 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_divListFai.inc | patch | blob | history | |
plugins/admin/fai/class_faiManagement.inc | patch | blob | history |
index 2262fd8ae8c6e33b09d0d494ba4b74318261bb7e..7d910064db7841cdca0bff838c46f6d3843d49d7 100644 (file)
$this->AddHeader(array("string" => " ", "attach" => "style='text-align:center;width:20px;'"));
$this->AddHeader(array("string" => _("Name of FAI class"), "attach" => "style=''"));
$this->AddHeader(array("string" => _("Class type"), "attach" => "style='width:200px;'"));
- $this->AddHeader(array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'"));
+ $this->AddHeader(array("string" => _("Actions"), "attach" => "style='width:90px;border-right:0px;text-align:right;'"));
$this->AddCheckBox("ShowProfiles" , _("Display FAI profile objects") ,_("Show profiles") ,true);
$this->AddCheckBox("ShowTemplates" , _("Display FAI template objects") ,_("Show templates") ,true);
" <input class='center' type='image' src='images/fai_new_profile.png' align='middle'
title='"._("New profile")."' name='Create_profile' alt='"._("P")."'> ".
- "<img class='center' src=\"images/list_seperator.png\" alt=\"\" align=\"middle\" height=\"16\" width=\"1\"> ".
+ "<img class='center' src=\"images/list_seperator.png\" alt=\"\" align=\"middle\" height=\"16\" width=\"1\"> ";
+
+ if($this->parent->snapshotEnabled()){
+ $listhead .= " <input class='center' type='image' align='middle' src='images/restore.png'
+ title='"._("Restore snapshopts of already deleted objects")."' alt='"._("Restore")."' name='RestoreDeletedSnapShot'>".
+ " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
+ }
- " <input class='center' type='image' src='images/fai_new_partitionTable.png' align='middle'
+ $listhead .= " <input class='center' type='image' src='images/fai_new_partitionTable.png' align='middle'
title='"._("New partition table")."' name='Create_partition' alt='"._("PT")."'> ".
" <input class='center' type='image' src='images/fai_new_script.png' align='middle'
$desc= "";
}
+ $action = $this->GetSnapShotActions($value['dn']);;
if($value['FAIstate'] == "freeze"){
- $action = "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
+ $action .= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
name='entry_edit_%KEY%' title='"._("Edit class")."'>";
$edi = $editlink;
$acti = $action;
}else{
- $action = "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
+ $action .= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
name='entry_edit_%KEY%' title='"._("Edit class")."'>";
$action .= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'
name='entry_delete_%KEY%' title='"._("Delete class")."'>";
$field1 = array("string" => $img , "attach" => "style='text-align:center;width:20px;'");
$field2 = array("string" => preg_replace(array("/%KEY%/","/%NAME%/","/%TITLE%/"),array($key,$value['cn'].$desc,preg_replace('/ /', ' ', @LDAP::fix($value['dn']))),$edi) , "attach" => "style=''");
$field3 = array("string" => $info, "attach" => "style='width:200px;'");
- $field4 = array("string" => preg_replace("/%KEY%/",$key,$acti) , "attach" => "style='width:60px;border-right:0px;text-align:right;'");
+ $field4 = array("string" => preg_replace("/%KEY%/",$key,$acti) , "attach" => "style='width:90px;border-right:0px;text-align:right;'");
$this->AddElement(array($field1,$field2,$field3,$field4));
- }
+ }
}
function Save()
index 0d8f508a0c838e809204e22cf57ce6b3d7736231..19f5a5288f4d49a6685726a678b512b424dc37a8 100644 (file)
Dialog display
****************/
+ /* Check if there is a snapshot dialog open */
+ $tmp = array();
+ $types = array("hooks","scripts","disk","packages","profiles","templates","variables");
+ foreach($types as $type){
+ if($this->DivListFai->selectedBranch == "main"){
+ $tmp[] = "ou=".$type.",ou=fai,ou=configs,ou=systems,".$this->DivListFai->selectedBase;
+ }else{
+ $tmp[] = "ou=".$type.",".$this->DivListFai->selectedBranch;
+ }
+ }
+ if($str = $this->showSnapshotDialog($this->DivListFai->selectedBase,$tmp)){
+ return($str);
+ }
+
/* Display dialog with system list */
$this->DivListFai->parent = $this;
$this->DivListFai->execute();