X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Ffai%2Fadmin%2Ffai%2Fclass_divListFai.inc;h=f1c500ddf1b06b985567500e94ee86208a1d736e;hb=9133a46cd12f4eb933aba20d31e251b3cdec9ba5;hp=f23f8a7d4b2135e764c01b44f3edc355e0906fb2;hpb=6b62e507816a2e01ce7f5929d5de26179d6c828f;p=gosa.git diff --git a/gosa-plugins/fai/admin/fai/class_divListFai.inc b/gosa-plugins/fai/admin/fai/class_divListFai.inc index f23f8a7d4..f1c500ddf 100644 --- a/gosa-plugins/fai/admin/fai/class_divListFai.inc +++ b/gosa-plugins/fai/admin/fai/class_divListFai.inc @@ -40,8 +40,8 @@ class divListFai extends MultiSelectWindow $this->selectedBase = session::get('CurrentMainBase'); /* Set list strings */ - $this->SetTitle(_("List of FAI classes")); - $this->SetSummary(_("This table displays all FAI classes in the selected tree.")); + $this->SetTitle(_("List of classes")); + $this->SetSummary(_("List of deployment classes and packages")); /* Result page will look like a headpage */ $this->SetHeadpageMode(); @@ -65,7 +65,7 @@ class divListFai extends MultiSelectWindow /* set Page header */ $this->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'")); $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 name"), "attach" => "style=''")); $this->AddHeader(array("string" => _("Class type"), "attach" => "style='width:200px;'")); $this->AddHeader(array("string" => _("Actions"), "attach" => "style='width:".$action_col_size."px;border-right:0px;text-align:right;'")); @@ -275,7 +275,6 @@ class divListFai extends MultiSelectWindow "FAIprofile" => array("IMG"=> "images/fai_profile.png", "NAME"=>_("Profile") , "KZL"=> "P", "VAR"=>"ShowProfiles"), "FAItemplate" => array("IMG"=> "images/fai_template.png", "NAME"=>_("Templates") , "KZL"=> "T", "VAR"=>"ShowTemplates")); - $editlink ="%NAME%"; /* Dynamic action col, depending on snapshot icons */ $action_col_size = 120; @@ -327,11 +326,13 @@ class divListFai extends MultiSelectWindow src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> "; } - if($value['FAIstate'] == "freeze"){ + if(preg_match("/^freeze/", $value['FAIstate'])){ + $editlink ="%NAME%"; $action.= ""; + name='entry_freeze_edit_%KEY%' title='"._("Edit class")."'>"; $action.= "F"; }else{ + $editlink ="%NAME%"; $action.= ""; if(preg_match("/d/",$value['acl'])){