You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
551 B

{% load smartsnippets_tags %}
{% spaceless %}
{% for name in widgets|sortdict %}
{% with widget_data=widgets|get_item:name %}
{% if forloop.first %}<ul class='predefined-widgets'>{% endif %}
<li data-widget='{{ widget_data.widget }}' data-resources='{{widget_data.resources}}' onclick="populateWidgetResources(this);" class="btn btn-white btn-primary btn-sm">{{ widget_data.title|default:name }}</li>
{% if forloop.last %}</ul>{% endif %}
{% endwith %}
{% empty %}
No widgets available.
{% endfor %}
{% endspaceless %}