ownload template"></a>
              {% if template.protected and request.user|is_privileged or not template.protected %}
                <a class="icon edit-icon"
                   href="{% url 'reporting:template_update' template.id %}"></a>
                <a class="icon trash-icon" href="{% url 'reporting:template_delete' template.id %}"></a>
              {% else %}
                <a class="icon lock-icon" title="This template is protected and cannot be edited or deleted"
                   href="jav