diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index 497935b15..bbb399dd3 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -3353,6 +3353,7 @@ class VirtualChassisEditView(ObjectPermissionRequiredMixin, GetReturnURLMixin, V formset = VCMemberFormSet(queryset=members_queryset) return render(request, 'dcim/virtualchassis_edit.html', { + 'object': virtual_chassis, 'vc_form': vc_form, 'formset': formset, 'return_url': self.get_return_url(request, virtual_chassis), diff --git a/netbox/templates/account/base.html b/netbox/templates/account/base.html index 124b70414..1c0e458fc 100644 --- a/netbox/templates/account/base.html +++ b/netbox/templates/account/base.html @@ -1,4 +1,4 @@ -{% extends 'base/layout.html' %} +{% extends 'generic/_base.html' %} {% load i18n %} {% block tabs %} diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index 36caa0039..ff5a57cd1 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -116,15 +116,15 @@ Blocks:
{# Page header #} - + {% endblock header %} {# /Page header #} {# Page body #} {% block page %} -
+
{# Page content #} {% block content %}{% endblock %} {# /Page content #} - {# Bottom banner #} - {% if config.BANNER_BOTTOM %} -
- {{ config.BANNER_BOTTOM|safe }} -
- {% endif %} - {# /Bottom banner #} -
{% endblock page %} {# /Page body #} + {# Bottom banner #} + {% if config.BANNER_BOTTOM %} + {% include 'inc/banner.html' with content=config.BANNER_BOTTOM %} + {% endif %} + {# /Bottom banner #} + {# Page footer #}