From f7e23d912c03c8b60f4188b9dba876cddb4f327e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 31 Oct 2018 15:31:44 -0400 Subject: [PATCH] Expanded cable connection form --- netbox/dcim/forms.py | 2 +- netbox/templates/dcim/cable_connect.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 721d586bb..d6d5be7b4 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -2179,7 +2179,7 @@ class CableCreateForm(BootstrapMixin, ChainedFieldsMixin, forms.ModelForm): model = Cable fields = [ '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): diff --git a/netbox/templates/dcim/cable_connect.html b/netbox/templates/dcim/cable_connect.html index ecce56118..310736af7 100644 --- a/netbox/templates/dcim/cable_connect.html +++ b/netbox/templates/dcim/cable_connect.html @@ -116,8 +116,12 @@
+ {% render_field form.type %} {% render_field form.status %} {% render_field form.label %} + {% render_field form.color %} + {% render_field form.length %} + {% render_field form.length_unit %}