| 1 |
{% extends "mfa/base_entrance.html" %} |
| 2 |
{% load i18n allauth static %} |
| 3 |
{% block head_title %} |
| 4 |
{% trans "Trust this Browser?" %} |
| 5 |
{% endblock head_title %} |
| 6 |
{% block content %} |
| 7 |
{% element h1 %} |
| 8 |
{% trans "Trust this Browser?" %} |
| 9 |
{% endelement %} |
| 10 |
{% element p %} |
| 11 |
{% blocktranslate %}If you choose to trust this browser, you will not be asked for a verification code the next time you sign in.{% endblocktranslate %} |
| 12 |
{% endelement %} |
| 13 |
{% url 'mfa_trust' as action_url %} |
| 14 |
{% element form form=form method="post" action=action_url %} |
| 15 |
{% slot body %} |
| 16 |
{% csrf_token %} |
| 17 |
{% element fields form=form unlabeled=True %} |
| 18 |
{% endelement %} |
| 19 |
{% endslot %} |
| 20 |
{% slot actions %} |
| 21 |
{% element button_group %} |
| 22 |
{% element button name="action" value="trust" type="submit" tags="primary,mfa,trust" %} |
| 23 |
{% blocktranslate with period=trust_until|timeuntil:trust_from %}Trust for {{ period }}{% endblocktranslate %} |
| 24 |
{% endelement %} |
| 25 |
{% element button name="action" value="skip" type="submit" tags="outline,mfa,trust" %} |
| 26 |
{% trans "Don't Trust" %} |
| 27 |
{% endelement %} |
| 28 |
{% element button type="submit" form="logout-from-stage" tags="outline,mfa,trust,cancel" %} |
| 29 |
{% trans "Cancel" %} |
| 30 |
{% endelement %} |
| 31 |
{% endelement %} |
| 32 |
{% endslot %} |
| 33 |
{% endelement %} |
| 34 |
<form id="logout-from-stage" |
| 35 |
method="post" |
| 36 |
action="{% url 'account_logout' %}"> |
| 37 |
<input type="hidden" name="next" value="{% url 'account_login' %}"> |
| 38 |
{% csrf_token %} |
| 39 |
</form> |
| 40 |
{% endblock content %} |