Files
ihrm/base/templates/shift_request/allocation_request_update_form.html

17 lines
407 B
HTML

{% load i18n %} {% load static %}
<form
hx-post="{% url 'shift-allocation-request-update' form.instance.id %}"
hx-target="#shiftRequestModalUpdateBody"
>
{{form.as_p}}
</form>
<script>
$(document).ready(function () {
$("select").on("select2:select", function (e) {
$(".leave-message").hide();
$(this).closest("select")[0].dispatchEvent(new Event("change"));
});
});
</script>