Config info
{{ button( icon="save", id="save-config-btn", float="left", class="ml-0 mt-1 mb-1", data={'url': url_for('settings_system.save_config')}, text="save" ) }}Settings Example
[Settings]
theme = dark
accent = orange
background = static/images/backgrounds/background.png
Variable | Required | Description | Options |
---|---|---|---|
[Settings] | Yes | Config section name. | string |
theme | Yes | UI theme | light, dark |
accent | Yes | UI accent color | orange, green, blue, green, pink, grey |
background | Yes | Background image for the UI | /static/images/backgrounds/yourpicture.png, external link to image, None, random |
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 | Required | Description | Options |
---|---|---|---|
[App Name] | Yes | The name of your app. | string |
prefix | Yes | The prefix for the app's url. | web prefix, e.g. http:// or https:// |
url | Yes | The url for your app. | web url, e.g. myapp.com |
icon | No | Icon for the dashboard. | /static/images/icons/yourpicture.png, external link to image |
sidebar_icon | No | Icon for the sidenav. | /static/images/icons/yourpicture.png, external link to image |
description | No | A short description for the app. | string |
open_in | Yes | open the app in the current tab, an iframe or a new tab | iframe, new_tab, this_tab |
User
{{ user_form.hidden_tag() }} {{ input( label="Username", id="user-form-username", size="s12", form_obj=user_form.username, val=current_user.username ) }} {{ input( label="Password", id="user-form-password", form_obj=user_form.password, size="s12" ) }} {{ input( label="Confirm Password", id="user-form-confirm_password", form_obj=user_form.confirm_password, required='required', size="s12" ) }} {{ button( icon="save", float="left", text="save" ) }}App Templates
search
Images
{{ tcdrop(allowed_types='jpg,jpeg,png,gif', 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 }}