diff --git a/python/nav/web/templates/seeddb/edit.html b/python/nav/web/templates/seeddb/edit.html index 0c68208a30..a4d0cf0a76 100644 --- a/python/nav/web/templates/seeddb/edit.html +++ b/python/nav/web/templates/seeddb/edit.html @@ -1,6 +1,4 @@ {% extends "seeddb/base.html" %} -{% load crispy_forms_tags %} - {% block base_header_additional_head %} {{ block.super }} @@ -41,13 +39,9 @@

{{ title }}
Attributes - {% if form.attrs %} - {% include 'custom_crispy_templates/_form_content.html' %} - {% else %} - {% block crispyfields %} - {{ form|crispy }} - {% endblock %} - {% endif %} + {% block crispyfields %} + {% include 'custom_crispy_templates/_form_content.html' %} + {% endblock %}
diff --git a/python/nav/web/templates/seeddb/list.html b/python/nav/web/templates/seeddb/list.html index d1ff5bc3ca..f286f4a9a4 100644 --- a/python/nav/web/templates/seeddb/list.html +++ b/python/nav/web/templates/seeddb/list.html @@ -1,23 +1,14 @@ {% extends "seeddb/base.html" %} -{% load crispy_forms_tags %} {% block content %} {% if filter_form %} {% if filter_form.base_fields|length >= 3 %} - {% if filter_form.attrs %} - {% include 'custom_crispy_templates/flat_form.html' with form=filter_form %} - {% else %} - {{ filter_form }} - {% endif %} + {% include 'custom_crispy_templates/flat_form.html' with form=filter_form %} {% else %}
- {% if filter_form.attrs %} {% include 'custom_crispy_templates/flat_form.html' with form=filter_form %} - {% else %} - {% crispy filter_form %} - {% endif %}
{% endif %} diff --git a/python/nav/web/templates/seeddb/service_netbox_form.html b/python/nav/web/templates/seeddb/service_netbox_form.html index a2024f9c1f..72c6059000 100644 --- a/python/nav/web/templates/seeddb/service_netbox_form.html +++ b/python/nav/web/templates/seeddb/service_netbox_form.html @@ -15,11 +15,7 @@

Add new service checker - {% if choice_form.attrs %} - {% include 'custom_crispy_templates/_form_content.html' with form=choice_form %} - {% else %} - {{ choice_form }} - {% endif %} + {% include 'custom_crispy_templates/_form_content.html' with form=choice_form %}
diff --git a/python/nav/web/templates/seeddb/service_property_form.html b/python/nav/web/templates/seeddb/service_property_form.html index 4c9c50bfe1..b93706168b 100644 --- a/python/nav/web/templates/seeddb/service_property_form.html +++ b/python/nav/web/templates/seeddb/service_property_form.html @@ -19,17 +19,9 @@

Attributes - {% if service_form.attrs %} - {% include 'custom_crispy_templates/_form_content.html' with form=service_form %} - {% else %} - {{ service_form }} - {% endif %} + {% include 'custom_crispy_templates/_form_content.html' with form=service_form %} {% if property_form.fields %} - {% if property_form.attrs %} - {% include 'custom_crispy_templates/_form_content.html' with form=property_form %} - {% else %} - {{ property_form }} - {% endif %} + {% include 'custom_crispy_templates/_form_content.html' with form=property_form %} {% else %}
There are no attributes for this service.