Skip to content

Commit

Permalink
Uncrispify timeperiod edit template
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Oct 4, 2024
1 parent 21b3f00 commit 9399a29
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/nav/web/templates/alertprofiles/timeperiod_edit.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{% extends "alertprofiles/base.html" %}
{% load crispy_forms_tags %}

{% block tabcontent %}

<form action="{% url 'alertprofiles-profile-timeperiod-add' %}" method="post">
<input type="hidden" name="valid_during" value="{{ time_period.valid_during }}" />
{% crispy time_period_form %}
{% if time_period_form.attrs %}
{% include 'custom_crispy_templates/_form_content.html' with form=time_period_form %}
{% else %}
{{ time_period_form }}
{% endif %}
</form>
{% endblock %}

0 comments on commit 9399a29

Please sign in to comment.