summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 106f2a6)
raw | patch | inline | side by side (parent: 106f2a6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Sep 2010 09:49:27 +0000 (09:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Sep 2010 09:49:27 +0000 (09:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19768 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl b/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl
index efee6ed4b4f83f1ae909c459a0d3b234c29187cb..9bc45d78fa402fbefe24c3d92ac26c5ce4dbf137 100644 (file)
{if !$kickstartRootEnabled} disabled {/if} value="{$kickstartRootPasswordHash}">
</td>
</tr>
- <tr>
- <td><LABEL for="member">{t}Member{/t}</LABEL></td>
- <td>
- {$memberList}
- <input type='text' name="member" id="member" value="">
- <button name='addMember' type='submit'>{msgPool type='addButton'}</button>
- </td>
- </tr>
<tr>
<td><LABEL for="kickstartTemplateDN">{t}Kickstart template{/t}</LABEL></td>
<td>
diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc
index b0c3fb068483f447ee6d6e89fa978442a52613b1..15a95f1ebdfb63c2b90d5c616a73412f694eb12f 100644 (file)
class InstallRecipe extends plugin
{
- public $member = array();
public $kickstartTemplateDN = "";
public $kickstartKeyboardlayout = "";
public $kickstartSystemLocale = "";
public $kickstartPartitionTable = "";
public $objectclasses = array('installRecipe');
- public $attributes = array("member","kickstartTemplateDN","kickstartKeyboardlayout","kickstartSystemLocale",
+ public $attributes = array("kickstartTemplateDN","kickstartKeyboardlayout","kickstartSystemLocale",
"kickstartTimezone","kickstartTimeUTC","kickstartNTPServer","kickstartMirrorDN",
"kickstartRootEnabled","kickstartRootPasswordHash","kickstartKernelPackage","kickstartPartitionTable");
}
uksort($list, 'strnatcasecmp');
$this->timezones = $list;
-
- // Prepare member list
- $this->memberList= new sortableListing($this->member);
- $this->memberList->setDeleteable(true);
- $this->memberList->setColspecs(array('*'));
- $this->memberList->setWidth("100%");
- $this->memberList->setHeight("70px");
-
-
}
function execute()
foreach($this->attributes as $attr){
$smarty->assign($attr, $this->$attr);
}
-
- // Fill and render the member list widget
- $this->memberList->setListData($this->member);
- $this->memberList->update();
- $this->memberList->setAcl($this->getacl('member'));
- $smarty->assign('memberList', $this->memberList->render());
return($smarty->fetch(get_template_path('goto/Device/InstallRecipe.tpl', TRUE)));
}
{
plugin::save_object();
$this->kickstartRootEnabled = isset($_POST['kickstartRootEnabled']);
-
- // Update the member list widget.
- $this->memberList->save_object();
- $this->member = $this->memberList->getMaintainedData();
- if(isset($_POST['member']) && isset($_POST['addMember'])){
- $member= get_post('member');
- $this->member[] = $member;
- }
}