{% load i18n %} {% load widget_tweaks %}

{% if grace_id %} {% trans 'Update grace time' %} {% else %} {% trans 'Create grace time' %} {% endif %}

{% if form.errors %}
{% for error in form.non_field_errors %}
{{ error }}
{% endfor %}
{% endif %}
{% csrf_token %}
{{ form.allowed_time }} {{ form.allowed_time.errors }}
{{ form.allowed_clock_in|add_class:"oh-switch__checkbox" }}
{{ form.allowed_clock_in.errors }}
{{ form.allowed_clock_out }}
{{ form.allowed_clock_out.errors }}
{{ form.company_id }} {{ form.company_id.errors }}
{{form.is_default}}