{% extends "layouts/charts_base.html" %} {%- macro chart(module=None) %} {% if module %} {% set dims = module|get_dims %} {% endif %} {% endmacro -%} {% block chart_body %}

{% if not demo_mode %} Back {% endif %} {{ view.name }} {% if can_edit and not demo_mode %} {% include "partials/dashboard-options.html" %} {% endif %}

{% if can_edit %}
{% if not view.modules|length %}

It looks like this dashboard has no modules - add some below.

{% endif %}
{% include "partials/form-view.html" %}
{% include "partials/form-json.html" %} {% endif %}
{% for module in modules %} {{ chart(module=module) }} {% endfor %}
{% include "partials/edit-data-modal.html" %} {% endblock %}