芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/edurocha/reports/distribution-schedule-form-add.twig
{# /* * Xibo - Digital Signage - http://www.xibo.org.uk * Copyright (C) 2019 Xibo Signage Ltd * * 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 %} {{ formTitle }} {% endblock %} {% block formButtons %} {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#reportScheduleAddForm").submit() {% endblock %} {% block formHtml %}
{{ forms.hidden("hiddenFields", hiddenFields) }} {{ forms.hidden("reportName", reportName) }} {% set title %}{% trans "Filter" %}{% endset %} {% set helpText %}{% trans "Select the report filter you would like to run" %}{% endset %} {% set daily %}{% trans "Daily" %}{% endset %} {% set weekly %}{% trans "Weekly" %}{% endset %} {% set monthly %}{% trans "Monthly" %}{% endset %} {% set yearly %}{% trans "Yearly" %}{% endset %} {% set options = [ { name: "daily", filter: daily }, { name: "weekly", filter: weekly }, { name: "monthly", filter: monthly }, { name: "yearly", filter: yearly }, ] %} {{ forms.dropdown("filter", "single", title, "", options, "name", "filter", helpText) }} {% set title %}{% trans "Group by" %}{% endset %} {% set byhour %}{% trans "Hour" %}{% endset %} {% set bydayofweek %}{% trans "Day of week" %}{% endset %} {% set bydayofmonth %}{% trans "Day of month" %}{% endset %} {% set options = [ { filterName: "byhour", groupByFilter: byhour }, { filterName: "bydayofweek", groupByFilter: bydayofweek }, { filterName: "bydayofmonth", groupByFilter: bydayofmonth }, ] %} {{ forms.dropdown("groupByFilter", "single", title, "", options, "filterName", "groupByFilter", "", "group-by-filter") }} {% set title %}{% trans "Display" %}{% endset %} {% set attributes = [ { name: "data-width", value: "100%" }, { name: "data-allow-clear", value: "true" }, { name: "data-placeholder--id", value: null }, { name: "data-placeholder--value", value: "" }, { name: "data-search-url", value: urlFor("display.search") }, { name: "data-search-term", value: "display" }, { name: "data-search-term-tags", value: "tags" }, { name: "data-id-property", value: "displayId" }, { name: "data-text-property", value: "display" } ] %} {{ forms.dropdown("displayId", "single", title, "", null, "displayId", "display", "", "pagedSelect", "", "d", "", attributes) }} {% set title %}{% trans "Name" %}{% endset %} {% set helpText %}{% trans "The name for this report schedule" %}{% endset %} {{ forms.input("name", title, "", helpText, "", "required") }} {% set title %}{% trans "Should an email be sent?" %}{% endset %} {{ forms.checkbox("sendEmail", title, sendEmail) }} {% set title %}{% trans "Email addresses" %}{% endset %} {% set helpText %}{% trans "Additional emails separated by a comma." %}{% endset %} {{ forms.inputWithTags("nonusers", title, nonusers, helpText) }}
{% endblock %}