~xibo-maintainers/xibo/tempel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2016 Spring Signage Ltd
 * (statistics-form-export.twig)
 */
#}

{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% trans "Export Statistics" %}
{% endblock %}

{% block formButtons %}
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
    {% trans "Cancel" %}, XiboDialogClose()
    {% trans "Save" %}, statsExportFormSubmit()
{% endblock %}

{% block formHtml %}
    <div class="row">
        <div class="col-md-12">
            <form id="statisticsExportForm" class="XiboManualForm form-horizontal" method="get" action="{{ urlFor("stats.export") }}">
                {% set title %}{% trans "From Date" %}{% endset %}
                {{ forms.date("fromDt", title) }}

                {% set title %}{% trans "To Date" %}{% endset %}
                {{ forms.date("toDt", title) }}

                {% set title %}{% trans "Display" %}{% endset %}
                {{ forms.dropdown("displayid", "single", title, "", [{"displayId": null, "display": ""}]|merge(displays), "displayId", "display") }}
            </form>
        </div>
    </div>
{% endblock %}