{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (${FILE_NAME}) */ #} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% block formTitle %} {% trans "Edit Layout" %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help }}") {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#layoutEditForm").submit() {% endblock %} {% block callBack %}backGroundFormSetup{% endblock %} {% block formHtml %}
{% set title %}{% trans "Name" %}{% endset %} {% set helpText %}{% trans "The Name of the Layout - (1 - 50 characters)" %}{% endset %} {{ forms.input("name", title, layout.layout, helpText) }} {% set title %}{% trans "Tags" %}{% endset %} {% set helpText %}{% trans "Tags for this layout - used when searching for it. Comma delimited. (1 - 250 characters)" %}{% endset %} {{ forms.inputWithTags("tags", title, layout.tags, helpText) }} {% set title %}{% trans "Retired" %}{% endset %} {% set helpText %}{% trans "Retire this layout or not? It will no longer be visible in lists" %}{% endset %} {{ forms.checkbox("retired", title, layout.retired, helpText) }}
{% set title %}{% trans "Description" %}{% endset %} {% set helpText %}{% trans "An optional description of the Layout. (1 - 250 characters)" %}{% endset %} {{ forms.textarea("description", title, layout.description, helpText) }}
{% set title %}{% trans "Background Colour" %}{% endset %} {% set helpText %}{% trans "Use the colour picker to select the background colour" %}{% endset %} {{ forms.input("backgroundColor", title, layout.backgroundColor, helpText) }} {% set title %}{% trans "Background Image" %}{% endset %} {% set helpText %}{% trans "Pick the background image from the library. It is recommended to pick JPG images as Windows Players can only show JPG background images." %}{% endset %} {% set noneMessage %}{% trans "None" %}{% endset %} {% set backgrounds = [{mediaId: null, name: noneMessage}]|merge(backgrounds) %} {{ forms.dropdown("backgroundImageId", "single", title, backgroundId, backgrounds, "mediaId", "name", helpText, "selectPicker background-image-fields", "", "b", "", [{name:"data-live-search", value:"true"}]) }} {% set title %}{% trans "Add a new background image?" %}{% endset %} {{ forms.button(title, "", "", "background-image-fields background-image-add-button", "backgroundAddButton") }}
{% set title %}{% trans "Resolution" %}{% endset %} {% set helpText %}{% trans "Change the resolution" %}{% endset %} {{ forms.dropdown("resolutionId", "single", title, resolution.resolutionId, resolutions, "resolutionId", "resolution", helpText, "resolution-group") }} {% set title %}{% trans "Layer" %}{% endset %} {% set helpText %}{% trans "The layering order of the background image (z-index). Advanced use only." %}{% endset %} {{ forms.input("backgroundzIndex", title, layout.backgroundzIndex, helpText) }}
{% trans
{% endblock %}