Expanded cable connection form

This commit is contained in:
Jeremy Stretch 2018-10-31 15:31:44 -04:00
parent 121a6afb45
commit f7e23d912c
2 changed files with 5 additions and 1 deletions

View File

@ -2179,7 +2179,7 @@ class CableCreateForm(BootstrapMixin, ChainedFieldsMixin, forms.ModelForm):
model = Cable model = Cable
fields = [ fields = [
'termination_b_site', 'termination_b_rack', 'termination_b_device', 'livesearch', 'termination_b_type', 'termination_b_site', 'termination_b_rack', 'termination_b_device', 'livesearch', 'termination_b_type',
'termination_b_id', 'status', 'label', 'termination_b_id', 'type', 'status', 'label', 'color', 'length', 'length_unit',
] ]
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):

View File

@ -116,8 +116,12 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
{% render_field form.type %}
{% render_field form.status %} {% render_field form.status %}
{% render_field form.label %} {% render_field form.label %}
{% render_field form.color %}
{% render_field form.length %}
{% render_field form.length_unit %}
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">