<form hx-post="{% url 'edit-validate-attendance' form.instance.id %}" id="attendanceRequestForm"
    hx-target="{% if hx_target %}#{{hx_target}}{% else %}#updateAttendanceRequestModalBody{% endif %}">
    {% csrf_token %} {{form.as_p}}
</form>
