2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00

crispy forms!

This commit is contained in:
Matthias 2021-09-01 07:34:37 +02:00
parent 22401d4229
commit 0ff6de62e9
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -3,6 +3,7 @@
{% load i18n %} {% load i18n %}
{% load inventree_extras %} {% load inventree_extras %}
{% load socialaccount %} {% load socialaccount %}
{% load crispy_forms_tags %}
{% block label %}account{% endblock %} {% block label %}account{% endblock %}
@ -86,7 +87,7 @@
<form method="post" action="{% url 'account_email' %}" class="add_email"> <form method="post" action="{% url 'account_email' %}" class="add_email">
{% csrf_token %} {% csrf_token %}
{{ add_email_form.as_p }} {{ add_email_form|crispy }}
<button class="btn btn-primary" name="action_add" type="submit">{% trans "Add E-mail" %}</button> <button class="btn btn-primary" name="action_add" type="submit">{% trans "Add E-mail" %}</button>
</form> </form>
{% endif %} {% endif %}