{% extends "recruitment/contact_base.html" %} {% load i18n static bootstrap4 utils auth %} {% block title %}{% translate "Recruitment" %} · {{ block.super }}{% endblock %} {% block content %} {% if not object.match %} {% else %} {% if object.match == 'incomplete' %} {% endif %} {% if subject.contact.has_guardian and study.geo_filter %} {% endif %} {% endif %} {% if not subject.has_consent %} {% endif %} {% has_perm 'appointments.change_appointment' user study as can_change_appointment %}
{% include 'contacts/__contact.html' with subject=subject %}
{% if CASTELLUM_GENERAL_RECRUITMENT_TEXT %} {{ CASTELLUM_GENERAL_RECRUITMENT_TEXT|urlize|linebreaks }} {% endif %} {% if study.recruitment_text %} {{ study.recruitment_text|urlize|linebreaks }} {% endif %}
{% translate 'Type of study' %}
{{ study|display:'study_type' }}
{% translate 'Duration of sessions in minutes' %}
{% if sessions %} {% for session in sessions %} {{ session.duration }}{% if not forloop.last %}, {% endif %} {% endfor %} {% else %} — {% endif %}
{{ study|verbose_name:'sessions_start' }}
{{ study|display:'sessions_start' }}
{{ study|verbose_name:'sessions_end' }}
{{ study|display:'sessions_end' }}
{{ study|verbose_name:'consent' }}
{% if study.consent %} {{ study.consent.name|basename }} {% else %} — {% endif %}
{% if study.has_exclusion_criteria %}
{% if study.exclusion_criteria %} {{ study.exclusion_criteria|urlize|linebreaks }} {% endif %} {% if CASTELLUM_GENERAL_EXCLUSION_CRITERIA %}

{% translate 'General criteria' %}

{{ CASTELLUM_GENERAL_EXCLUSION_CRITERIA|urlize|linebreaks }} {% endif %} {% for study_type in study.study_type.all %} {% if study_type.exclusion_criteria %}

{{ study_type.label }}

{{ study_type.exclusion_criteria|urlize|linebreaks }} {% endif %} {% endfor %} {% bootstrap_field form.exclusion_criteria_checked %}
{% endif %} {% if can_change_appointment %}
{% if study.session_instructions %} {{ study.session_instructions|urlize|linebreaks }} {% endif %}
{{ study|verbose_name:'sessions_start' }}
{{ study|verbose_name:'sessions_end' }}

{% blocktranslate with reminder_period=reminder_period %}The subject will be reminded {{ reminder_period }} days before each appointment.{% endblocktranslate %}

{% for entry in form.appointments %}
{% bootstrap_field entry.field form_group_class="" %} {% if entry.invitation_url == 'not-invited' %}

{% translate 'Scheduler only available for participating subjects.' %}

{% elif entry.invitation_url %} {% translate 'Select timeslot for this subject' %} {% endif %}
{% endfor %} {% translate 'Calendar' %}
{% endif %}
{% include 'utils/form_errors.html' with form=form %} {% if study.has_exclusion_criteria %} {% endif %} {% csrf_token %} {% bootstrap_field form.status %}
{% bootstrap_field form.followup_date %}
{% bootstrap_field form.followup_time %}
{% bootstrap_field form.assigned_recruiter %}
{% has_perm 'subjects.view_subject' user as can_view_subject%} {% if can_view_subject and context == 'subjects:participation-list' %} {% translate 'Back to subject' %} {% else %} {% translate 'Back to list' %} {% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}