{% extends "base.html" %} {% load crispy_forms_tags %} {% load clean from bleach %} {% load guardian_tags %} {% block breadcrumbs %} {% get_obj_perms request.user for reader_study as "reader_study_perms" %}
{% endblock %} {% block content %} {% get_obj_perms request.user for reader_study as "reader_study_perms" %} {% if "change_readerstudy" in reader_study_perms %} {% if permission_request %}You already have permission to read this study, please click here to continue.
{% else %}You currently do not have permission to read this study.
{% if not permission_request %}If you would like to read the reader study, you can request permission here. An email will be sent to the reader study's editors who will review your request.
{% else %}You have already sent a permission request. The status of your request is {{ permission_request.get_status_display|lower }}.
{% if permission_request.status == permission_request.REJECTED %} {% if permission_request.rejection_text %}The reader study's editors have left the following reason for the rejection:
{{ permission_request.rejection_text }}
{% endif %} {% endif %} {% endif %} {% endif %} {% endif %} {% endblock %}