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

{{ study }}

{% for tag in study.tags.all %} {{ tag }} {% endfor %} {% 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' }} {% if 'url' in CASTELLUM_ENABLE_STUDY_METADATA and study.url %} {% icon 'globe' label=study|verbose_name:'url' %} {{ study|display:'url' }} {% endif %}

{% 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_approve_study %} {% if study.status != study.FINISHED %}
{% csrf_token %} {% if study.status == study.EXECUTION %} {% else %} {% endif %}
{% else %}
{% if study.previous_status == study.EXECUTION %} {% else %} {% endif %}
{% endif %} {% endif %} {% if can_access_study %} {% if can_change_study %}
{% csrf_token %} {% if study.status == study.FINISHED %} {% else %} {% endif %}
{% if can_add_study %} {% translate 'Duplicate' %} {% endif %} {% endif %} {% if study.status == study.FINISHED and can_delete_study %} {% translate 'Delete' %} {% endif %} {% endif %}
{% endblock %}