Fixes #3136: Add power draw fields to power port creation form

This commit is contained in:
Jeremy Stretch
2019-05-02 10:02:02 -04:00
parent 250f310a98
commit d4db04c649
2 changed files with 11 additions and 0 deletions

View File

@@ -1971,6 +1971,16 @@ class PowerPortCreateForm(ComponentForm):
name_pattern = ExpandableNameField(
label='Name'
)
maximum_draw = forms.IntegerField(
min_value=1,
required=False,
help_text="Maximum draw in watts"
)
allocated_draw = forms.IntegerField(
min_value=1,
required=False,
help_text="Allocated draw in watts"
)
description = forms.CharField(
max_length=100,
required=False