From dc88cb5ac790c9d28ec42e32e4d0bfe4c521279e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 1 Dec 2016 14:54:20 -0500 Subject: [PATCH] Fixes #718: Restore is_primary field on IP assignment form --- netbox/templates/dcim/ipaddress_assign.html | 3 ++- netbox/templates/ipam/ipaddress_assign.html | 20 ++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/netbox/templates/dcim/ipaddress_assign.html b/netbox/templates/dcim/ipaddress_assign.html index 538023d08..533317baf 100644 --- a/netbox/templates/dcim/ipaddress_assign.html +++ b/netbox/templates/dcim/ipaddress_assign.html @@ -1,7 +1,7 @@ {% extends '_base.html' %} {% load form_helpers %} -{% block title %}Assign an IP Address{% endblock %} +{% block title %}Assign a New IP Address{% endblock %} {% block content %}
@@ -40,6 +40,7 @@ {% render_field form.interface %} + {% render_field form.set_as_primary %}
diff --git a/netbox/templates/ipam/ipaddress_assign.html b/netbox/templates/ipam/ipaddress_assign.html index 4143dc3ee..10a582a2f 100644 --- a/netbox/templates/ipam/ipaddress_assign.html +++ b/netbox/templates/ipam/ipaddress_assign.html @@ -2,7 +2,7 @@ {% load static from staticfiles %} {% load form_helpers %} -{% block title %}Assign IP Address{% endblock %} +{% block title %}Assign an IP Address{% endblock %} {% block content %} @@ -19,9 +19,25 @@ {% endif %}
- Assign IP Address {{ ipaddress }} ({% if ipaddress.vrf %}VRF {{ ipaddress.vrf }}{% else %}Global Table{% endif %}) + Assign an IP Address
+
+ +
+

{{ ipaddress }}

+
+ +
+

+ {% if ipaddress.vrf %} + {{ ipaddress.vrf }} ({{ ipaddress.vrf.rd }}) + {% else %} + Global + {% endif %} +

+
+