{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "The Name for this Daypart" %}{% endset %}
{{ forms.input("name", title, "", helpText, "", "required") }}
{% set title %}{% trans "Retired" %}{% endset %}
{% set helpText %}{% trans "Retire? It will no longer be visible when scheduling" %}{% endset %}
{{ forms.checkbox("retired", title, dayPart.isRetired, helpText) }}
{% set title %}{% trans "Start Time" %}{% endset %}
{% set helpText %}{% trans "Enter the start time for this daypart" %}{% endset %}
{{ forms.time("startTime", title, "00:00", helpText) }}
{% set title %}{% trans "End Time" %}{% endset %}
{% set helpText %}{% trans "Enter the end time for this daypart. If the end time is before the start time, then the daypart will cross midnight." %}{% endset %}
{{ forms.time("endTime", title, "00:00", helpText) }}
{% set title %}{% trans "Description" %}{% endset %}
{% set helpText %}{% trans "A Description of Daypart" %}{% endset %}
{{ forms.textarea("description", title, "", helpText) }}
{% set title %}{% trans "If there are any exceptions enter them below by selecting the Day from the list and entering a start/end time." %}{% endset %}
{{ forms.message(title) }}