{% extends "layout.html" %} {% set active_page = "dashboard" %} {% set help_page = ["https://kizniche.github.io/Mycodo/Data-Viewing/#dashboard", dict_translation['dashboard']['title']] %} {% set dashboard_dict = dict() %} {% block title %} - {% for each_dash in dashboards if each_dash.unique_id == dashboard_id %}{{each_dash.name}}{% endfor %} {{dict_translation['dashboard']['title']}}{% endblock %} {% block head %} {% for widget_type, file_head in list_html_files_head.items() %} {% include 'user_templates/{}'.format(file_head) %} {% endfor %} {% endblock %} {% block body %}
{% include 'flash_messages.html' %}
{% for each_widget in table_widget.query.filter(table_widget.dashboard_id == dashboard_id).all() -%}
{% include 'pages/dashboard_entry.html' %}
{%- endfor -%}

{% if not this_dashboard.locked %}
{{form_base.widget_type(class_='selectpicker', **{'data-style': 'btn btn-primary'})}}
{% for each_widget in dict_widgets %} {% set dict_options = dict_widgets[each_widget] %} {% set custom_options_values = [] %} {% set force_default_value = true %} {% endfor %}
{% endif %} {% endblock %}