{% trans "Configuration" %}
{% if theme.isSettingVisible("LIBRARY_LOCATION") %}
{% set title %}{% trans "Library Location" %}{% endset %}
{% set helpText %}{% trans "The fully qualified path to the CMS library location." %}{% endset %}
{% if theme.isSettingEditable("LIBRARY_LOCATION") %}
{{ forms.input("LIBRARY_LOCATION", title, theme.getSetting("LIBRARY_LOCATION"), helpText, "required") }}
{% else %}
{{ forms.disabled("LIBRARY_LOCATION", title, theme.getSetting("LIBRARY_LOCATION"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SERVER_KEY") %}
{% set title %}{% trans "CMS Secret Key" %}{% endset %}
{% set helpText %}{% trans "This key must be entered into each Player to authenticate the Player with the CMS." %}{% endset %}
{% if theme.isSettingEditable("SERVER_KEY") %}
{{ forms.input("SERVER_KEY", title, theme.getSetting("SERVER_KEY"), helpText, "required") }}
{% else %}
{{ forms.disabled("SERVER_KEY", title, theme.getSetting("SERVER_KEY"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("GLOBAL_THEME_NAME") %}
{% set title %}{% trans "CMS Theme" %}{% endset %}
{% set helpText %}{% trans "The Theme to apply to all pages by default" %}{% endset %}
{% if theme.isSettingEditable("GLOBAL_THEME_NAME") %}
{% if hideThemes %}
{# Show a edit box #}
{{ forms.input("GLOBAL_THEME_NAME", title, theme.getSetting("GLOBAL_THEME_NAME"), helpText) }}
{% else %}
{{ forms.dropdown("GLOBAL_THEME_NAME", "single", title, theme.getSetting("GLOBAL_THEME_NAME"), themes, "id", "value", helpText) }}
{% endif %}
{% else %}
{{ forms.disabled("GLOBAL_THEME_NAME", title, theme.getSetting("GLOBAL_THEME_NAME"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("NAVIGATION_MENU_POSITION") %}
{% set title %}{% trans "Navigation Menu" %}{% endset %}
{% set helpText %}{% trans "Select where the Navigation Menu should be positioned by default. Users can set an alternate view in their Preferences under their User Profile." %}{% endset %}
{% set horizontalOption %}{% trans "Horizontal along the top" %}{% endset %}
{% set verticalOption %}{% trans "Vertically on the left" %}{% endset %}
{% set options = [
{ id: "horizontal", value: horizontalOption },
{ id: "vertical", value: verticalOption }
] %}
{% if theme.isSettingEditable("NAVIGATION_MENU_POSITION") %}
{{ forms.dropdown("NAVIGATION_MENU_POSITION", "single", title, theme.getSetting("NAVIGATION_MENU_POSITION", "vertical"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("NAVIGATION_MENU_POSITION", title, theme.getSetting("NAVIGATION_MENU_POSITION", "vertical"), helpText) }}
{% endif %}
{% endif %}
{% trans "Defaults" %}
{% if theme.isSettingVisible("LIBRARY_MEDIA_UPDATEINALL_CHECKB") %}
{% set title %}{% trans "Default update media in all layouts" %}{% endset %}
{% set helpText %}{% trans "Default the checkbox for updating media on all layouts when editing in the library" %}{% endset %}
{{ forms.checkbox("LIBRARY_MEDIA_UPDATEINALL_CHECKB", title, theme.getSetting("LIBRARY_MEDIA_UPDATEINALL_CHECKB"), helpText, "", "", not theme.isSettingEditable("LIBRARY_MEDIA_UPDATEINALL_CHECKB")) }}
{% endif %}
{% if theme.isSettingVisible("LAYOUT_COPY_MEDIA_CHECKB") %}
{% set title %}{% trans "Default copy media when copying a layout?" %}{% endset %}
{% set helpText %}{% trans "Default the checkbox for making duplicates of media when copying layouts" %}{% endset %}
{{ forms.checkbox("LAYOUT_COPY_MEDIA_CHECKB", title, theme.getSetting("LAYOUT_COPY_MEDIA_CHECKB"), helpText, "", "", not theme.isSettingEditable("LIBRARY_MEDIA_UPDATEINALL_CHECKB")) }}
{% endif %}
{% if theme.isSettingVisible("LIBRARY_MEDIA_DELETEOLDVER_CHECKB") %}
{% set title %}{% trans "Default for \"Delete old version of Media\" checkbox. Shown when Editing Library Media." %}{% endset %}
{% set helpText %}{% trans "Default the checkbox for Deleting Old Version of media when a new file is being uploaded to the library." %}{% endset %}
{{ forms.checkbox("LIBRARY_MEDIA_DELETEOLDVER_CHECKB", title, theme.getSetting("LIBRARY_MEDIA_DELETEOLDVER_CHECKB"), helpText, "", "", not theme.isSettingEditable("LIBRARY_MEDIA_UPDATEINALL_CHECKB")) }}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_LAYOUT_AUTO_PUBLISH_CHECKB") %}
{% set title %}{% trans "Should Layouts be automatically Published?" %}{% endset %}
{% set helpText %}{% trans "When enabled draft Layouts will be automatically published 30 minutes after the last edit" %}{% endset %}
{{ forms.checkbox("DEFAULT_LAYOUT_AUTO_PUBLISH_CHECKB", title, theme.getSetting("DEFAULT_LAYOUT_AUTO_PUBLISH_CHECKB"), helpText, "", "", not theme.isSettingEditable("DEFAULT_LAYOUT_AUTO_PUBLISH_CHECKB")) }}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_TRANSITION_IN") %}
{% set title %}{% trans "Default Transition In" %}{% endset %}
{% set helpText %}{% trans "Default Transition In that should be applied to widgets" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_TRANSITION_IN") %}
{% set attributes = [
{ name: "data-width", value: "100%" },
{ name: "data-search-url", value: url_for("transition.search") },
{ name: "data-search-term", value: "transition" },
{ name: "data-id-property", value: "code" },
{ name: "data-text-property", value: "transition" },
{ name: "data-filter-options", value: '{"availableAsIn":"1"}' },
] %}
{{ forms.dropdown("DEFAULT_TRANSITION_IN", "single", title, theme.getSetting("DEFAULT_TRANSITION_IN"), [defaultTransitionIn], "code", "transition", helpText, "pagedSelect", "", "", "", attributes) }}
{% else %}
{{ forms.disabled("DEFAULT_TRANSITION_IN", title, theme.getSetting("DEFAULT_TRANSITION_IN"), "") }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_TRANSITION_OUT") %}
{% set title %}{% trans "Default Transition Out" %}{% endset %}
{% set helpText %}{% trans "Default Transition Out that should be applied to widgets" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_TRANSITION_OUT") %}
{% set attributes = [
{ name: "data-width", value: "100%" },
{ name: "data-search-url", value: url_for("transition.search") },
{ name: "data-search-term", value: "transition" },
{ name: "data-id-property", value: "code" },
{ name: "data-text-property", value: "transition" },
{ name: "data-filter-options", value: '{"availableAsOut":"1"}' },
] %}
{{ forms.dropdown("DEFAULT_TRANSITION_OUT", "single", title, theme.getSetting("DEFAULT_TRANSITION_OUT"), [defaultTransitionOut], "code", "transition", helpText, "pagedSelect", "", "", "", attributes) }}
{% else %}
{{ forms.disabled("DEFAULT_TRANSITION_OUT", title, theme.getSetting("DEFAULT_TRANSITION_OUT"), "") }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_TRANSITION_DURATION") %}
{% set title %}{% trans "Default Transition duration" %}{% endset %}
{% set helpText %}{% trans "Default duration for in and out transitions" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_TRANSITION_DURATION") %}
{{ forms.number("DEFAULT_TRANSITION_DURATION", title, theme.getSetting("DEFAULT_TRANSITION_DURATION", 0), helpText) }}
{% else %}
{{ forms.disabled("DEFAULT_TRANSITION_DURATION", title, theme.getSetting("DEFAULT_TRANSITION_DURATION", 0), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_TRANSITION_AUTO_APPLY") %}
{% set title %}{% trans "Default value for \"Automatically apply Transitions?.\" checkbox on Layout add form" %}{% endset %}
{{ forms.checkbox("DEFAULT_TRANSITION_AUTO_APPLY", title, theme.getSetting("DEFAULT_TRANSITION_AUTO_APPLY"), "", "", "", not theme.isSettingEditable("DEFAULT_TRANSITION_AUTO_APPLY")) }}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_RESIZE_THRESHOLD") %}
{% set title %}{% trans "Resize Threshold" %}{% endset %}
{% set helpText %}{% trans "The maximum dimensions to be considered when an image is resized, based on the longest side" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_RESIZE_THRESHOLD") %}
{{ forms.number("DEFAULT_RESIZE_THRESHOLD", title, theme.getSetting("DEFAULT_RESIZE_THRESHOLD", 0), helpText) }}
{% else %}
{{ forms.disabled("DEFAULT_RESIZE_THRESHOLD", title, theme.getSetting("DEFAULT_RESIZE_THRESHOLD", 0), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_RESIZE_LIMIT") %}
{% set title %}{% trans "Resize Limit" %}{% endset %}
{% set helpText %}{% trans "Images that exceed the resize limit, based on the longest side, will not be processed" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_RESIZE_LIMIT") %}
{{ forms.number("DEFAULT_RESIZE_LIMIT", title, theme.getSetting("DEFAULT_RESIZE_LIMIT", 0), helpText) }}
{% else %}
{{ forms.disabled("DEFAULT_RESIZE_LIMIT", title, theme.getSetting("DEFAULT_RESIZE_LIMIT", 0), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DATASET_HARD_ROW_LIMIT") %}
{% set title %}{% trans "DataSet maximum number of Rows" %}{% endset %}
{% set helpText %}{% trans "The maximum number of rows per DataSet, once the limit is met the limit policy defined per DataSet will dictate further action." %}{% endset %}
{% if theme.isSettingEditable("DATASET_HARD_ROW_LIMIT") %}
{{ forms.number("DATASET_HARD_ROW_LIMIT", title, theme.getSetting("DATASET_HARD_ROW_LIMIT", 0), helpText) }}
{% else %}
{{ forms.disabled("DATASET_HARD_ROW_LIMIT", title, theme.getSetting("DATASET_HARD_ROW_LIMIT", 0), helpText) }}
{% endif %}
{% endif %}
{% trans "Displays" %}
{% if theme.isSettingVisible("DEFAULT_LAYOUT") %}
{% set title %}{% trans "Default Layout" %}{% endset %}
{% set helpText %}{% trans "The default layout to assign for new displays and displays which have their current default deleted." %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_LAYOUT") %}
{% set attributes = [
{ name: "data-width", value: "100%" },
{ name: "data-search-url", value: url_for("layout.search") },
{ name: "data-search-term", value: "layout" },
{ name: "data-search-term-tags", value: "tags" },
{ name: "data-id-property", value: "layoutId" },
{ name: "data-text-property", value: "layout" },
{ name: "data-filter-options", value: '{"retired":"0"}' }
] %}
{{ forms.dropdown("DEFAULT_LAYOUT", "single", title, defaultLayout.layoutId, [defaultLayout], "layoutId", "layout", helpText, "pagedSelect", "", "", "", attributes) }}
{% else %}
{{ forms.disabled("DEFAULT_LAYOUT", title, theme.getSetting("DEFAULT_LAYOUT"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("XMR_ADDRESS") %}
{% set title %}{% trans "XMR Private Address" %}{% endset %}
{% set helpText %}{% trans "Please enter the private address for XMR." %}{% endset %}
{% if theme.isSettingEditable("XMR_ADDRESS") %}
{{ forms.input("XMR_ADDRESS", title, theme.getSetting("XMR_ADDRESS", "tcp:://localhost:5555"), helpText, "required") }}
{% else %}
{{ forms.disabled("XMR_ADDRESS", title, theme.getSetting("XMR_ADDRESS", "tcp:://localhost:5555"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("XMR_PUB_ADDRESS") %}
{% set title %}{% trans "XMR Public Address" %}{% endset %}
{% set helpText %}{% trans "Please enter the public address for XMR." %}{% endset %}
{% if theme.isSettingEditable("XMR_PUB_ADDRESS") %}
{{ forms.input("XMR_PUB_ADDRESS", title, theme.getSetting("XMR_PUB_ADDRESS"), helpText) }}
{% else %}
{{ forms.disabled("XMR_PUB_ADDRESS", title, theme.getSetting("XMR_PUB_ADDRESS"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_LAT") %}
{% set title %}{% trans "Default Latitude" %}{% endset %}
{% set helpText %}{% trans "The Latitude to apply for any Geo aware Previews" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_LAT") %}
{{ forms.input("DEFAULT_LAT", title, theme.getSetting("DEFAULT_LAT", "51.504"), helpText, "required") }}
{% else %}
{{ forms.disabled("DEFAULT_LAT", title, theme.getSetting("DEFAULT_LAT", "51.504"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_LONG") %}
{% set title %}{% trans "Default Longitude" %}{% endset %}
{% set helpText %}{% trans "The longitude to apply for any Geo aware Previews" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_LONG") %}
{{ forms.input("DEFAULT_LONG", title, theme.getSetting("DEFAULT_LONG", "-0.104"), helpText, "required") }}
{% else %}
{{ forms.disabled("DEFAULT_LONG", title, theme.getSetting("DEFAULT_LONG", "-0.104"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SHOW_DISPLAY_AS_VNCLINK") %}
{% set title %}{% trans "Add a link to the Display name using this format mask?" %}{% endset %}
{% set helpText %}{% trans "Turn the display name in display management into a link using the IP address last collected. The %s is replaced with the IP address. Leave blank to disable." %}{% endset %}
{% if theme.isSettingEditable("SHOW_DISPLAY_AS_VNCLINK") %}
{{ forms.input("SHOW_DISPLAY_AS_VNCLINK", title, theme.getSetting("SHOW_DISPLAY_AS_VNCLINK"), helpText) }}
{% else %}
{{ forms.disabled("SHOW_DISPLAY_AS_VNCLINK", title, theme.getSetting("SHOW_DISPLAY_AS_VNCLINK"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SHOW_DISPLAY_AS_VNC_TGT") %}
{% set title %}{% trans "The target attribute for the above link" %}{% endset %}
{% set helpText %}{% trans "If the display name is shown as a link in display management, what target should the link have? Set _top to open the link in the same window or _blank to open in a new window." %}{% endset %}
{% if theme.isSettingEditable("SHOW_DISPLAY_AS_VNC_TGT") %}
{{ forms.input("SHOW_DISPLAY_AS_VNC_TGT", title, theme.getSetting("SHOW_DISPLAY_AS_VNC_TGT", "_top"), helpText) }}
{% else %}
{{ forms.disabled("SHOW_DISPLAY_AS_VNC_TGT", title, theme.getSetting("SHOW_DISPLAY_AS_VNC_TGT", "_top"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("MAX_LICENSED_DISPLAYS") %}
{% set title %}{% trans "Number of display slots" %}{% endset %}
{% set helpText %}{% trans "The maximum number of licensed Players for this server installation. 0 = unlimited" %}{% endset %}
{% if theme.isSettingEditable("MAX_LICENSED_DISPLAYS") %}
{{ forms.number("MAX_LICENSED_DISPLAYS", title, theme.getSetting("MAX_LICENSED_DISPLAYS", 0), helpText) }}
{% else %}
{{ forms.disabled("MAX_LICENSED_DISPLAYS", title, theme.getSetting("MAX_LICENSED_DISPLAYS", 0), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_PROFILE_AGGREGATION_LEVEL_DEFAULT") %}
{% set title %}{% trans "Aggregation level" %}{% endset %}
{% set helpText %}{% trans "Set the Default setting to use for the level of collection for Proof of Play Statistics to be applied to Layouts / Media and Widget items." %}{% endset %}
{% set individualOption %}{% trans "Individual" %}{% endset %}
{% set hourlyOption %}{% trans "Hourly" %}{% endset %}
{% set dailyOption %}{% trans "Daily" %}{% endset %}
{% set options = [
{ id: "Individual", value: individualOption },
{ id: "Hourly", value: hourlyOption },
{ id: "Daily", value: dailyOption }
] %}
{% if theme.isSettingEditable("DISPLAY_PROFILE_AGGREGATION_LEVEL_DEFAULT") %}
{{ forms.dropdown("DISPLAY_PROFILE_AGGREGATION_LEVEL_DEFAULT", "single", title, theme.getSetting("DISPLAY_PROFILE_AGGREGATION_LEVEL_DEFAULT"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("DISPLAY_PROFILE_AGGREGATION_LEVEL_DEFAULT", title, theme.getSetting("DISPLAY_PROFILE_AGGREGATION_LEVEL_DEFAULT"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_PROFILE_STATS_DEFAULT") %}
{% set title %}{% trans "Enable Stats Collection?" %}{% endset %}
{% set helpText %}{% trans "Set the Default Settings for Proof of Play statistics to apply to all Displays. This can be toggled off by using Display Profiles." %}{% endset %}
{{ forms.checkbox("DISPLAY_PROFILE_STATS_DEFAULT", title, theme.getSetting("DISPLAY_PROFILE_STATS_DEFAULT"), helpText, "", "", not theme.isSettingEditable("DISPLAY_PROFILE_STATS_DEFAULT")) }}
{% endif %}
{% if theme.isSettingVisible("LAYOUT_STATS_ENABLED_DEFAULT") %}
{% set title %}{% trans "Enable Layout Stats Collection?" %}{% endset %}
{% set helpText %}{% trans "Select the Default setting to use for the collection of Proof of Play statistics for all Layout Items." %}{% endset %}
{{ forms.checkbox("LAYOUT_STATS_ENABLED_DEFAULT", title, theme.getSetting("LAYOUT_STATS_ENABLED_DEFAULT"), helpText, "", "", not theme.isSettingEditable("LAYOUT_STATS_ENABLED_DEFAULT")) }}
{% endif %}
{% if theme.isSettingVisible("MEDIA_STATS_ENABLED_DEFAULT") %}
{% set title %}{% trans "Enable Media Stats Collection?" %}{% endset %}
{% set helpText %}{% trans "Select the Default setting to use for the collection of Proof of Play statistics for all Media Items." %}{% endset %}
{% set offOption %}{% trans "Off" %}{% endset %}
{% set onOption %}{% trans "On" %}{% endset %}
{% set inheritOption %}{% trans "Inherit" %}{% endset %}
{% set options = [
{ id: "Off", value: offOption },
{ id: "On", value: onOption },
{ id: "Inherit", value: inheritOption }
] %}
{% if theme.isSettingEditable("MEDIA_STATS_ENABLED_DEFAULT") %}
{{ forms.dropdown("MEDIA_STATS_ENABLED_DEFAULT", "single", title, theme.getSetting("MEDIA_STATS_ENABLED_DEFAULT"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("MEDIA_STATS_ENABLED_DEFAULT", title, theme.getSetting("MEDIA_STATS_ENABLED_DEFAULT"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PLAYLIST_STATS_ENABLED_DEFAULT") %}
{% set title %}{% trans "Enable Playlist Stats Collection?" %}{% endset %}
{% set helpText %}{% trans "Select the Default setting to use for the collection of Proof of Play statistics for all Playlists." %}{% endset %}
{% set offOption %}{% trans "Off" %}{% endset %}
{% set onOption %}{% trans "On" %}{% endset %}
{% set inheritOption %}{% trans "Inherit" %}{% endset %}
{% set options = [
{ id: "Off", value: offOption },
{ id: "On", value: onOption },
{ id: "Inherit", value: inheritOption }
] %}
{% if theme.isSettingEditable("PLAYLIST_STATS_ENABLED_DEFAULT") %}
{{ forms.dropdown("PLAYLIST_STATS_ENABLED_DEFAULT", "single", title, theme.getSetting("PLAYLIST_STATS_ENABLED_DEFAULT"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("PLAYLIST_STATS_ENABLED_DEFAULT", title, theme.getSetting("PLAYLIST_STATS_ENABLED_DEFAULT"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("WIDGET_STATS_ENABLED_DEFAULT") %}
{% set title %}{% trans "Enable Widget Stats Collection?" %}{% endset %}
{% set helpText %}{% trans "Select the Default setting to use for the collection for Proof of Play statistics for all Widgets." %}{% endset %}
{% set offOption %}{% trans "Off" %}{% endset %}
{% set onOption %}{% trans "On" %}{% endset %}
{% set inheritOption %}{% trans "Inherit" %}{% endset %}
{% set options = [
{ id: "Off", value: offOption },
{ id: "On", value: onOption },
{ id: "Inherit", value: inheritOption }
] %}
{% if theme.isSettingEditable("WIDGET_STATS_ENABLED_DEFAULT") %}
{{ forms.dropdown("WIDGET_STATS_ENABLED_DEFAULT", "single", title, theme.getSetting("WIDGET_STATS_ENABLED_DEFAULT"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("WIDGET_STATS_ENABLED_DEFAULT", title, theme.getSetting("WIDGET_STATS_ENABLED_DEFAULT"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_PROFILE_CURRENT_LAYOUT_STATUS_ENABLED") %}
{% set title %}{% trans "Enable the option to report the current layout status?" %}{% endset %}
{{ forms.checkbox("DISPLAY_PROFILE_CURRENT_LAYOUT_STATUS_ENABLED", title, theme.getSetting("DISPLAY_PROFILE_CURRENT_LAYOUT_STATUS_ENABLED"), "", "", "", not theme.isSettingEditable("DISPLAY_PROFILE_CURRENT_LAYOUT_STATUS_ENABLED")) }}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_LOCK_NAME_TO_DEVICENAME") %}
{% set title %}{% trans "Lock the Display Name to the device name provided by the Player?" %}{% endset %}
{{ forms.checkbox("DISPLAY_LOCK_NAME_TO_DEVICENAME", title, theme.getSetting("DISPLAY_LOCK_NAME_TO_DEVICENAME"), "", "", "", not theme.isSettingEditable("DISPLAY_LOCK_NAME_TO_DEVICENAME")) }}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_PROFILE_SCREENSHOT_INTERVAL_ENABLED") %}
{% set title %}{% trans "Enable the option to set the screenshot interval?" %}{% endset %}
{{ forms.checkbox("DISPLAY_PROFILE_SCREENSHOT_INTERVAL_ENABLED", title, theme.getSetting("DISPLAY_PROFILE_SCREENSHOT_INTERVAL_ENABLED"), "", "", "", not theme.isSettingEditable("DISPLAY_PROFILE_SCREENSHOT_INTERVAL_ENABLED")) }}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_PROFILE_SCREENSHOT_SIZE_DEFAULT") %}
{% set title %}{% trans "Display Screenshot Default Size" %}{% endset %}
{% set helpText %}{% trans "The default size in pixels for the Display Screenshots" %}{% endset %}
{% if theme.isSettingEditable("DISPLAY_PROFILE_SCREENSHOT_SIZE_DEFAULT") %}
{{ forms.number("DISPLAY_PROFILE_SCREENSHOT_SIZE_DEFAULT", title, theme.getSetting("DISPLAY_PROFILE_SCREENSHOT_SIZE_DEFAULT", 200), helpText) }}
{% else %}
{{ forms.disabled("DISPLAY_PROFILE_SCREENSHOT_SIZE_DEFAULT", title, theme.getSetting("DISPLAY_PROFILE_SCREENSHOT_SIZE_DEFAULT", 200), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_SCREENSHOT_TTL") %}
{% set title %}{% trans "Display screenshot Time to keep (days)" %}{% endset %}
{% set helpText %}{% trans "Display screenshots older than the TTL will be automatically removed. Set to 0 to never remove old screenshots." %}{% endset %}
{% if theme.isSettingEditable("DISPLAY_SCREENSHOT_TTL") %}
{{ forms.number("DISPLAY_SCREENSHOT_TTL", title, theme.getSetting("DISPLAY_SCREENSHOT_TTL", 0), helpText) }}
{% else %}
{{ forms.disabled("DISPLAY_SCREENSHOT_TTL", title, theme.getSetting("DISPLAY_SCREENSHOT_TTL", 0), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DISPLAY_AUTO_AUTH") %}
{% set title %}{% trans "Automatically authorise new Displays?" %}{% endset %}
{% set helpText %}{% trans "If checked all new Displays registering with the CMS using the correct CMS key will automatically be set to authorised and display the Default Layout." %}{% endset %}
{{ forms.checkbox("DISPLAY_AUTO_AUTH", title, theme.getSetting("DISPLAY_AUTO_AUTH", 0), helpText, "", "", not theme.isSettingEditable("DISPLAY_AUTO_AUTH")) }}
{% endif %}
{% trans "General" %}
{% if theme.isSettingVisible("HELP_BASE") %}
{% set title %}{% trans "Location of the Manual" %}{% endset %}
{% set helpText %}{% trans "The address of the user manual, which will be used as a prefix for all help links." %}{% endset %}
{% if theme.isSettingEditable("HELP_BASE") %}
{{ forms.input("HELP_BASE", title, theme.getSetting("HELP_BASE", "https://xibo.org.uk/manual/"), helpText, "required") }}
{% else %}
{{ forms.disabled("HELP_BASE", title, theme.getSetting("HELP_BASE", "https://xibo.org.uk/manual/"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("QUICK_CHART_URL") %}
{% set title %}{% trans "Quick Chart URL" %}{% endset %}
{% set helpText %}{% trans "Enter the URL to a Quick Chart service. This is used to draw charts in emailed reports and for showing a QR code during two factor authentication." %}{% endset %}
{% if theme.isSettingEditable("QUICK_CHART_URL") %}
{{ forms.input("QUICK_CHART_URL", title, theme.getSetting("QUICK_CHART_URL", "https://quickchart.io"), helpText, "required") }}
{% else %}
{{ forms.disabled("QUICK_CHART_URL", title, theme.getSetting("QUICK_CHART_URL", "https://quickchart.io"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PHONE_HOME") %}
{% set title %}{% trans "Allow usage tracking?" %}{% endset %}
{% set helpText %}{% trans "Should the CMS send anonymous statistics to help improve the software?" %}{% endset %}
{{ forms.checkbox("PHONE_HOME", title, theme.getSetting("PHONE_HOME"), helpText, "", "", not theme.isSettingEditable("PHONE_HOME")) }}
{% endif %}
{% if theme.isSettingVisible("PHONE_HOME_KEY") %}
{% set title %}{% trans "Phone home key" %}{% endset %}
{% set helpText %}{% trans "Key used to distinguish each CMS instance. This is generated randomly based on the time you first installed the CMS, and is completely untraceable." %}{% endset %}
{% if theme.isSettingEditable("PHONE_HOME_KEY") %}
{{ forms.input("PHONE_HOME_KEY", title, theme.getSetting("PHONE_HOME_KEY"), helpText) }}
{% else %}
{{ forms.disabled("PHONE_HOME_KEY", title, theme.getSetting("PHONE_HOME_KEY"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PHONE_HOME_DATE") %}
{% set title %}{% trans "Phone home time" %}{% endset %}
{% set helpText %}{% trans "The last time we PHONED_HOME in seconds since the epoch" %}{% endset %}
{% if theme.isSettingEditable("PHONE_HOME_DATE") %}
{{ forms.input("PHONE_HOME_DATE", title, theme.getSetting("PHONE_HOME_DATE"), helpText) }}
{% else %}
{{ forms.disabled("PHONE_HOME_DATE", title, theme.getSetting("PHONE_HOME_DATE"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PHONE_HOME_URL") %}
{% set title %}{% trans "Phone home URL" %}{% endset %}
{% set helpText %}{% trans "The URL to connect to to PHONE_HOME (if enabled)" %}{% endset %}
{% if theme.isSettingEditable("PHONE_HOME_URL") %}
{{ forms.input("PHONE_HOME_URL", title, theme.getSetting("PHONE_HOME_URL", "http://www.xibo.org.uk/stats/track.php"), helpText) }}
{% else %}
{{ forms.disabled("PHONE_HOME_URL", title, theme.getSetting("PHONE_HOME_URL", "http://www.xibo.org.uk/stats/track.php"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SCHEDULE_LOOKAHEAD") %}
{% set title %}{% trans "Send Schedule in advance?" %}{% endset %}
{% set helpText %}{% trans "Should the CMS send future schedule information to Players?" %}{% endset %}
{{ forms.checkbox("SCHEDULE_LOOKAHEAD", title, theme.getSetting("SCHEDULE_LOOKAHEAD", 1), helpText, "", "", not theme.isSettingEditable("SCHEDULE_LOOKAHEAD")) }}
{% endif %}
{% if theme.isSettingVisible("EVENT_SYNC") %}
{% set title %}{% trans "Show Synchronise this Event checkbox on applicable events?" %}{% endset %}
{% set helpText %}{% trans "If checked you will have an option to enable Synchronise this Event checkbox for applicable events" %}{% endset %}
{{ forms.checkbox("EVENT_SYNC", title, theme.getSetting("EVENT_SYNC", 0), helpText, "", "", not theme.isSettingEditable("EVENT_SYNC")) }}
{% endif %}
{% if theme.isSettingVisible("REQUIRED_FILES_LOOKAHEAD") %}
{% set title %}{% trans "Send files in advance?" %}{% endset %}
{% set helpText %}{% trans "How many seconds in to the future should the calls to RequiredFiles look?" %}{% endset %}
{% if theme.isSettingEditable("REQUIRED_FILES_LOOKAHEAD") %}
{{ forms.number("REQUIRED_FILES_LOOKAHEAD", title, theme.getSetting("REQUIRED_FILES_LOOKAHEAD", "172800"), helpText) }}
{% else %}
{{ forms.disabled("REQUIRED_FILES_LOOKAHEAD", title, theme.getSetting("REQUIRED_FILES_LOOKAHEAD", "172800"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SETTING_IMPORT_ENABLED") %}
{% set title %}{% trans "Allow Import?" %}{% endset %}
{{ forms.checkbox("SETTING_IMPORT_ENABLED", title, theme.getSetting("SETTING_IMPORT_ENABLED", 0), "", "", "", not theme.isSettingEditable("SETTING_IMPORT_ENABLED")) }}
{% endif %}
{% if theme.isSettingVisible("SETTING_LIBRARY_TIDY_ENABLED") %}
{% set title %}{% trans "Enable Library Tidy?" %}{% endset %}
{{ forms.checkbox("SETTING_LIBRARY_TIDY_ENABLED", title, theme.getSetting("SETTING_LIBRARY_TIDY_ENABLED", 1), "", "", "", not theme.isSettingEditable("SETTING_LIBRARY_TIDY_ENABLED")) }}
{% endif %}
{% if theme.isSettingVisible("EMBEDDED_STATUS_WIDGET") %}
{% set title %}{% trans "Status Dashboard Widget" %}{% endset %}
{% set helpText %}{% trans "HTML to embed in an iframe on the Status Dashboard" %}{% endset %}
{% if theme.isSettingEditable("EMBEDDED_STATUS_WIDGET") %}
{{ forms.input("EMBEDDED_STATUS_WIDGET", title, theme.getSetting("EMBEDDED_STATUS_WIDGET"), helpText) }}
{% else %}
{{ forms.disabled("EMBEDDED_STATUS_WIDGET", title, theme.getSetting("EMBEDDED_STATUS_WIDGET"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULTS_IMPORTED") %}
{% set title %}{% trans "Defaults Imported?" %}{% endset %}
{% set helpText %}{% trans "Has the default layout been imported?" %}{% endset %}
{{ forms.checkbox("DEFAULTS_IMPORTED", title, theme.getSetting("DEFAULTS_IMPORTED", 0), helpText, "", "", not theme.isSettingEditable("DEFAULTS_IMPORTED")) }}
{% endif %}
{% if theme.isSettingVisible("DASHBOARD_LATEST_NEWS_ENABLED") %}
{% set title %}{% trans "Enable Latest News?" %}{% endset %}
{% set helpText %}{% trans "Should the Dashboard show latest news? The address is provided by the theme." %}{% endset %}
{{ forms.checkbox("DASHBOARD_LATEST_NEWS_ENABLED", title, theme.getSetting("DASHBOARD_LATEST_NEWS_ENABLED", 1), helpText, "", "", not theme.isSettingEditable("DASHBOARD_LATEST_NEWS_ENABLED")) }}
{% endif %}
{% if theme.isSettingVisible("INSTANCE_SUSPENDED") %}
{% set title %}{% trans "Instance Suspended" %}{% endset %}
{% set helpText %}{% trans "Is this instance suspended?" %}{% endset %}
{{ forms.checkbox("INSTANCE_SUSPENDED", title, theme.getSetting("INSTANCE_SUSPENDED", 0), helpText, "", "", not theme.isSettingEditable("INSTANCE_SUSPENDED")) }}
{% endif %}
{% if theme.isSettingVisible("LATEST_NEWS_URL") %}
{% set title %}{% trans "Latest News URL" %}{% endset %}
{% set helpText %}{% trans "RSS/Atom Feed to be displayed on the Status Dashboard" %}{% endset %}
{% if theme.isSettingEditable("LATEST_NEWS_URL") %}
{{ forms.input("LATEST_NEWS_URL", title, theme.getSetting("LATEST_NEWS_URL"), helpText) }}
{% else %}
{{ forms.disabled("LATEST_NEWS_URL", title, theme.getSetting("LATEST_NEWS_URL"), helpText) }}
{% endif %}
{% endif %}
{% trans "Maintenance" %}
{% if theme.isSettingVisible("MAINTENANCE_ENABLED") %}
{% set title %}{% trans "Enable Maintenance?" %}{% endset %}
{% set helpText %}{% trans "Allow the maintenance script to run if it is called?" %}{% endset %}
{% set offOption %}{% trans "Off" %}{% endset %}
{% set onOption %}{% trans "On" %}{% endset %}
{% set protectedOption %}{% trans "Protected" %}{% endset %}
{% set options = [
{ id: "Off", value: offOption },
{ id: "On", value: onOption },
{ id: "Protected", value: protectedOption }
] %}
{% if theme.isSettingEditable("MAINTENANCE_ENABLED") %}
{{ forms.dropdown("MAINTENANCE_ENABLED", "single", title, theme.getSetting("MAINTENANCE_ENABLED", "Off"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("MAINTENANCE_ENABLED", title, theme.getSetting("MAINTENANCE_ENABLED", "Off"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("MAINTENANCE_EMAIL_ALERTS") %}
{% set title %}{% trans "Enable Email Alerts?" %}{% endset %}
{% set helpText %}{% trans "Global switch for email alerts to be sent" %}{% endset %}
{{ forms.checkbox("MAINTENANCE_EMAIL_ALERTS", title, theme.getSetting("MAINTENANCE_EMAIL_ALERTS", 1), helpText, "", "", not theme.isSettingEditable("MAINTENANCE_EMAIL_ALERTS")) }}
{% endif %}
{% if theme.isSettingVisible("MAINTENANCE_KEY") %}
{% set title %}{% trans "Maintenance Key" %}{% endset %}
{% set helpText %}{% trans "String appended to the maintenance script to prevent malicious calls to the script." %}{% endset %}
{% if theme.isSettingEditable("MAINTENANCE_KEY") %}
{{ forms.input("MAINTENANCE_KEY", title, theme.getSetting("MAINTENANCE_KEY", "changeme"), helpText) }}
{% else %}
{{ forms.disabled("MAINTENANCE_KEY", title, theme.getSetting("MAINTENANCE_KEY", "changeme"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("MAINTENANCE_LOG_MAXAGE") %}
{% set title %}{% trans "Max Log Age" %}{% endset %}
{% set helpText %}{% trans "Maximum age for log entries in days. Set to 0 to keep logs indefinitely." %}{% endset %}
{% if theme.isSettingEditable("MAINTENANCE_LOG_MAXAGE") %}
{{ forms.number("MAINTENANCE_LOG_MAXAGE", title, theme.getSetting("MAINTENANCE_LOG_MAXAGE", 30), helpText) }}
{% else %}
{{ forms.disabled("MAINTENANCE_LOG_MAXAGE", title, theme.getSetting("MAINTENANCE_LOG_MAXAGE", 30), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("MAINTENANCE_STAT_MAXAGE") %}
{% set title %}{% trans "Max Statistics Age" %}{% endset %}
{% set helpText %}{% trans "Maximum age for statistics entries in days. Entries older than this will not be processed and existing entries will be removed. Set to 0 to keep statistics indefinitely." %}{% endset %}
{% if theme.isSettingEditable("MAINTENANCE_STAT_MAXAGE") %}
{{ forms.number("MAINTENANCE_STAT_MAXAGE", title, theme.getSetting("MAINTENANCE_STAT_MAXAGE", 30), helpText) }}
{% else %}
{{ forms.disabled("MAINTENANCE_STAT_MAXAGE", title, theme.getSetting("MAINTENANCE_STAT_MAXAGE", 30), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("MAINTENANCE_ALERT_TOUT") %}
{% set title %}{% trans "Max Display Timeout" %}{% endset %}
{% set helpText %}{% trans "How long in minutes after the last time a Player connects should we send an alert? Can be overridden on a per Player basis." %}{% endset %}
{% if theme.isSettingEditable("MAINTENANCE_ALERT_TOUT") %}
{{ forms.number("MAINTENANCE_ALERT_TOUT", title, theme.getSetting("MAINTENANCE_ALERT_TOUT", 12), helpText) }}
{% else %}
{{ forms.disabled("MAINTENANCE_ALERT_TOUT", title, theme.getSetting("MAINTENANCE_ALERT_TOUT", 12), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("MAINTENANCE_ALWAYS_ALERT") %}
{% set title %}{% trans "Send repeat Display Timeouts" %}{% endset %}
{% set helpText %}{% trans "Should the CMS send an email if a display is in an error state every time maintenance runs?" %}{% endset %}
{{ forms.checkbox("MAINTENANCE_ALWAYS_ALERT", title, theme.getSetting("MAINTENANCE_ALWAYS_ALERT", 0), helpText, "", "", not theme.isSettingEditable("MAINTENANCE_ALWAYS_ALERT")) }}
{% endif %}
{% trans "Network" %}
{% if theme.isSettingVisible("mail_to") %}
{% set title %}{% trans "Admin email address" %}{% endset %}
{% set helpText %}{% trans "This is the overall CMS adminstrator who will receive copies of all email notifications generated by the CMS." %}{% endset %}
{% if theme.isSettingEditable("mail_to") %}
{{ forms.input("mail_to", title, theme.getSetting("mail_to"), helpText) }}
{% else %}
{{ forms.disabled("mail_to", title, theme.getSetting("mail_to"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("mail_from") %}
{% set title %}{% trans "Sending email address" %}{% endset %}
{% set helpText %}{% trans "Mail will be sent from this address" %}{% endset %}
{% if theme.isSettingEditable("mail_from") %}
{{ forms.input("mail_from", title, theme.getSetting("mail_from"), helpText) }}
{% else %}
{{ forms.disabled("mail_from", title, theme.getSetting("mail_from"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("mail_from_name") %}
{% set title %}{% trans "Sending email name" %}{% endset %}
{% set helpText %}{% trans "Mail will be sent under this name" %}{% endset %}
{% if theme.isSettingEditable("mail_from_name") %}
{{ forms.input("mail_from_name", title, theme.getSetting("mail_from_name"), helpText) }}
{% else %}
{{ forms.disabled("mail_from_name", title, theme.getSetting("mail_from_name"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SENDFILE_MODE") %}
{% set title %}{% trans "File download mode" %}{% endset %}
{% set helpText %}{% trans "Should the CMS use Apache X-Sendfile, Nginx X-Accel, or PHP (Off) to return the files from the library?" %}{% endset %}
{% set offOption %}{% trans "Off" %}{% endset %}
{% set options = [
{ id: "Off", value: offOption },
{ id: "Apache", value: "Apache" },
{ id: "Nginx", value: "Nginx" }
] %}
{% if theme.isSettingEditable("SENDFILE_MODE") %}
{{ forms.dropdown("SENDFILE_MODE", "single", title, theme.getSetting("SENDFILE_MODE", "Off"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("SENDFILE_MODE", title, theme.getSetting("SENDFILE_MODE", "Off"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PROXY_HOST") %}
{% set title %}{% trans "Proxy URL" %}{% endset %}
{% set helpText %}{% trans "The Proxy URL" %}{% endset %}
{% if theme.isSettingEditable("PROXY_HOST") %}
{{ forms.input("PROXY_HOST", title, theme.getSetting("PROXY_HOST"), helpText) }}
{% else %}
{{ forms.disabled("PROXY_HOST", title, theme.getSetting("PROXY_HOST"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PROXY_PORT") %}
{% set title %}{% trans "Proxy Port" %}{% endset %}
{% set helpText %}{% trans "The Proxy Port" %}{% endset %}
{% if theme.isSettingEditable("PROXY_PORT") %}
{{ forms.number("PROXY_PORT", title, theme.getSetting("PROXY_PORT", 0), helpText) }}
{% else %}
{{ forms.disabled("PROXY_PORT", title, theme.getSetting("PROXY_PORT", 0), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PROXY_AUTH") %}
{% set title %}{% trans "Proxy Credentials" %}{% endset %}
{% set helpText %}{% trans "The Authentication information for this proxy. username:password" %}{% endset %}
{% if theme.isSettingEditable("PROXY_AUTH") %}
{{ forms.input("PROXY_AUTH", title, theme.getSetting("PROXY_AUTH"), helpText) }}
{% else %}
{{ forms.disabled("PROXY_AUTH", title, theme.getSetting("PROXY_AUTH"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PROXY_EXCEPTIONS") %}
{% set title %}{% trans "Proxy Exceptions" %}{% endset %}
{% set helpText %}{% trans "Hosts and Keywords that should not be loaded via the Proxy Specified. These should be comma separated." %}{% endset %}
{% if theme.isSettingEditable("PROXY_EXCEPTIONS") %}
{{ forms.input("PROXY_EXCEPTIONS", title, theme.getSetting("PROXY_EXCEPTIONS"), helpText) }}
{% else %}
{{ forms.disabled("PROXY_EXCEPTIONS", title, theme.getSetting("PROXY_EXCEPTIONS"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("CDN_URL") %}
{% set title %}{% trans "CDN Address" %}{% endset %}
{% set helpText %}{% trans "Content Delivery Network Address for serving file requests to Players" %}{% endset %}
{% if theme.isSettingEditable("CDN_URL") %}
{{ forms.input("CDN_URL", title, theme.getSetting("CDN_URL"), helpText) }}
{% else %}
{{ forms.disabled("CDN_URL", title, theme.getSetting("CDN_URL"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("MONTHLY_XMDS_TRANSFER_LIMIT_KB") %}
{% set title %}{% trans "Monthly bandwidth Limit" %}{% endset %}
{% set helpText %}{% trans "XMDS Transfer Limit in KB/month" %}{% endset %}
{% if theme.isSettingEditable("MONTHLY_XMDS_TRANSFER_LIMIT_KB") %}
{{ forms.number("MONTHLY_XMDS_TRANSFER_LIMIT_KB", title, theme.getSetting("MONTHLY_XMDS_TRANSFER_LIMIT_KB"), helpText) }}
{% else %}
{{ forms.disabled("MONTHLY_XMDS_TRANSFER_LIMIT_KB", title, theme.getSetting("MONTHLY_XMDS_TRANSFER_LIMIT_KB"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("LIBRARY_SIZE_LIMIT_KB") %}
{% set title %}{% trans "Library Size Limit" %}{% endset %}
{% set helpText %}{% trans "The Limit for the Library Size in KB" %}{% endset %}
{% if theme.isSettingEditable("LIBRARY_SIZE_LIMIT_KB") %}
{{ forms.number("LIBRARY_SIZE_LIMIT_KB", title, theme.getSetting("LIBRARY_SIZE_LIMIT_KB"), helpText) }}
{% else %}
{{ forms.disabled("LIBRARY_SIZE_LIMIT_KB", title, theme.getSetting("LIBRARY_SIZE_LIMIT_KB"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("FORCE_HTTPS") %}
{% set title %}{% trans "Force HTTPS?" %}{% endset %}
{% set helpText %}{% trans "Force the portal into HTTPS?" %}{% endset %}
{{ forms.checkbox("FORCE_HTTPS", title, theme.getSetting("FORCE_HTTPS", 0), helpText, "", "", not theme.isSettingEditable("FORCE_HTTPS")) }}
{% endif %}
{% if theme.isSettingVisible("ISSUE_STS") %}
{% set title %}{% trans "Enable STS?" %}{% endset %}
{% set helpText %}{% trans "Add STS to the response headers? Make sure you fully understand STS before turning it on as it will prevent access via HTTP after the first successful HTTPS connection." %}{% endset %}
{{ forms.checkbox("ISSUE_STS", title, theme.getSetting("ISSUE_STS", 0), helpText, "", "", not theme.isSettingEditable("ISSUE_STS")) }}
{% endif %}
{% if theme.isSettingVisible("STS_TTL") %}
{% set title %}{% trans "STS Time out" %}{% endset %}
{% set helpText %}{% trans "The Time to Live (maxage) of the STS header expressed in seconds." %}{% endset %}
{% if theme.isSettingEditable("STS_TTL") %}
{{ forms.number("STS_TTL", title, theme.getSetting("STS_TTL", "600"), helpText, "", "", "", 999999999) }}
{% else %}
{{ forms.disabled("STS_TTL", title, theme.getSetting("STS_TTL", "600"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("WHITELIST_LOAD_BALANCERS") %}
{% set title %}{% trans "Whitelist Load Balancers" %}{% endset %}
{% set helpText %}{% trans "If the CMS is behind a load balancer, what are the load balancer IP addresses, comma delimited." %}{% endset %}
{% if theme.isSettingEditable("WHITELIST_LOAD_BALANCERS") %}
{{ forms.input("WHITELIST_LOAD_BALANCERS", title, theme.getSetting("WHITELIST_LOAD_BALANCERS"), helpText) }}
{% else %}
{{ forms.disabled("WHITELIST_LOAD_BALANCERS", title, theme.getSetting("WHITELIST_LOAD_BALANCERS"), helpText) }}
{% endif %}
{% endif %}
{% trans "Sharing" %}
{% if theme.isSettingVisible("REGION_OPTIONS_COLOURING") %}
{% set title %}{% trans "How to colour Media on the Region Timeline" %}{% endset %}
{% set privateOption %}{% trans "Media Colouring" %}{% endset %}
{% set groupOption %}{% trans "Sharing Colouring" %}{% endset %}
{% set options = [
{ id: "Media Colouring", value: privateOption },
{ id: "Sharing Colouring", value: groupOption }
] %}
{% if theme.isSettingEditable("REGION_OPTIONS_COLOURING") %}
{{ forms.dropdown("REGION_OPTIONS_COLOURING", "single", title, theme.getSetting("REGION_OPTIONS_COLOURING", "Media Colouring"), options, "id", "value") }}
{% else %}
{{ forms.disabled("REGION_OPTIONS_COLOURING", title, theme.getSetting("REGION_OPTIONS_COLOURING", "Media Colouring"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SCHEDULE_WITH_VIEW_PERMISSION") %}
{% set title %}{% trans "Schedule with view sharing?" %}{% endset %}
{% set helpText %}{% trans "Should users with View sharing on displays be allowed to schedule to them?" %}{% endset %}
{{ forms.checkbox("SCHEDULE_WITH_VIEW_PERMISSION", title, theme.getSetting("SCHEDULE_WITH_VIEW_PERMISSION", 0), helpText, "", "", not theme.isSettingEditable("SCHEDULE_WITH_VIEW_PERMISSION")) }}
{% endif %}
{% if theme.isSettingVisible("SCHEDULE_SHOW_LAYOUT_NAME") %}
{% set title %}{% trans "Show event Layout regardless of User permission?" %}{% endset %}
{% set helpText %}{% trans "If checked then the Schedule will show the Layout for existing events even if the logged in User does not have permission to see that Layout." %}{% endset %}
{{ forms.checkbox("SCHEDULE_SHOW_LAYOUT_NAME", title, theme.getSetting("SCHEDULE_SHOW_LAYOUT_NAME", 0), helpText, "", "", not theme.isSettingEditable("SCHEDULE_SHOW_LAYOUT_NAME")) }}
{% endif %}
{% if theme.isSettingVisible("MODULE_CONFIG_LOCKED_CHECKB") %}
{% set title %}{% trans "Lock Module Config" %}{% endset %}
{% set helpText %}{% trans "Is the module config locked? Useful for Service providers." %}{% endset %}
{{ forms.checkbox("MODULE_CONFIG_LOCKED_CHECKB", title, theme.getSetting("MODULE_CONFIG_LOCKED_CHECKB"), helpText, "", "", not theme.isSettingEditable("MODULE_CONFIG_LOCKED_CHECKB")) }}
{% endif %}
{% if theme.isSettingVisible("TASK_CONFIG_LOCKED_CHECKB") %}
{% set title %}{% trans "Lock Task Config" %}{% endset %}
{% set helpText %}{% trans "Is the task config locked? Useful for Service providers." %}{% endset %}
{{ forms.checkbox("TASK_CONFIG_LOCKED_CHECKB", title, theme.getSetting("TASK_CONFIG_LOCKED_CHECKB"), helpText, "", "", not theme.isSettingEditable("TASK_CONFIG_LOCKED_CHECKB")) }}
{% endif %}
{% if theme.isSettingVisible("TRANSITION_CONFIG_LOCKED_CHECKB") %}
{% set title %}{% trans "Is the Transition config locked?" %}{% endset %}
{% set helpText %}{% trans "Allow modifications to the transition configuration?" %}{% endset %}
{{ forms.checkbox("TRANSITION_CONFIG_LOCKED_CHECKB", title, theme.getSetting("TRANSITION_CONFIG_LOCKED_CHECKB"), helpText, "", "", not theme.isSettingEditable("TRANSITION_CONFIG_LOCKED_CHECKB")) }}
{% endif %}
{% trans "Regional" %}
{% if theme.isSettingVisible("DEFAULT_LANGUAGE") %}
{% set title %}{% trans "Default Language" %}{% endset %}
{% set helpText %}{% trans "The default language to use" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_LANGUAGE") %}
{{ forms.dropdown("DEFAULT_LANGUAGE", "single", title, theme.getSetting("DEFAULT_LANGUAGE", "en_GB"), languages, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("DEFAULT_LANGUAGE", title, theme.getSetting("DEFAULT_LANGUAGE", "en_GB"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("defaultTimezone") %}
{% set title %}{% trans "Timezone" %}{% endset %}
{% set helpText %}{% trans "Set the default timezone for the application" %}{% endset %}
{% if theme.isSettingEditable("defaultTimezone") %}
{{ forms.dropdown("defaultTimezone", "single", title, theme.getSetting("defaultTimezone", "Europe/London"), timeZones, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("defaultTimezone", title, theme.getSetting("defaultTimezone", "Europe/London"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DATE_FORMAT") %}
{% set title %}{% trans "Date Format" %}{% endset %}
{% set manualUrl %}{{ helpService.address("advanced_dateFormat.html") }}{% endset %}
{% set helpText %}{% trans %}The Date Format to use when displaying dates in the CMS. See the
Manual for allowed formats.{% endtrans %}{% endset %}
{% if theme.isSettingEditable("DATE_FORMAT") %}
{{ forms.input("DATE_FORMAT", title, theme.getSetting("DATE_FORMAT", "Y-m-d"), helpText, "required") }}
{% else %}
{{ forms.disabled("DATE_FORMAT", title, theme.getSetting("DATE_FORMAT", "Y-m-d"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DETECT_LANGUAGE") %}
{% set title %}{% trans "Detect language?" %}{% endset %}
{% set helpText %}{% trans "Detect the browser language?" %}{% endset %}
{{ forms.checkbox("DETECT_LANGUAGE", title, theme.getSetting("DETECT_LANGUAGE"), helpText, "", "", not theme.isSettingEditable("DETECT_LANGUAGE")) }}
{% endif %}
{% if theme.isSettingVisible("CALENDAR_TYPE") %}
{% set title %}{% trans "Calendar Type" %}{% endset %}
{% set helpText %}{% trans "Which Calendar Type should the CMS use?" %}{% endset %}
{% set gregorianOption %}{% trans "Gregorian" %}{% endset %}
{% set jalaliOption %}{% trans "Jalali" %}{% endset %}
{% set options = [
{ id: "Gregorian", value: gregorianOption },
{ id: "Jalali", value: jalaliOption }
] %}
{% if theme.isSettingEditable("CALENDAR_TYPE") %}
{{ forms.dropdown("CALENDAR_TYPE", "single", title, theme.getSetting("CALENDAR_TYPE", "Gregorian"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("CALENDAR_TYPE", title, theme.getSetting("CALENDAR_TYPE", "Gregorian"), helpText) }}
{% endif %}
{% endif %}
{% trans "Troubleshooting" %}
{% if theme.isSettingVisible("RESTING_LOG_LEVEL") %}
{% set title %}{% trans "Resting Log Level" %}{% endset %}
{% set helpText %}{% trans "Set the level of the resting log level. The CMS will revert to this log level after an elevated period ends. In production systems \"error\" is recommended." %}{% endset %}
{% set emergencyOption %}{% trans "Emergency" %}{% endset %}
{% set alertOption %}{% trans "Alert" %}{% endset %}
{% set criticalOption %}{% trans "Critical" %}{% endset %}
{% set errorOption %}{% trans "Error" %}{% endset %}
{% set options = [
{ id: "emergency", value: emergencyOption },
{ id: "alert", value: alertOption },
{ id: "critical", value: criticalOption },
{ id: "error", value: errorOption }
] %}
{% if theme.isSettingEditable("RESTING_LOG_LEVEL") %}
{{ forms.dropdown("RESTING_LOG_LEVEL", "single", title, theme.getSetting("RESTING_LOG_LEVEL", "error"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("RESTING_LOG_LEVEL", title, theme.getSetting("RESTING_LOG_LEVEL", "error"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("audit") %}
{% set title %}{% trans "Log Level" %}{% endset %}
{% set helpText %}{% trans "Set the level of logging the CMS should record. In production systems \"error\" is recommended." %}{% endset %}
{% set emergencyOption %}{% trans "Emergency" %}{% endset %}
{% set alertOption %}{% trans "Alert" %}{% endset %}
{% set criticalOption %}{% trans "Critical" %}{% endset %}
{% set errorOption %}{% trans "Error" %}{% endset %}
{% set warningOption %}{% trans "Warning" %}{% endset %}
{% set noticeOption %}{% trans "Notice" %}{% endset %}
{% set infoOption %}{% trans "Information" %}{% endset %}
{% set debugOption %}{% trans "Debug" %}{% endset %}
{% set options = [
{ id: "emergency", value: emergencyOption },
{ id: "alert", value: alertOption },
{ id: "critical", value: criticalOption },
{ id: "error", value: errorOption },
{ id: "warning", value: warningOption },
{ id: "notice", value: noticeOption },
{ id: "info", value: infoOption },
{ id: "debug", value: debugOption }
] %}
{% if theme.isSettingEditable("audit") %}
{{ forms.dropdown("audit", "single", title, theme.getSetting("audit", "error"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("audit", title, theme.getSetting("audit", "error"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("ELEVATE_LOG_UNTIL") %}
{% set title %}{% trans "Elevate Log Until" %}{% endset %}
{% set helpText %}{% trans "Elevate the log level until this date." %}{% endset %}
{% if theme.isSettingEditable("ELEVATE_LOG_UNTIL") %}
{{ forms.dateTime("ELEVATE_LOG_UNTIL", title, elevateLogUntil, helpText) }}
{% else %}
{{ forms.disabled("ELEVATE_LOG_UNTIL", title, elevateLogUntil, helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("SERVER_MODE") %}
{% set title %}{% trans "Server Mode" %}{% endset %}
{% set helpText %}{% trans "This should only be set if you want to display the maximum allowed error messaging through the user interface.
Useful for capturing critical php errors and environment issues." %}{% endset %}
{% set productionOption %}{% trans "Production" %}{% endset %}
{% set testOption %}{% trans "Test" %}{% endset %}
{% set options = [
{ id: "Production", value: productionOption },
{ id: "Test", value: testOption }
] %}
{% if theme.isSettingEditable("SERVER_MODE") %}
{{ forms.dropdown("SERVER_MODE", "single", title, theme.getSetting("SERVER_MODE", "Production"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("SERVER_MODE", title, theme.getSetting("SERVER_MODE", "Production"), helpText) }}
{% endif %}
{% endif %}
{% trans "Users" %}
{% if theme.isSettingVisible("SYSTEM_USER") %}
{% set title %}{% trans "System User" %}{% endset %}
{% set helpText %}{% trans "The system User for this CMS" %}{% endset %}
{% if theme.isSettingEditable("SYSTEM_USER") %}
{% set attributes = [
{ name: "data-width", value: "100%" },
{ name: "data-search-url", value: url_for("user.search") },
{ name: "data-search-term", value: "userName" },
{ name: "data-search-term-tags", value: "tags" },
{ name: "data-id-property", value: "userId" },
{ name: "data-text-property", value: "userName" },
{ name: "data-filter-options", value: '{"userTypeId":"1"}' }
] %}
{{ forms.dropdown("SYSTEM_USER", "single", title, systemUser.userId, [systemUser], "userId", "userName", helpText, "pagedSelect", "", "", "", attributes) }}
{% else %}
{{ forms.disabled("SYSTEM_USER", title, theme.getSetting("SYSTEM_USER"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("DEFAULT_USERGROUP") %}
{% set title %}{% trans "Default User Group" %}{% endset %}
{% set helpText %}{% trans "The default User Group for new Users" %}{% endset %}
{% if theme.isSettingEditable("DEFAULT_USERGROUP") %}
{% set attributes = [
{ name: "data-width", value: "100%" },
{ name: "data-search-url", value: url_for("group.search") },
{ name: "data-search-term", value: "group" },
{ name: "data-id-property", value: "groupId" },
{ name: "data-text-property", value: "group" }
] %}
{{ forms.dropdown("DEFAULT_USERGROUP", "single", title, defaultUserGroup.groupId, [defaultUserGroup], "groupId", "group", helpText, "pagedSelect", "", "", "", attributes) }}
{% else %}
{{ forms.disabled("DEFAULT_USERGROUP", title, theme.getSetting("DEFAULT_USERGROUP"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("defaultUsertype") %}
{% set title %}{% trans "Default User Type" %}{% endset %}
{% set helpText %}{% trans "Sets the default user type selected when creating a user. We recommend that this is set to User" %}{% endset %}
{% set option1 %}{% trans "User" %}{% endset %}
{% set option2 %}{% trans "Group Admin" %}{% endset %}
{% set option3 %}{% trans "Super Admin" %}{% endset %}
{% set options = [
{ id: "User", value: option1 },
{ id: "Group Admin", value: option2 },
{ id: "Super Admin", value: option3 }
] %}
{% if theme.isSettingEditable("defaultUsertype") %}
{{ forms.dropdown("defaultUsertype", "single", title, theme.getSetting("defaultUsertype", "User"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("defaultUsertype", title, theme.getSetting("defaultUsertype", "User"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("USER_PASSWORD_POLICY") %}
{% set title %}{% trans "Password Policy Regular Expression" %}{% endset %}
{% set helpText %}{% trans "Regular Expression for password complexity, leave blank for no policy." %}{% endset %}
{% if theme.isSettingEditable("USER_PASSWORD_POLICY") %}
{{ forms.input("USER_PASSWORD_POLICY", title, theme.getSetting("USER_PASSWORD_POLICY"), helpText) }}
{% else %}
{{ forms.disabled("USER_PASSWORD_POLICY", title, theme.getSetting("USER_PASSWORD_POLICY"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("USER_PASSWORD_ERROR") %}
{% set title %}{% trans "Description of Password Policy" %}{% endset %}
{% set helpText %}{% trans "A text description of this password policy will be shown to users if they enter a password that does not meet the policy requirements set above." %}{% endset %}
{% if theme.isSettingEditable("USER_PASSWORD_ERROR") %}
{{ forms.input("USER_PASSWORD_ERROR", title, theme.getSetting("USER_PASSWORD_ERROR"), helpText) }}
{% else %}
{{ forms.disabled("USER_PASSWORD_ERROR", title, theme.getSetting("USER_PASSWORD_ERROR"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("PASSWORD_REMINDER_ENABLED") %}
{% set title %}{% trans "Password Reminder" %}{% endset %}
{% set helpText %}{% trans "Enable password reminder on CMS login page? Valid sending email address is required" %}{% endset %}
{% set option1 %}{% trans "Off" %}{% endset %}
{% set option2 %}{% trans "On except Admin" %}{% endset %}
{% set option3 %}{% trans "On" %}{% endset %}
{% set options = [
{ id: "Off", value: option1 },
{ id: "On except Admin", value: option2 },
{ id: "On", value: option3 }
] %}
{% if theme.isSettingEditable("PASSWORD_REMINDER_ENABLED") %}
{{ forms.dropdown("PASSWORD_REMINDER_ENABLED", "single", title, theme.getSetting("PASSWORD_REMINDER_ENABLED", "Off"), options, "id", "value", helpText) }}
{% else %}
{{ forms.disabled("PASSWORD_REMINDER_ENABLED", title, theme.getSetting("PASSWORD_REMINDER_ENABLED", "Off"), helpText) }}
{% endif %}
{% endif %}
{% if theme.isSettingVisible("TWOFACTOR_ISSUER") %}
{% set title %}{% trans "Two Factor Issuer" %}{% endset %}
{% set helpText %}{% trans "Name that should appear as Issuer when two factor authorisation is enabled" %}{% endset %}
{% if theme.isSettingEditable("TWOFACTOR_ISSUER") %}
{{ forms.input("TWOFACTOR_ISSUER", title, theme.getSetting("TWOFACTOR_ISSUER"), helpText) }}
{% else %}
{{ forms.disabled("TWOFACTOR_ISSUER", title, theme.getSetting("TWOFACTOR_ISSUER"), helpText) }}
{% endif %}
{% endif %}