{% load widget_tweaks %}
{% csrf_token %}
{% with form.name as field %} {% endwith %}
{% if form.instance.pk %} {% include "htmx/timeslot/_delete_timeslot_confirm_dialog.html" with item_class="btn btn-primary text-start" dialog_id="timeslot-delete-confirm" item_title=form.instance.name modal_button_name="Delete timeslot" action="Delete timeslot" item_id=form.instance.pk confirmation_message="Are you sure you want to delete this timeslot?" %} {% else %} {% endif %}
{{ formset.as_div }}