{% load staticfiles %} {% load dashboard_tags %} {% load i18n %} {% load fontawesome %}
{% for c in widget.columns %} {% if widget.details_columns %} {% if c not in widget.details_columns %} | {{ c }} | {% endif %} {% else %}{{ c }} | {% endif %} {% endfor %}
---|---|---|
{{ row.6 }}
|
{% for v in row %}
{% if v.template %}
{% else %}
{% if forloop.counter not in widget.details_values %}
{{v |safe}} | {% endif %} {% endif %} {% endfor %}
{% else %} | {{col}} | {% endif %} {% endfor %}|||
---|---|---|---|---|
{% include 'sharedapp/components/'|add:v.template|add:'.html' with content=v %} | {% endif %} {% endfor %} {% else %} {% if 'highlight_columns' in widget %} {% if col in widget.highlight_columns %} {% if 'highlight_fields' in widget %} {% if row|get_item:col in widget.highlight_fields %}{{row|get_item:col|safe}} | {% else %}{{row|get_item:col|safe}} | {% endif %} {% endif %} {% else %}{{row|get_item:col|safe}} | {% endif %} {% else %}{{row|get_item:col|safe}} | {% endif %} {% endif %} {% endfor %}