Skip to content

Commit fc478c7

Browse files
committed
warehouse/templates: Reindent two-factor.html
For real this time.
1 parent e8b610b commit fc478c7

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

warehouse/templates/accounts/two-factor.html

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,40 +24,40 @@
2424

2525
<section class="horizontal-section">
2626
<div class="site-container">
27-
<h1 class="page-title">Two-factor authentication</h1>
27+
<h1 class="page-title">Two-factor authentication</h1>
2828

29-
<form method="POST" action="{{ request.current_route_path() }}">
30-
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
29+
<form method="POST" action="{{ request.current_route_path() }}">
30+
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
3131

32-
{% if form.errors.__all__ %}
32+
{% if form.errors.__all__ %}
33+
<ul class="form-errors">
34+
{% for error in form.errors.__all__ %}
35+
<li>{{ error }}</li>
36+
{% endfor %}
37+
</ul>
38+
{% endif %}
39+
40+
<div class="form-group">
41+
<label for="otp_value" class="form-group__label">Authentication code</label>
42+
{{ form.otp_value(placeholder="Authentication code", autocorrect="off", autocapitalize="off", spellcheck="false", required="required", class_="form-group__input", tabindex="1", autofocus=true) }}
43+
{% if form.otp_value.errors %}
3344
<ul class="form-errors">
34-
{% for error in form.errors.__all__ %}
45+
{% for error in form.otp_value.errors %}
3546
<li>{{ error }}</li>
3647
{% endfor %}
3748
</ul>
3849
{% endif %}
50+
</div>
3951

40-
<div class="form-group">
41-
<label for="otp_value" class="form-group__label">Authentication code</label>
42-
{{ form.otp_value(placeholder="Authentication code", autocorrect="off", autocapitalize="off", spellcheck="false", required="required", class_="form-group__input", tabindex="1", autofocus=true) }}
43-
{% if form.otp_value.errors %}
44-
<ul class="form-errors">
45-
{% for error in form.otp_value.errors %}
46-
<li>{{ error }}</li>
47-
{% endfor %}
48-
</ul>
49-
{% endif %}
50-
</div>
51-
52-
<div class="form-group">
53-
<div class="split-layout split-layout--table">
54-
<div>
52+
<div class="form-group">
53+
<div class="split-layout split-layout--table">
54+
<div>
5555
<input type="submit" value="Verify" class="button button--primary" tabindex="3">
56-
</div>
57-
<span></span>
5856
</div>
57+
<span></span>
5958
</div>
60-
</form>
59+
</div>
60+
</form>
6161
</div>
6262
</section>
6363
{% endblock %}

0 commit comments

Comments
 (0)