diff options
Diffstat (limited to 'django/web/templates/admin/login.html')
-rwxr-xr-x | django/web/templates/admin/login.html | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/django/web/templates/admin/login.html b/django/web/templates/admin/login.html new file mode 100755 index 0000000..5acf9b5 --- /dev/null +++ b/django/web/templates/admin/login.html @@ -0,0 +1,107 @@ +<!-- +============LICENSE_START========================================== + org.onap.vvp/engagementmgr + =================================================================== + Copyright © 2017 AT&T Intellectual Property. All rights reserved. + =================================================================== + + Unless otherwise specified, all software contained herein is licensed + under the Apache License, Version 2.0 (the “License”); + you may not use this software 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. + + + + Unless otherwise specified, all documentation contained herein is licensed + under the Creative Commons License, Attribution 4.0 Intl. (the “License”); + you may not use this documentation except in compliance with the License. + You may obtain a copy of the License at + + https://creativecommons.org/licenses/by/4.0/ + + Unless required by applicable law or agreed to in writing, documentation + 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. + + ============LICENSE_END============================================ + + ECOMP is a trademark and service mark of AT&T Intellectual Property.--> +{% extends "admin/base_site.html" %} +{% load i18n admin_static %} + +{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}" /> +{{ form.media }} +{% endblock %} + +{% block bodyclass %}{{ block.super }} login{% endblock %} + +{% block usertools %}{% endblock %} + +{% block nav-global %}{% endblock %} + +{% block content_title %}{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +{% if form.errors and not form.non_field_errors %} +<p class="errornote"> +{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +</p> +{% endif %} + +{% if form.non_field_errors %} +{% for error in form.non_field_errors %} +<p class="errornote"> + {{ error }} +</p> +{% endfor %} +{% endif %} + +<div id="content-main"> + +{% if user.is_authenticated %} +<p class="errornote"> +{% blocktrans trimmed %} + You are authenticated as {{ username }}, but are not authorized to + access this page. Would you like to login to a different account? +{% endblocktrans %} +</p> +{% endif %} + +<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %} + <div class="form-row"> + {{ form.username.errors }} + {{ form.username.label_tag }} {{ form.username }} + </div> + <div class="form-row"> + {{ form.password.errors }} + {{ form.password.label_tag }} {{ form.password }} + <input type="hidden" name="next" value="{{ next }}" /> + </div> + {% url 'admin_password_reset' as password_reset_url %} + {% if password_reset_url %} + <div class="password-reset-link"> + <a href="{{ password_reset_url }}">{% trans 'Forgotten your password or username?' %}</a> + </div> + {% endif %} + <div class="submit-row"> + <label> </label><input type="submit" id="test_admin_submit" value="{% trans 'Log in' %}" /> + </div> +</form> + +<script type="text/javascript"> +document.getElementById('id_username').focus() +</script> +</div> +{% endblock %} |