{% extends "base.html" %} {% load i18n %} {% load bootstrap4 %} {% load static %} {% block title %} {% if userprofile %} {% trans "Edit user" %} {% else %} {% trans "Add new user" %} {% endif %} {% endblock %} {% block content %}
{% csrf_token %} {% bootstrap_form userprofile_form %} {% load formset_tags %}
{{ qualification_formset.management_form }}

{% translate "Qualifications" %}

    {% for form in qualification_formset %}
    {{ form.id }}
    {{ form.qualification }} {% if form.fields.qualification.disabled %} {{ form.fields.qualification.title }} {% endif %}
    {% bootstrap_field form.expires layout="horizontal" horizontal_label_class="col-md-4" horizontal_field_class="col-md-8" %}
    {{ form.DELETE }}
    {% endfor %}
{% buttons %} {% trans "Cancel" %} {% if userprofile and perms.user_management.delete_userprofile %} {% trans "Delete" %} {% endif %} {% endbuttons %}
{% endblock %}