{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "The Name for this Daypart" %}{% endset %}
{{ forms.input("name", title, dayPart.name, 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, dayPart.startTime, 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, dayPart.endTime, helpText) }}
{% set title %}{% trans "If this daypart is already in use, the events will be adjusted to use the new times provided. If used on a recurring event and that event has already recurred. The event will be split in two and the future event time adjusted." %}{% endset %}
{{ forms.message(title) }}
{% set title %}{% trans "Description" %}{% endset %}
{% set helpText %}{% trans "A Description of Daypart" %}{% endset %}
{{ forms.textarea("description", title, dayPart.description, 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) }}