{% if url %}
<a href="{{ url }}" type="button" class="btn btn-sm btn-success">
<i class="mdi mdi-plus-thick"></i> Add
</a>
{% endif %}