~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to modules/hls-form-add.twig

  • Committer: Dan Garner
  • Date: 2015-09-29 15:16:59 UTC
  • mto: (454.2.11) (471.2.2)
  • mto: This revision was merged to the branch mainline in revision 468.
  • Revision ID: git-v1:ae24387a7b1397750b6ec86d0f286373da05eb16
Fixed Display Version Information Form (not showing media name)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{#
2
 
/*
3
 
 * Spring Signage Ltd - http://www.springsignage.com
4
 
 * Copyright (C) 2015 Spring Signage Ltd
5
 
 * (${FILE_NAME})
6
 
 */
7
 
#}
8
 
 
9
 
{% extends "form-base.twig" %}
10
 
{% import "forms.twig" as forms %}
11
 
 
12
 
{% block formTitle %}
13
 
    {% trans "Add HLS Video Stream" %}
14
 
{% endblock %}
15
 
 
16
 
{% block formButtons %}
17
 
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
18
 
    {% trans "Cancel" %}, XiboDialogClose()
19
 
    {% trans "Save" %}, $("#hlsAddForm").submit()
20
 
{% endblock %}
21
 
 
22
 
{% block formFieldActions %}
23
 
    [{
24
 
    "field": "useDuration",
25
 
    "trigger": "init",
26
 
    "value": false,
27
 
    "operation": "is:checked",
28
 
    "actions": {
29
 
    ".duration-fields": { "display": "none" }
30
 
    }
31
 
    },{
32
 
    "field": "useDuration",
33
 
    "trigger": "change",
34
 
    "value": false,
35
 
    "operation": "is:checked",
36
 
    "actions": {
37
 
    ".duration-fields": { "display": "none" }
38
 
    }
39
 
    },{
40
 
    "field": "useDuration",
41
 
    "trigger": "init",
42
 
    "value": true,
43
 
    "operation": "is:checked",
44
 
    "actions": {
45
 
    ".duration-fields": { "display": "block" }
46
 
    }
47
 
    },{
48
 
    "field": "useDuration",
49
 
    "trigger": "change",
50
 
    "value": true,
51
 
    "operation": "is:checked",
52
 
    "actions": {
53
 
    ".duration-fields": { "display": "block" }
54
 
    }
55
 
    }]
56
 
{% endblock %}
57
 
 
58
 
{% block formHtml %}
59
 
    <div class="row">
60
 
        <div class="col-md-12">
61
 
            <form id="hlsAddForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("module.widget.add", {type: module.widget.type, id: playlist.playlistId}) }}">
62
 
                {% set title %}{% trans "Video Path" %}{% endset %}
63
 
                {% set helpText %}{% trans "A URL to the HLS video stream. Requires Player running Windows 8.1 or later, or Android 6 or later. Earlier Android devices may play HLS via the LocalVideo widget." %}{% endset %}
64
 
                {{ forms.input("uri", title, "", helpText, "", "required") }}
65
 
 
66
 
                {% set title %}{% trans "Set a duration?" %}{% endset %}
67
 
                {% set helpText %}{% trans "Select to provide a specific duration for this Widget" %}{% endset %}
68
 
                {{ forms.checkbox("useDuration", title, 0, helpText) }}
69
 
 
70
 
                {% set title %}{% trans "Duration" %}{% endset %}
71
 
                {% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %}
72
 
                {{ forms.number("duration", title, module.getModule().defaultDuration, helpText, "duration-fields", "required") }}
73
 
 
74
 
                {% set title %}{% trans "Mute?" %}{% endset %}
75
 
                {% set helpText %}{% trans "Should the video be muted?" %}{% endset %}
76
 
                {{ forms.checkbox("mute", title, 0, helpText, "mute-fields") }}
77
 
            </form>
78
 
        </div>
79
 
    </div>
80
 
{% endblock %}
 
 
b'\\ No newline at end of file'