{% 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['dashboard_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 %}
{% for widget_type, file_title_bar in list_html_files_title_bar.items() if widget_type == each_widget.graph_type %} {% include 'user_templates/{}'.format(file_title_bar) %} {% endfor %}
{% for widget_type, file_body in list_html_files_body.items() if widget_type == each_widget.graph_type %} {% include 'user_templates/{}'.format(file_body) %} {% endfor %}
{% endif %}
{%- endfor -%}

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