{% extends 'themes/'~layout_dir~'/layout.html' %} {% block body %}
{% set colors_list = ["purple","red","orange","green","blue","grey","brown","magenta","forestgreen"] %} {% for chart in chart_data %}
{{app.modules[chart["module"]].icon}} {{app.modules[chart["module"]].route.label|trans}}
{% if chart["chart_type"] != "count" and chart["chart_type"] != "list" %} {% elseif chart["chart_type"] == "list" %} {% if chart["data"]|length>0 %} {% for tbl_field in chart["fields"] %} {% if tbl_field!="id" %} {% endif %} {% endfor %} {% for chart_rec in chart["data"] %} {% for tbl_field in chart["fields"] %} {% if tbl_field!="id" %} {% endif %} {% endfor %} {% endfor %}
{{tbl_field|trans}}
{{chart_rec[tbl_field]}}
{% else %}

{{"No Data"|trans}}

{% endif %} {% else %} {% if chart["group_field"]!="none" %} {% if chart["data"]["labels"]|length>0 %} {% for chart_group in chart["data"]["labels"] %} {% endfor %}
{{chart_group | trans}}: {{chart["data"]["values"][loop.index-1]}}
{% else %}

{{"No Data"|trans}}

{% endif %} {% else %} {{chart["data"]}} {{app.modules[chart["module"]].route.label|trans}} {% endif %} {% endif %}
{% endfor %}
{% if app.config.twitter_widget_enabled and app.config.twitter_page_url!="" %}
Latest Tweets
{% endif %} {% if app.config.facebook_widget_enabled and app.config.facebook_page_url!="" %}
Facebook Posts
{% endif %}
{% endblock %} {% block footerscripts %} {% set chart_labels = [] %} {% for chart in chart_data %} {% set chart_labels_t = [] %} {% if chart["data"]["labels"] is defined %} {% for label in chart["data"]["labels"] %} {% set chart_labels_t = chart_labels_t|merge([label|trans]) %} {% endfor %} {% endif %} {% set chart_labels = chart_labels|merge([chart_labels_t]) %} {% endfor %} {% endblock %}