{# /* * Xibo - Digital Signage - http://www.xibo.org.uk * Copyright (C) 2012-2016 Spring Signage Ltd - http://www.springsignage.com * * This file is part of Xibo. * * Xibo is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Xibo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see . */ #} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% block formTitle %} {% trans "Add Daypart" %} {% endblock %} {% block formButtons %} {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#dayPartAddForm").submit() {% endblock %} {% block extra %}{{ extra|json_encode|raw }}{% endblock %} {% block callBack %}dayPartFormOpen{% endblock %} {% block formHtml %}
{% 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) }}
{% endblock %}