{% load add_preserved_filters from admin_urls %} {% if tool.button_type == 'a' %} {{ tool.label|capfirst }} {% elif tool.button_type == 'form' %}
{% csrf_token %} {{ tool.label|capfirst }}
{% endif %}