Rework button tag

This commit is contained in:
2020-09-30 09:08:25 +01:00
parent f70421b8ca
commit acf814e49e
5 changed files with 14 additions and 11 deletions

View File

@@ -1 +1,5 @@
{% if submit %}
<button type="submit" class="btn {{ class }}" title="{{ text }}"><span class="fas {{ icon }}"></span> <span class="hidden-xs">{{ text }}</span></button>
{% else %}
<a href="{% url target id %}" class="btn {{ class }}" target="_blank"><span class="fas {{ icon }}"></span> <span class="hidden-xs">{{ text }}</span></a>
{% endif %}