{% extends "base.html" %} {% comment %} The Mia Core Application user_form.html: The template for the form of a user Copyright (c) 2020 imacat. 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. Author: imacat@mail.imacat.idv.tw (imacat) First written: 2020/8/9 {% endcomment %} {% load static %} {% load i18n %} {% load mia_core %} {% block settings %} {% if form.user %} {% setvar "title" user.name %} {% else %} {% setvar "title" _("Add a New Account") %} {% endif %} {% static "mia_core/js/user-form.js" as file %}{% add_js file %} {% endblock %} {% block content %}
{{ _("Back")|force_escape }}
{% csrf_token %}
{{ form.login_id.errors.0 }}
{{ form.password.errors.0 }}
{{ form.password2.errors.0 }}
{{ form.name.errors.0 }}
{% if not request|is_in_section:"mia_core:my-account" %}
{% if form.user and form.user.pk == request.user.pk %} {{ _("You cannot disable your own account.")|force_escape }} {% else %} {% endif %}
{% endif %}
{% endblock %}