Skip to content

Commit

Permalink
Remove crispy logic completely from device history view filter form
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Sep 30, 2024
1 parent 8487ede commit 27fb2e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions python/nav/web/templates/devicehistory/history_search.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "devicehistory/base.html" %}
{% load crispy_forms_tags %}

{% block tabcontent %}
<p class="panel">
Expand All @@ -14,7 +13,7 @@
{% if form.attrs %}
{% include 'custom_crispy_templates/_form_content.html' %}
{% else %}
{% crispy form %}
{{ form }}
{% endif %}
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions python/nav/web/templates/devicehistory/history_view.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "devicehistory/base.html" %}
{% load crispy_forms_tags %}

{% block tabcontent %}
<a href="{% url 'devicehistory-search' %}" class="button small secondary">New search</a>
Expand All @@ -15,7 +14,7 @@
{% if form.attrs %}
{% include 'custom_crispy_templates/_form_content.html' %}
{% else %}
{% crispy form %}
{{ form }}
{% endif %}
<input type="submit" class="button small" value="Filter">
</form>
Expand Down

0 comments on commit 27fb2e2

Please sign in to comment.