{% load allauth %} {% comment %} djlint:off {% endcomment %} <{% if attrs.href %}a href="{{ attrs.href }}"{% else %}button{% endif %} {% if attrs.form %}form="{{ attrs.form }}"{% endif %} {% if attrs.id %}id="{{ attrs.id }}"{% endif %} {% if attrs.name %}name="{{ attrs.name }}"{% endif %} {% if attrs.type %}type="{{ attrs.type }}"{% endif %} {% if attrs.value %}value="{{ attrs.value }}"{% endif %} class="{% block class %} button {% if "link" in attrs.tags %}is-link {% else %} {% if "prominent" in attrs.tags %}is-large{% elif "minor" in attrs.tags %}is-small{% endif %} {% if 'outline' in attrs.tags %}is-outlined{% endif %} {% if "danger" in attrs.tags %}is-danger{% elif "secondary" in attrs.tags %}is-secondary{% elif "warning" in attrs.tags %}is-warning{% else %}is-primary{% endif %} {% endif %}{% endblock %}"> {% if "tool" in attrs.tags %} {% if "delete" in attrs.tags %} {% elif "edit" in attrs.tags %} {% endif %} {% endif %} {% if not "tool" in attrs.tags %} {% slot %} {% endslot %} {% endif %}