{% extends "main/layout.html" %} {% from 'global_macros.html' import input, button %} {% from 'main/tcdrop.html' import tcdrop %} {% block page_vendor_css %} {% endblock page_vendor_css %} {% block page_lvl_css %} {% if settings.background %} {% endif %} {% endblock page_lvl_css %} {% block content %}
Config info
Settings Example
[Settings]
theme = dark
accent = orange
accent = static/images/backgrounds/background.png
Variable Value
[Settings] config section name. required.
theme UI theme, options are light, dark
accent UI accent, options are orange, green, blue, green, pink, grey
background Background image. can be either a local link (prefixed by /static/images/backgrounds/), or an external link
App Example
[App Name]
prefix = https://
url = your-website.com
icon = static/images/apps/default.png
sidebar_icon = static/images/apps/default.png
description = Example description
open_in = iframe
Variable Value
[App Name] The name of your app.
prefix the prefix for the app's url, e.g. http:// or https://
url the url for your app, e.g. google.com
icon icon for the dashboard, can be either a local link (prefixed by /static/images/apps/), or an external link
sidebar_icon icon for the sidebar, can be either a local link (prefixed by /static/images/apps/), or an external link
description a short description for the app
open_in open the app in an embedded iframe or a new tab, options are iframe, new_tab
{{ input( size="s12", class="materialize-textarea", form_obj=config_form.config, id="config-textarea" ) }}
{{ button( icon="save", id="save-config-btn", float="left", data={'url': url_for('settings_system.save_config')}, text="save" ) }}
Images
{{ tcdrop(allowed_types='jpg,jpeg,png', id="images-tcdrop", max_files="30") }} {{ button(text="save", icon="save", id="save-images-btn", float="left", data={"url": url_for('settings_system.add_images')}) }}
{{ files_html|safe }}
{% endblock content %} {% block page_vendor_js %} {% endblock page_vendor_js %} {% block page_lvl_js %} {% endblock page_lvl_js %}