mirror of https://git.48k.eu/ogcp
remove Format field from partition setup form
Remove the 'Format' field from the Partition and Format form as the default value will always be to format the partitions. This will lead to less portantial codepaths to maintain and support and less manual clicks in the web form.master
parent
2b905ddcaf
commit
7299b157d7
|
@ -56,7 +56,6 @@ class PartitionForm(FlaskForm):
|
|||
('FAT32', 'FAT32'),
|
||||
('EMPTY', 'Empty')])
|
||||
size = IntegerField(label=_l('Size (KB)'))
|
||||
format_partition = BooleanField(label=_l('Format'))
|
||||
|
||||
class SelectClientForm(FlaskForm):
|
||||
ips = HiddenField()
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
<th>{{ _('Type') }}</th>
|
||||
<th>{{ _('Filesystem') }}</th>
|
||||
<th>{{ _('Size') }} (MB)</th>
|
||||
<th>{{ _('Format?') }}</th>
|
||||
<th colspan="2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -60,7 +59,6 @@
|
|||
<td>{{ partition.part_type(class_="form-control") }}</td>
|
||||
<td>{{ partition.fs(class_="form-control") }}</td>
|
||||
<td>{{ partition.size(class_="form-control") }}</td>
|
||||
<td>{{ partition.format_partition(class_="form-control") }}</td>
|
||||
<td>
|
||||
<button class="btn btn-danger" type="button" onclick="RemovePartition(this)">
|
||||
{{ _('Remove') }}
|
||||
|
|
|
@ -671,7 +671,7 @@ def action_setup_modify():
|
|||
'code': str(partition.part_type.data),
|
||||
'filesystem': str(partition.fs.data),
|
||||
'size': str(partition.size.data * 1024),
|
||||
'format': str(int(partition.format_partition.data))}
|
||||
'format': '1'}
|
||||
payload['partition_setup'].append(partition_setup)
|
||||
|
||||
if partition.part_type.data == 'CACHE':
|
||||
|
@ -684,7 +684,7 @@ def action_setup_modify():
|
|||
'code': 'EMPTY',
|
||||
'filesystem': 'EMPTY',
|
||||
'size': '0',
|
||||
'format': '0',
|
||||
'format': '1',
|
||||
}
|
||||
payload['partition_setup'].append(empty_part)
|
||||
|
||||
|
|
Loading…
Reference in New Issue