Skip to content

Commit

Permalink
Remove crispy from html template
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Sep 30, 2024
1 parent 2dae9d3 commit 7752ef8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/nav/web/templates/threshold/set_threshold.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "base.html" %}
{% load crispy_forms_tags %}

{% block base_header_additional_head %}
<script>require(['src/threshold']);</script>
Expand All @@ -21,7 +20,11 @@ <h4>{{ heading }}</h4>
data-url="{% url 'threshold-search' %}"
data-renderurl="{% url 'threshold-graph' %}"
data-metric="{{ metric|default_if_none:'' }}">
{% crispy form %}
{% if form.attrs %}
{% include 'custom_crispy_templates/flat_form.html' %}
{% else %}
{{ form }}
{% endif %}
</div>
{% if id %}
<a href="#" data-dropdown="confirm-delete" class="button alert">Delete</a>
Expand Down

0 comments on commit 7752ef8

Please sign in to comment.