{% extends "base.html" %}{% load i18n %} {% block title %}{% if person %}{{ person.display_name }}{% else %}{% translate "Add team member" %}{% endif %}{% endblock %} {% block content %}

{% if person %}{{ person.display_name }}{% else %}{% translate "Add team member" %}{% endif %}

{% if person %}

{% translate "Signs in as" %} {{ person.username }}{% if names_work %} {% translate "or with their two names" %}{% endif %}

{% else %}

{% translate "They will sign in with their two names. Give them the starting password in person; they will choose their own the first time." %}

{% endif %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors|join:" " }}
{% endif %}
{% include "_field.html" with field=form.first_name %} {% include "_field.html" with field=form.last_name %} {% include "_field.html" with field=form.phone %} {% include "_field.html" with field=form.alt_phone %} {% include "_field.html" with field=form.role %} {% include "_field.html" with field=form.language %} {% if person %}{% include "_field.html" with field=form.is_active wide=True %}{% endif %} {% if form.can_plan_shifts %}{% include "_field.html" with field=form.can_plan_shifts wide=True %}{% endif %} {% if not person %} {% include "_field.html" with field=form.password1 %} {% include "_field.html" with field=form.password2 %} {% endif %}
{% translate "Cancel" %}
{% if person %}

{% translate "Sign-in details" %}

{% if blocked_until %}
{% blocktranslate trimmed with time=blocked_until|date:"H:i" %}Sign-in blocked after wrong passwords until {{ time }}{% endblocktranslate %} {% if user.is_superuser %}{% translate "Unblock it if you know it was them, or set a new password below." %}{% else %}{% translate "An administrator can unblock it, or set a new password below." %}{% endif %}
{% endif %} {% if user.is_superuser %}
{% if blocked_until %}
{% csrf_token %}
{% endif %} {% if devices %}
{% csrf_token %}
{% endif %}
{% if devices %}

{% translate "Use this when a phone or computer that was signed in is lost, sold or shared." %}

{% endif %} {% endif %}
{% if name_form %}
{% csrf_token %}

{% translate "Change sign-in name" %}

{% include "_field.html" with field=name_form.username %}
{% endif %}
{% csrf_token %}

{% translate "Set a new password" %}

{% blocktranslate trimmed with name=person.first_name|default:person.username %}Use this when {{ name }} forgets their password.{% endblocktranslate %}

{% include "_field.html" with field=pw_form.new_password %} {% if user.is_superuser and not own %}
{% include "_field.html" with field=pw_form.keep %}
{% endif %}
{% if user.is_superuser and not own %}

{% translate "Delete this person" %}

{% translate "Removes their account for good, for example one made by mistake. If they left the team, turn off Can sign in instead, so their name stays on their past work." %}

{% blocktranslate trimmed with name=person.display_name %}Delete {{ name }}…{% endblocktranslate %}
{% endif %} {% endif %} {% endblock %}