Skip to content

Commit 93efc44

Browse files
committed
Re-styled some auth-related forms to use a narrower form body on large screens, for aesthethic reasons.
- Legacy-Id: 12797
1 parent b1bbf98 commit 93efc44

3 files changed

Lines changed: 43 additions & 33 deletions

File tree

ietf/templates/registration/create.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,9 @@ <h1>Account created successfully</h1>
1818

1919
{% else %}
2020
<div class="row">
21-
<div class="col-md-6">
21+
<div class="col-md-2 col-sm-0"></div>
22+
<div class="col-md-8 col-sm-12">
2223
<h1>Account creation</h1>
23-
<p>Please enter your email address in order to create a new datatracker account.</p>
24-
<form method="post">
25-
{% csrf_token %}
26-
{% bootstrap_form form %}
27-
28-
{% buttons %}
29-
<button type="submit" class="btn btn-primary">Create account</button>
30-
{% endbuttons %}
31-
</form>
32-
</div>
33-
34-
<div class="col-md-6">
35-
<h1>Other options</h1>
36-
3724
<p>
3825
<b>If you already have an account and want to use a new email address,</b>
3926
please go to your account profile page and
@@ -49,7 +36,20 @@ <h1>Other options</h1>
4936
<p>
5037
<a class="btn btn-warning" href="{% url "ietf.ietfauth.views.password_reset" %}">Reset your password</a>
5138
</p>
39+
40+
<hr>
41+
42+
<p>Please enter your email address in order to create your datatracker account.</p>
43+
<form method="post">
44+
{% csrf_token %}
45+
{% bootstrap_form form %}
46+
47+
{% buttons %}
48+
<button type="submit" class="btn btn-primary">Create account</button>
49+
{% endbuttons %}
50+
</form>
5251
</div>
52+
<div class="col-md-2 col-sm-0"></div>
5353
</div>
5454
{% endif %}
5555
{% endblock %}

ietf/templates/registration/edit_profile.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ <h1>Profile for {{ user.username }}</h1>
2222
</div>
2323
</div>
2424

25+
<div class="form-group">
26+
<label class="col-sm-2 control-label">Password</label>
27+
<div class="col-sm-10">
28+
<p class="form-control-static"><a href="{% url 'ietf.ietfauth.views.change_password' %}">Password change form</a></p>
29+
</div>
30+
</div>
31+
2532
<div class="form-group">
2633
<label class="col-sm-2 control-label">Email addresses</label>
2734
<div class="col-sm-10">

ietf/templates/registration/login.html

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,27 @@
88

99
{% block content %}
1010
{% origin %}
11-
<h1>Sign in</h1>
11+
<div class="col-md-2 col-sm-0"></div>
12+
<div class="col-md-8 col-sm-12">
13+
<h1>Sign in</h1>
1214

13-
<form method="post">
14-
{% csrf_token %}
15-
{% bootstrap_form form %}
16-
17-
{% buttons %}
18-
<table class="col-md-12">
19-
<tr>
20-
<td >
21-
<button type="submit" class="btn btn-primary">Sign in</button>
22-
</td>
23-
<td >
24-
Forgot your password? <a href="{% url 'ietf.ietfauth.views.password_reset' %}">Request a reset</a>.
25-
</td>
26-
</tr>
27-
</table>
28-
{% endbuttons %}
29-
</form>
15+
<form method="post">
16+
{% csrf_token %}
17+
{% bootstrap_form form %}
3018

19+
{% buttons %}
20+
<table class="col-md-12">
21+
<tr>
22+
<td >
23+
<button type="submit" class="btn btn-primary">Sign in</button>
24+
</td>
25+
<td >
26+
Forgot your password? <a href="{% url 'ietf.ietfauth.views.password_reset' %}">Request a reset</a>.
27+
</td>
28+
</tr>
29+
</table>
30+
{% endbuttons %}
31+
</form>
32+
</div>
33+
<div class="col-md-2 col-sm-0"></div>
3134
{% endblock %}

0 commit comments

Comments
 (0)