Tabify object add/edit views

This commit is contained in:
jeremystretch
2021-08-06 16:11:02 -04:00
parent 65659fb676
commit 8653b0f3d0
5 changed files with 119 additions and 98 deletions

View File

@@ -3,10 +3,11 @@
{% load form_helpers %}
{% load helpers %}
{% block tabs %}
{% include 'ipam/inc/ipadress_edit_header.html' with active_tab='add' %}
{% endblock tabs %}
{% block form %}
{% if not obj.pk %}
{% include 'ipam/inc/ipadress_edit_header.html' with active_tab='add' %}
{% endif %}
<div class="field-group">
<h4 class="mb-3">IP Address</h4>
{% render_field form.address %}