{# -*- engine:django -*- #} {% extends "core/base.html" %} {% load i18n %} {% block browser_title %}{% blocktrans %}Link persons to accounts{% endblocktrans %}{% endblock %} {% block page_title %} {% blocktrans %}Link persons to accounts{% endblocktrans %} {% endblock %} {% block content %}

info {% blocktrans %} You can use this form to assign user accounts to persons. Use the dropdowns to select existing accounts; use the text fields to create new accounts on-the-fly. The latter will create a new account with the entered username and copy all other details from the person. {% endblocktrans %}

{% csrf_token %} {{ persons_accounts_formset.management_form }} {% for form in persons_accounts_formset %} {{ form.id }} {% endfor %}
{% blocktrans %}Person{% endblocktrans %} {% blocktrans %}Existing account{% endblocktrans %} {% blocktrans %}New account{% endblocktrans %}
{{ form.last_name }} {{ form.first_name }} {{ form.user }} {{ form.new_user }}
{% endblock %}