{% extends view.base_template|default:"subjects/base.html" %} {% load static i18n bootstrap4 %} {% block title %} {% if object %} {% translate "Edit contact" %} {% else %} {% translate "Create new subject" %} {% endif %} · {{ block.super }} {% endblock %} {% block content %}
{% include 'utils/form_errors.html' with form=form %} {% if not object.is_complete %} {% endif %} {% csrf_token %} {% include 'contacts/__contact_form_top.html' with form=form %} {% bootstrap_field form.guardians_pane show_label=False %}
{% include 'contacts/__contact_form_self.html' with form=form %}
{% if form.guardians_blocked > 0 %}

{% blocktranslate with count=form.guardians_blocked %}{{ count }} guardians not listed because of insufficient privacy level.{% endblocktranslate %}

{% endif %} {% for widget in form.guardians_remove %} {% include 'contacts/__guardian_item.html' with name=form.guardians_remove.name pk=widget.data.value label=widget.choice_label slug=widget.choice_label.subject.slug removed=widget.data.selected %} {% endfor %} {% for subject in form.cleaned_data.guardians_add %} {% include 'contacts/__guardian_item.html' with name=form.guardians_add.name pk=subject.pk label=subject label=subject.contact.full_name removed=False %} {% endfor %}
{% endblock %} {% block extra_scripts %} {% endblock %}