Skip to content

Commit 466da7d

Browse files
committed
Small template fixes
1 parent 2366b79 commit 466da7d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

user/templates/registration/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ <h2>Log in with</h2>
2929
</div>
3030
<form class="ui large form" style="text-align: left;" method="post">
3131
{% csrf_token %}
32-
<div class="field">
32+
<div class="field {% if form.username.errors %}error{% endif %}">
3333
<div class="ui left icon input">
3434
<i class="envelope icon"></i>
3535
<input type="text" name="username" placeholder="Email">
3636
</div>
3737
</div>
38-
<div class="field">
38+
<div class="field {% if form.password.errors %}error{% endif %}">
3939
<div class="ui left icon input">
4040
<i class="lock icon"></i>
4141
<input type="password" name="password" placeholder="Password">

user/templates/user/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@
2121
</div>
2222
</div>
2323
</body>
24-
2524
</html>

user/templates/user/register.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ <h2>Sign up with</h2>
6161
</div>
6262
<div class="field">
6363
<div class="ui checkbox">
64-
<input type="checkbox" name="newsletter">
65-
<label>I'd like to receive PlacePass news and offers</label>
64+
<input type="checkbox" name="newsletter" id="newsletter-checkbox">
65+
<label for="newsletter-checkbox">I'd like to receive PlacePass news and offers</label>
6666
</div>
6767
</div>
6868
<h5 class="ui grey header">By signing up, I agree to the PlacePass <a href="http://www.example.com"><span>Terms of

0 commit comments

Comments
 (0)