{% extends "studies/base.html" %} {% load i18n auth utils %} {% block title %}{{ study }} · {{ block.super }}{% endblock %} {% block breadcrumbs %} {{ block.super }} {% endblock %} {% block header %}

{{ study }}

{% if study.is_started %} {% translate 'Started' %} {% endif %} {% if study.status == study.FINISHED %} {% translate 'Finished' %} {% endif %}

{% translate 'Contact' %}: {{ study.contact_person }} {% icon 'envelope' label=study|verbose_name:'email' %} {{ study.email }} {% icon 'phone' label=study|verbose_name:'phone' %} {{ study|display:'phone' }}

{% has_perm 'studies.change_study' user as can_add_study %} {% has_perm 'studies.access_study' user study as can_access_study %} {% has_perm 'studies.change_study' user study as can_change_study %} {% has_perm 'studies.delete_study' user study as can_delete_study %} {% has_perm 'studies.approve_study' user as can_approve_study %} {% if can_access_study %} {% if can_approve_study %} {% if study.status != study.FINISHED %}
{% csrf_token %} {% if not study.is_onetime_invitation %} {% if study.status == study.EXECUTION %} {% else %} {% endif %} {% endif %}
{% else %} {% if not study.is_onetime_invitation %}
{% if study.previous_status == study.EXECUTION %} {% else %} {% endif %}
{% endif %} {% endif %} {% endif %} {% if can_change_study %}
{% csrf_token %} {% if study.status == study.FINISHED %} {% else %} {% endif %}
{% if can_add_study %} {% translate 'Duplicate' %} {% endif %} {% endif %} {% if CASTELLUM_ENABLE_STUDY_EXPORT %} {% translate 'Export' %} {% endif %} {% if study.status == study.FINISHED and can_delete_study %} {% translate 'Delete' %} {% endif %} {% endif %}
{% endblock %}