{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (${FILE_NAME}) */ // Append the Templates to the response $response->extra = $this->module->settings['templates']; #} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% block formTitle %} {% trans "Weather" %} {% endblock %} {% block formButtons %} {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#forecastAddForm").submit() {% endblock %} {% block callBack %}forecastIoFormSetup{% endblock %} {% block extra %}{{ module.templatesAvailable()|json_encode|raw }}{% endblock %} {% block formFieldActions %} [{ "field": "useDisplayLocation", "trigger": "init", "value": false, "operation": "is:checked", "actions": { ".locationControls": { "display": "block" } } },{ "field": "useDisplayLocation", "trigger": "change", "value": false, "operation": "is:checked", "actions": { ".locationControls": { "display": "block" } } },{ "field": "useDisplayLocation", "trigger": "init", "value": true, "operation": "is:checked", "actions": { ".locationControls": { "display": "none" } } },{ "field": "useDisplayLocation", "trigger": "change", "value": true, "operation": "is:checked", "actions": { ".locationControls": { "display": "none" } } },{ "field": "overrideTemplate", "trigger": "init", "value": false, "operation": "is:checked", "actions": { ".template-override-controls": { "display": "none" }, ".reloadTemplateButton": { "display": "none" }, ".template-selector-control": { "display": "block" } } },{ "field": "overrideTemplate", "trigger": "change", "value": false, "operation": "is:checked", "actions": { ".template-override-controls": { "display": "none" }, ".reloadTemplateButton": { "display": "none" }, ".template-selector-control": { "display": "block" } } },{ "field": "overrideTemplate", "trigger": "init", "value": true, "operation": "is:checked", "actions": { ".template-override-controls": { "display": "block" }, ".reloadTemplateButton": { "display": "block" }, ".template-selector-control": { "display": "none" } } },{ "field": "overrideTemplate", "trigger": "change", "value": true, "operation": "is:checked", "actions": { ".template-override-controls": { "display": "block" }, ".reloadTemplateButton": { "display": "block" }, ".template-selector-control": { "display": "none" } } },{ "field": "useDuration", "trigger": "init", "value": false, "operation": "is:checked", "actions": { ".duration-fields": { "display": "none" } } },{ "field": "useDuration", "trigger": "change", "value": false, "operation": "is:checked", "actions": { ".duration-fields": { "display": "none" } } },{ "field": "useDuration", "trigger": "init", "value": true, "operation": "is:checked", "actions": { ".duration-fields": { "display": "block" } } },{ "field": "useDuration", "trigger": "change", "value": true, "operation": "is:checked", "actions": { ".duration-fields": { "display": "block" } } }] {% endblock %} {% block formHtml %}