{% load widget_tweaks %}
{% csrf_token %} {% if form.errors or formset.total_error_count %} {% endif %}
{% if is_create %}

New timeslot

{% endif %}
{% with form.name as field %} {% include "htmx/forms/input_field.html" with label=field.label max_width="md" field=field maxlength=40 %} {% endwith %}
{% if form.instance.pk %} {% include form.modal.template_name with modal=form.modal %} {% else %} {% endif %}
{{ formset.as_div }}