Reversion should mostly work now

This commit is contained in:
2022-01-09 14:52:59 +00:00
parent 88dee9477b
commit b539312538
5 changed files with 39 additions and 11 deletions

View File

@@ -22,6 +22,13 @@
{% block content %}
{% if form.errors %}
{% include 'form_errors.html' %}
<script src="{% static 'js/autocompleter.js' %}"></script>
<script>
//Has to be done here or the pickers disappear on modal error
$('document').ready(function(){
$(document).find(".selectpicker").selectpicker().each(function(){initPicker($(this))});
});
</script>
{% endif %}
<form id="requirement-form" action="{{ form.action|default:request.path }}" method="post">{% csrf_token %}
{% render_field form.level|attr:'hidden' value=form.level.initial %}