summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fbeb674)
raw | patch | inline | side by side (parent: fbeb674)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 May 2006 08:59:38 +0000 (08:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 May 2006 08:59:38 +0000 (08:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3538 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationStartup.inc | patch | blob | history | |
plugins/admin/systems/workstationStartup.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index ad9077747ed8082abc1b2b88b64c8e4e44e5e396..cf53ff2725840c274ab474c3c85a782d58ffbfd4 100644 (file)
/* FAI class selection */
- var $FAIinherit = false;
var $InheritedFAIclass = array();
var $InheritedFAIrelease = "";
var $InheritedFAIdebianMirror = "auto";
}
if(count($this->FAIclass)==0 && $this->FAIrelease == ""){
- $this->FAIinherit =true;
+ $this->FAIdebianMirror = "inherited";
}
}
function selectFriendlyClasses(){
$tmp=array();
+ if($this->FAIdebianMirror == "inherited") return($tmp);
+
/* check if the current release exists,
else select the first one ..
*/
$smarty->assign($val."ACL", chkacl($this->acl, $val));
}
- $smarty->assign("FAIinherit",$this->FAIinherit);
$smarty->assign("FAIdebianMirrors",$this->getFAIdebianMirrors());
$smarty->assign("FAIreleases",$this->getFAIreleases());
$smarty->assign("FAIrelease",$this->FAIrelease);
$smarty->assign("FAIclasses",$this->selectFriendlyClasses());
$smarty->assign("FAIclassesKeys",array_flip($this->selectFriendlyClasses()));
$smarty->assign("FAIclassKeys",$this->FAIclass);
- $smarty->assign("InheritedFAIdebianMirror",$this->InheritedFAIdebianMirror);
$smarty->assign("InheritedFAIrelease",$this->InheritedFAIrelease);
$div = new divSelectBox("WSFAIscriptClasses");
$i = 1;
- if($this->FAIinherit){
+ if($this->FAIdebianMirror == "inherited"){
$tmp = $this->InheritedFAIclass;
}else{
$tmp = $this->FAIclass;
foreach($tmp as $class){
- if($this->FAIinherit){
+ if($this->FAIdebianMirror == "inherited"){
$str = "";
}else{
if($i==1){
function getFAIdebianMirrors()
{
$ret = array();
+ $ret['inherited']="["._("inherited")."]";
$ret['auto']=_("automatic");
$secs = array();
{
$ret = array();
+ if($this->FAIdebianMirror == "inherited") return(array());
+
if(!isset($this->FAIServRepConfig[$this->FAIdebianMirror])){
$this->FAIdebianMirror = "auto";
}
$this->customParameters= $_POST["customParameters"];
}
- if(isset($_POST['WorkstationStarttabPosted'])){
- if(isset($_POST['FAIinherit'])){
- $this->FAIinherit = true;
- }else{
- $this->FAIinherit = false;
- }
- }
}
$str = "";
- if($this->FAIinherit){
+ if($this->FAIdebianMirror == "inherited"){
$this->attrs['FAIclass'] = $this->attrs['FAIrelease'] = $this->attrs['FAIdebianMirror'] = array();
diff --git a/plugins/admin/systems/workstationStartup.tpl b/plugins/admin/systems/workstationStartup.tpl
index d27ce0b5df605114a52e93b79783205a09b17551..9466a5092669c249a311c3f9efd432bd8d20edcc 100644 (file)
<td style="vertical-align:top;">
- {if $FAIinherit == true}
+ {if $FAIdebianMirror == "inherited"}
<table>
- <tr>
- <td>
- <input type="checkbox" value="1" name="FAIinherit" {if $FAIinherit == true} checked {/if}
- onClick="mainform.submit();">{t}Inherit FAI settings{/t}
- </td>
- </tr>
<tr>
<td>
<h2><img class="center" alt="" align="middle" src="images/fai_profile.png"> {t}FAI server{/t}
</tr>
<tr>
<td>
- <select name="FAIdebianMirror" disabled>
- {html_options options=$InheritedFAIdebianMirror output=$InheritedFAIdebianMirror selected=$InheritedFAIdebianMirror}
+ <select name="FAIdebianMirror" onchange='document.mainform.submit()'>
+ {html_options options=$FAIdebianMirrors output=$FAIdebianMirrors selected=$FAIdebianMirror}
</select>
</td>
<td>
{else}
<table>
- <tr>
- <td>
- <input type="checkbox" value="1" name="FAIinherit" {if $FAIinherit == true} checked {/if}
- onClick="mainform.submit();">{t}Inherit FAI settings{/t}
- </td>
- </tr>
<tr>
<td>
<h2><img class="center" alt="" align="middle" src="images/fai_profile.png"> {t}FAI server{/t}