Adds fallback form to modal

This commit is contained in:
Mouse Reeve 2022-03-19 12:07:07 -07:00
parent 4386d2ddb9
commit f2ab890b5a
2 changed files with 11 additions and 7 deletions

View file

@ -29,13 +29,15 @@
</section>
<section class="block">
<button
type="button"
class="button"
data-modal-open="resend_form"
>
{% trans "Can't find your code?" %}
</button>
<form name="fallback" method="GET" action="{% url 'resend-link' %}" autocomplete="off">
<button
type="submit"
class="button"
data-modal-open="resend_form"
>
{% trans "Can't find your code?" %}
</button>
</form>
{% include "confirm_email/resend_modal.html" with id="resend_form" %}
</section>
</div>

View file

@ -22,11 +22,13 @@
aria-described-by="id_email_errors"
required
>
{% if error %}
<div id="id_email_errors">
<p class="help is-danger">
{% trans "No user matching this email address found." %}
</p>
</div>
{% endif %}
</div>
</div>
{% endblock %}