File tree 1 file changed +12
-2
lines changed
readthedocsext/theme/templates/mfa
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 22
22
{% csrf_token %}
23
23
{{ form|crispy }}
24
24
{{ redirect_field }}
25
-
26
25
< div class ="ui stackable relaxed text menu ">
27
- < a class ="item " href ="{% url "account_login " %}"> {% trans "Cancel" %}</ a >
28
26
< div class ="right menu ">
27
+ < button class ="ui button " type ="submit " form ="logout-from-stage ">
28
+ {% trans "Cancel" %}
29
+ </ button >
29
30
< button class ="ui primary button " type ="submit "> {% trans "Verify" %}</ button >
30
31
</ div >
31
32
</ div >
32
33
</ form >
34
+
35
+ {# We can't have nested forms, so we need to have a separate form for "Cancel" #}
36
+ < form id ="logout-from-stage "
37
+ action ="{% url 'account_logout' %} "
38
+ method ="post ">
39
+ {% csrf_token %}
40
+ < input type ="hidden " name ="next " value ="{% url 'account_login' %} ">
41
+ </ form >
42
+
33
43
{% endblock content_body %}
You can’t perform that action at this time.
0 commit comments