{% extends "layout.html" %} {% set active_page = "dashboard" %} {% set help_page = ["https://kizniche.github.io/Mycodo/Data-Viewing/#dashboard", dict_translation['dashboard']['title']] %} {% 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 %} {# Graph popup effect#} {% if current_user.theme in dark_themes %} {% endif %} {% 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() -%} {%- set chart_number = loop.index -%} {% set widget_options = custom_options_values_widgets[each_widget.unique_id] %} {% set widget_variables = custom_widget_variables[each_widget.unique_id] %}
{% if each_widget.graph_type in dict_widgets %}
{% if each_widget.enable_drag_handle -%} {%- endif %}
{% if each_widget.graph_type in list_html_files_title_bar %} {% include 'user_templates/{}'.format(list_html_files_title_bar[each_widget.graph_type]) %} {% endif %}
{% if not this_dashboard.locked %} {% endif %}
{% if each_widget.graph_type in list_html_files_body %} {% include 'user_templates/{}'.format(list_html_files_body[each_widget.graph_type]) %} {% endif %}
{% if not this_dashboard.locked %} {% endif %} {% endif %}
{%- endfor -%}

{% if not this_dashboard.locked %}
{{form_base.widget_type(class_='selectpicker', **{'data-style': 'btn btn-sm btn-primary'})}}
{% for each_widget in dict_widgets %} {% endfor %}
{% endif %} {% endblock %}