Skip to content

Commit

Permalink
Display error messages on login form
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Oct 9, 2017
1 parent 9e217f3 commit 69bc776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tcms/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@
<div class="container">
<div class="row">
<div class="col-sm-7 col-md-6 col-lg-5 login">
{{ form.non_field_errors }}
<form class="form-horizontal" role="form" action="{% url "tcms-login" %}" method="POST">
{% csrf_token %}
<input type="hidden" name="next" value="{{ next }}">

<div class="form-group">
{{ form.username.errors }}
<label for="inputUsername" class="col-sm-2 col-md-2 control-label">Username</label>
<div class="col-sm-10 col-md-10">
<input type="text" class="form-control" id="inputUsername" name="username" placeholder="" tabindex="1">
</div>
</div>
<div class="form-group">
{{ form.password.errors }}
<label for="inputPassword" class="col-sm-2 col-md-2 control-label">Password</label>
<div class="col-sm-10 col-md-10">
<input type="password" class="form-control" id="inputPassword" name="password" placeholder="" tabindex="2">
Expand Down
1 change: 1 addition & 0 deletions tcms/templates/registration/password_reset_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<input type="hidden" name="next" value="{{ REQUEST_CONTENTS.next }}" />

<div class="form-group">
{{ form.email.errors }}
<label for="inputEmail" class="col-sm-2 col-md-2 control-label">E-mail</label>
<div class="col-sm-10 col-md-10">
<input type="text" class="form-control" id="inputEmail" name="email" placeholder="" tabindex="1">
Expand Down

0 comments on commit 69bc776

Please sign in to comment.