454.1.182
by Dan Garner
Send command from DisplayGroup/Display. |
1 |
{#
|
2 |
/*
|
|
3 |
* Spring Signage Ltd - http://www.springsignage.com
|
|
4 |
* Copyright (C) 2015 Spring Signage Ltd
|
|
5 |
* (${FILE_NAME})
|
|
6 |
*/
|
|
7 |
||
8 |
#}
|
|
9 |
||
10 |
{% extends "form-base.twig" %} |
|
11 |
{% import "forms.twig" as forms %} |
|
12 |
||
13 |
{% block formTitle %} |
|
14 |
{% trans "Send Command" %} |
|
15 |
{% endblock %} |
|
16 |
||
17 |
{% block formButtons %} |
|
18 |
{% trans "Help" %}, XiboHelpRender("{{ help }}") |
|
19 |
{% trans "Cancel" %}, XiboDialogClose() |
|
20 |
{% trans "Save" %}, $("#displayGroupCommandForm").submit() |
|
21 |
{% endblock %} |
|
22 |
||
23 |
{% block formHtml %} |
|
24 |
<div class="row"> |
|
25 |
<div class="col-md-12"> |
|
26 |
<form id="displayGroupCommandForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("displayGroup.action.command", {"id": displayGroup.displayGroupId}) }}"> |
|
27 |
{% set title %}{% trans "Command" %}{% endset %} |
|
28 |
{% set helpText %}{% trans "Pick a command to send to the Player. If the CMS has XMR enabled this will be sent immediately, otherwise it will show an error." %}{% endset %} |
|
29 |
{{ forms.dropdown("commandId", "single", title, "", commands, "commandId", "command", helpText) }} |
|
30 |
</form> |
|
31 |
</div> |
|
32 |
</div> |
|
33 |
{% endblock %} |