Code

Fixed msgs for applications / departments / fai
[gosa.git] / plugins / admin / fai / class_divListFai.inc
index b308def3cf1f9ca5b62d6abfb7dc37817b687bf7..d9912120fbf54d6e707ffbc104e2a80382fcd00e 100644 (file)
@@ -131,13 +131,7 @@ _("Submit")."'> ".
       title='"._("New profile")."' name='Create_profile' alt='"._("P")."'> ".
 
       "<img class='center' src=\"images/list_seperator.png\" alt=\"\" align=\"middle\" height=\"16\" width=\"1\">&nbsp;";
-
-    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'>&nbsp;";
-    }
-
+      $listhead .= $this->get_snapshot_header($this->selectedBase);
       $listhead .= " <input class='center' type='image' src='images/fai_new_partitionTable.png' align='middle'
       title='"._("New partition table")."' name='Create_partition' alt='"._("PT")."'>&nbsp;".
 
@@ -223,16 +217,16 @@ _("Submit")."'>&nbsp;".
          $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")."'
+         $action.= $this->GetSnapShotActions($value['dn']);;
+         $action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'
            name='entry_delete_%KEY%' title='"._("Delete class")."'>";
          $acti = $action;
          $edi = $editlink;