diff --git a/gosa-plugins/fai/admin/fai/class_divListFai.inc b/gosa-plugins/fai/admin/fai/class_divListFai.inc
index 8c151c79dfada35ad82198c62a5cc14343183047..f1c500ddf1b06b985567500e94ee86208a1d736e 100644 (file)
$this->selectedBase = session::get('CurrentMainBase');
/* Set list strings */
$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();
/* Result page will look like a headpage */
$this->SetHeadpageMode();
/* set Page header */
$this->AddHeader(array("string"=> $chk, "attach"=>"style='width:20px;'"));
$this->AddHeader(array("string" => " ", "attach" => "style='text-align:center;width:20px;'"));
/* 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;'"));
$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;'"));
/* Add SubSearch checkbox */
//$this->AddCheckBox(SEPERATOR);
/* Add SubSearch checkbox */
//$this->AddCheckBox(SEPERATOR);
- //$this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Search in subtrees"), false);
+ //$this->AddCheckBox("SubSearch", msgPool::selectToView("","subsearch"), msgPool::selectToView("","subsearch_small"), false);
/* Name ,Text ,Default , Connect with alphabet */
$this->AddRegex ("Regex", _("Display users matching"),"*" , true);
/* Name ,Text ,Default , Connect with alphabet */
$this->AddRegex ("Regex", _("Display users matching"),"*" , true);
"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"));
"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 ="<a href='?plug=".$_GET['plug']."&edit_entry=%KEY%' title='%TITLE%'>%NAME%</a>";
/* Dynamic action col, depending on snapshot icons */
$action_col_size = 120;
/* Dynamic action col, depending on snapshot icons */
$action_col_size = 120;
src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
}
src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
}
- if($value['FAIstate'] == "freeze"){
+ if(preg_match("/^freeze/", $value['FAIstate'])){
+ $editlink ="<a href='?plug=".$_GET['plug']."&edit_freeze_entry=%KEY%' title='%TITLE%'>%NAME%</a>";
$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")."'>";
+ name='entry_freeze_edit_%KEY%' title='"._("Edit class")."'>";
$action.= "<img src='images/closedlock.png' alt='F' class='center'>";
}else{
$action.= "<img src='images/closedlock.png' alt='F' class='center'>";
}else{
+ $editlink ="<a href='?plug=".$_GET['plug']."&edit_entry=%KEY%' title='%TITLE%'>%NAME%</a>";
$action.= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
name='entry_edit_%KEY%' title='"._("Edit class")."'>";
if(preg_match("/d/",$value['acl'])){
$action.= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'
name='entry_edit_%KEY%' title='"._("Edit class")."'>";
if(preg_match("/d/",$value['acl'])){