{% load static %}

{{widget.name}}

{% if widget.output_type == 'table' %}
{% for col in result.columns %} {% endfor %} {% for row in result.data %} {% for cell in row %} {% endfor %} {% endfor %}
{{col|title}}
{{cell}}
{% elif widget.output_type == 'value' %}

{{widget.options.prefix}} {{widget.result_value}} {{widget.options.suffix}}

{{widget.desctiption}}
{% else %}
{{result|safe}}
{% endif %}