summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index e18de5e..34f06b4 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -31,7 +31,8 @@ class WOLForm(FlaskForm):
class PartitionForm(FlaskForm):
partition = IntegerField(label=_l('Partition'),
- render_kw={'readonly': True})
+ render_kw={'readonly': True},
+ default=1)
part_type = SelectField(label=_l('Type'),
choices=[('LINUX', 'Linux'),
('NTFS', 'NTFS'),
@@ -47,14 +48,16 @@ class PartitionForm(FlaskForm):
('HNTFS', 'HNTFS'),
('HFAT32', 'HFAT32'),
('HNTFS-WINRE', 'HNTFS-WINRE'),
- ('EMPTY', 'Empty')])
+ ('EMPTY', 'Empty')],
+ default='EMPTY')
fs = SelectField(label=_l('Filesystem'),
choices=[('EXT4', 'EXT4'),
('NTFS', 'NTFS'),
('CACHE', 'CACHE'),
('LINUX-SWAP', 'LINUX-SWAP'),
('FAT32', 'FAT32'),
- ('EMPTY', 'Empty')])
+ ('EMPTY', 'Empty')],
+ default='EMPTY')
size = IntegerField(label=_l('Size (KB)'))
class SelectClientForm(FlaskForm):