diff options
Diffstat (limited to 'samples/django/django_user/polls/templates/registration/login.html')
-rw-r--r-- | samples/django/django_user/polls/templates/registration/login.html | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/samples/django/django_user/polls/templates/registration/login.html b/samples/django/django_user/polls/templates/registration/login.html deleted file mode 100644 index c43450e..0000000 --- a/samples/django/django_user/polls/templates/registration/login.html +++ /dev/null @@ -1,45 +0,0 @@ -<!-- -# Copyright 2016 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. ---> - -{% if form.errors %} -<p>Your username and password didn't match. Please try again.</p> -{% endif %} - -{% if next %} -{% if user.is_authenticated %} -<p>Your account doesn't have access to this page. To proceed, - please login with an account that has access.</p> -{% else %} -<p>Please login to see this page.</p> -{% endif %} -{% endif %} - -<form method="post" action="{% url 'login' %}"> - {% csrf_token %} - <table> - <tr> - <td>{{ form.username.label_tag }}</td> - <td>{{ form.username }}</td> - </tr> - <tr> - <td>{{ form.password.label_tag }}</td> - <td>{{ form.password }}</td> - </tr> - </table> - - <input type="submit" value="login" /> - <input type="hidden" name="next" value="{{ next }}" /> -</form> |