{% extends "admin/base_site.html" %} {% load i18n static %} {% block extrastyle %}{{ block.super }} {{ form.media }} {% endblock %} {% block title %}{{ site_title|default:"LabAdmin" }}{% endblock %} {% block bodyclass %}{{ block.super }}{% endblock %} {% block usertools %} {% if request.user.is_authenticated %}
{% block welcome-msg %} {% trans 'Welcome,' %} {% firstof user.get_short_name user.get_username %}. {% endblock %} {% block userlinks %} {% if user.has_usable_password %} {% trans 'Change password' %} / {% endif %} {% trans 'Log out' %} {% endblock %}
{% endif %} {% endblock %} {% block nav-global %}{% endblock %} {% block content_title %}{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %} {% if form.errors and not form.non_field_errors %}

{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

{% endif %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %} {% endblock %}