summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d34a6c)
raw | patch | inline | side by side (parent: 4d34a6c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 May 2011 10:02:10 +0000 (10:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 May 2011 10:02:10 +0000 (10:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20815 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl b/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl
index 8e077657e210d4ab0b45d9e1fc972338cf43241b..1354c623e1bb2a3270124d66c796acda156cc664 100644 (file)
<td>{t}Force to be primary partition{/t}</td>
<td><input type="checkbox" name="p_forcePrimary" {if $p_forcePrimary_selected} checked {/if}></td>
</tr>
+ <tr>
+ <td>{t}Bootable{/t}</td>
+ <td><input type="checkbox" name="p_bootable" {if $p_bootable_selected} checked {/if}></td>
+ </tr>
<tr>
<td>{t}Encrypt{/t}</td>
{if $p_fsType == "raid" || $p_fsType == "swap" || $p_fsType == "pv"}
diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc
index cef1e124cade1f374ec6add4c88a9d83e8ab7a63..810cab143d6e36aac990c3af61bbbf0daab15df1 100644 (file)
// Partition properties
public $p_size = 1000;
public $p_format = FALSE;
+ public $p_bootable = FALSE;
public $p_fsType = 'ext3';
public $p_mountPoint = '';
public $p_used_disk = array();
// Partitions attributes
public $p_attributes = array("p_size", "p_fsType", "p_mountPoint", "p_forcePrimary", "p_encrypt",
- "p_size_options", "p_size_max_value", "p_used_disk", "p_format");
+ "p_size_options", "p_size_max_value", "p_used_disk", "p_format", "p_bootable");
// Raid device attributes
public $r_attributes = array("r_fsType", "r_mountPoint", "r_raidLevel", "r_partitions",
switch($this->selected_type){
case PARTITION: {
$attrs = $this->p_attributes;
- $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format");
+ $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format", "p_bootable");
break;
}
case RAID_DEVICE: {
switch($this->selected_type){
case PARTITION: {
$attrs = $this->p_attributes;
- $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format");
+ $bool_attrs = array("p_forcePrimary", "p_encrypt", "p_format", "p_bootable");
break;
}
case RAID_DEVICE: {
}
$grow = $this->p_size_options == 1;
$format = $this->p_format == 1;
- $boot = FALSE;
+ $boot = $this->p_bootable == 1;
$primary = $this->p_forcePrimary;
$fsType = $this->p_fsType;
$fsOptions = "";