{% extends "base.html" %} {% block title %}{% if user_id %}{% translate "Edit user" %}{% else %}{% translate "New user" %}{% endif %}{% endblock %} {% block content %}

{% if user_id %}{% translate "Edit user" %}{% else %}{% translate "New user" %}{% endif %}

{% csrf_token %}
{% include "components/non_field_errors.html" %} {{ form.name.as_field_group }} {{ form.email.as_field_group }} {{ form.role.as_field_group }}

{% translate "An intern must have a last day and a supervisor." %}

{{ form.employment_ends_on.as_field_group }} {{ form.supervisor_id.as_field_group }}
{% if form.is_active %}{{ form.is_active.as_field_group }}{% endif %}
{% translate "Cancel" %}
{% if user_id %}

{% translate "Creates a new link for setting the password. The link is emailed to the user and shown here for copying. Earlier links stop working." %}

{% url 'users:password_link' user_id as link_url %} {% translate "Create a new password link?" as dialog_title %} {% translate "Earlier links of this user stop working." as dialog_body %} {% translate "Create link" as dialog_confirm %} {% include "components/confirm_dialog.html" with id="confirm-password-link" title=dialog_title body=dialog_body action_url=link_url confirm_label=dialog_confirm hx_target="#password-link-result" %} {% endif %}
{% endblock %}