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

View file

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