{% extends "base.html" %} {% comment %} * Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ * Contact: beat.support@idiap.ch * * This file is part of the beat.web module of the BEAT platform. * * Commercial License Usage * Licensees holding valid commercial BEAT licenses may use this file in * accordance with the terms contained in a written agreement between you * and Idiap. For further information contact tto@idiap.ch * * Alternatively, this file may be used under the terms of the GNU Affero * Public License version 3 as published by the Free Software and appearing * in the file LICENSE.AGPL included in the packaging of this file. * The BEAT platform is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. * * You should have received a copy of the GNU Affero Public License along * with the BEAT platform. If not, see http://www.gnu.org/licenses/. {% endcomment %} {% load fingerprint %} {% load ui_tags %} {% load gravatar %} {% load registration_tags %} {% load account_tags %} {% block title %}Settings for {{ request.user.first_name }} ({{ request.user.username }}){% endblock %} {% block stylesheets %} {{ block.super }} {% endblock %} {% block scripts %} {{ block.super }} {% csrf_token %} {% endblock %} {% block content %}
{% with 48 as width %}

Settings for user {{ request.user.first_name }} ({{ request.user.username }})

{% endwith %}
Notifications

Use this form to adjust account settings.

{% csrf_token %} {% for account_settings_form in form.non_field_errors %} {% endfor %}
Modify password
{% csrf_token %} {% for password_change_form in form.non_field_errors %} {% endfor %}
{{ password_change_form.old_password.label_tag }} {{ password_change_form.old_password|tabindex:4|addclass:"form-control" }} {% for error in password_change_form.old_password.errors %} {% endfor %}
{{ password_change_form.new_password1.label_tag }} {{ password_change_form.new_password1|tabindex:5|addclass:"form-control" }} {% for error in password_change_form.new_password1.errors %} {% endfor %}
{{ password_change_form.new_password2.label_tag }} {{ password_change_form.new_password2|tabindex:6|addclass:"form-control" }} {% for error in password_change_form.new_password2.errors %} {% endfor %}
Show/Modify token
{% csrf_token %}
{% if not user.profile.is_godfather and not user.is_superuser %}
Account management {% if user.profile.status == 'A' %} Status Accepted {% elif user.profile.status == 'R' %} {% if user.profile.supervision_key == None %} Status Rejected {% else %} Status Pending {% endif %} {% elif user.profile.status == 'Y' %} Status Revalidation Required {% endif %}
{% csrf_token %}
{% if user.profile.status == 'A' %}
  • Status is currently accepted: No action is directly required

  • Supervision Information

    • Supervisor: {{ supervisiontrack.godfather.username }}
    • Supervision start date: {{ supervisiontrack.start_date }}
    • Supervision last validation date: {{ supervisiontrack.last_validation_date }}
    • Supervision expiration date: {{ supervisiontrack.expiration_date }}
    {% elif user.profile.status == 'R' %} {% if user.profile.supervision_key == None %}
  • Status is rejected: You need to find a new supervisor

  • General Information

    • You need to find a new supervisor to continue using your account
    • Deadline account blockage date (if no supervisor): {{ user.profile.rejection_date }}
    • If your account gets blocked you can still follow the account reactivation procedure to re-activate it.
    {% else %}
  • Status is pending: You need to wait approval from supervisor

  • General Information about a pending request

    • Pending request made to supervisor: {{ supervisiontrack.godfather.username }}
    • Deadline account blockage date (if no supervisor): {{ user.profile.rejection_date }}
    • You need to be patient until this supervisor accepts your request. An email was sent about your request, but in the meantime you can remind him to accept your supervision.
      If this supervisor rejects your supervision request, you will be informed and you will get the opportunity to make a new one.
      If your account gets blocked you can still follow the account reactivation procedure to re-activate it.
    {% endif %}
    {% elif user.profile.status == 'Y' %}
  • Revalidation required: You need to confirm that you wish to revalidate your account (year basis check)

  • General Information

    • Supervisor: {{ supervisiontrack.godfather.username }}
    • Supervision Track started on: {{ supervisiontrack.start_date }}
    • Supervision Track last validation date: {{ supervisiontrack.last_validation_date }}
    • Supervision Track expiration date: {{ supervisiontrack.expiration_date }}
    {% endif %}
    {% else %} {% if supervisiontracks_pending|length > 0 or supervisiontracks_valid|length > 0 %}
    Supervision management
    {% csrf_token %}
    {% if supervisiontracks_pending|length > 0 %}
  • Pending requests: You have a few days to accept or reject these supervision requests

  • {% for supervisiontrack_pending in supervisiontracks_pending%} {% endfor %}
    Firstname Lastname Username Email Actions
    {{supervisiontrack_pending.supervisee.first_name}} {{supervisiontrack_pending.supervisee.last_name}} {{supervisiontrack_pending.supervisee.username}} {{supervisiontrack_pending.supervisee.email}}

    {% endif %} {% if supervisiontracks_valid|length > 0 %}
  • Supervision list
  • {% for supervisiontrack_valid in supervisiontracks_valid%} {% if supervisiontrack_valid.supervisee.profile.status == 'A' %} {% else %} {% endif %} {% endfor %}
    Firstname Lastname Username Email Start Date Expiration Date Actions
    {{supervisiontrack_valid.supervisee.first_name}} {{supervisiontrack_valid.supervisee.last_name}} {{supervisiontrack_valid.supervisee.username}} {{supervisiontrack_valid.supervisee.email}} {{supervisiontrack_valid.start_date}} {{supervisiontrack_valid.expiration_date}}
  • Valid supervisees are marked in green and supervisees that are under a revalidation process (yearly basis) are marked in yellow. You can remind them to revalidate their account before the expiration date or else their account will get blocked (and need to pass through an account reactivation procedure)
    {% endif %}
  • {% endif %} {% endif %} {% change_supervisor "change_supervisor" %} {% account_renew "account_renew" %} {% validate_supervisee "validate_supervisee" %} {% remove_supervisee "remove_supervisee" %} {% endblock %}