{% extends 'happy_shop/base.html' %} {% load i18n static %} {% block title %}{{ site_title }}-{{ title }}{% endblock %} {% block extra_style %} {% endblock %} {% block breadcrumb %}{% endblock %} {% block banner %}{% endblock %} {% block header %}{% endblock %} {% block main %}

{% block form_title %}登录{% endblock %}

{{ title }}

{% block formerrors %} {% if form.errors and not form.non_field_errors %} {% if form.errors.items|length == 1 %}{% translate "Please correct the error below." %}{% else %}{% translate "Please correct the errors below." %}{% endif %} {% endif %} {% endblock %} {% if form.non_field_errors %} {% for error in form.non_field_errors %} {{ error }} {% endfor %} {% endif %} {% if user.is_authenticated %} {% blocktranslate trimmed %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? {% endblocktranslate %} {% endif %} {% block form %}
{% csrf_token %} {% for field in form %}
{{ field }}
{% endfor %} {% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %} {% endif %}
{% endblock %}
{% endblock %} {% block head_top %}{% endblock %} {% block footer %}{% endblock %} {% block vue %} {% endblock %}