{% load i18n %}
{% block content %}
<div class="course-information">
    <div class="info-item">
        <div class="heading">
            {% trans "Title" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">{{ object.title }}</div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Number" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">{{ object.number }}</div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Course ID" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
          {% with  object.lms_course_id as field %}
            {% include "publisher/_render_required_field.html" %}
          {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Sub Title" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
          {% with  object.short_description as field %}
            {% include "publisher/_render_required_field.html" %}
          {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "School" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">{{ object.organization_key }}</div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Subject" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
        {% if object.subjects.all %}
            {% for subject in object.subjects %}{{ subject.name }}{% endfor %}
        {% else %}
            {% trans "(Required) Not yet added" %}
        {% endif %}
        </div>
    </div>

    <div class="info-item">
        <div class="heading">
            {% trans "XSeries" %}
           {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
            {% if object.is_xseries  %}
                {{ object.xseries_name }}
            {% else %}
                {% trans "(Optional) Not yet added" %}
            {% endif %}
        </div>
    </div>

    <div class="info-item">
        <div class="heading">
            {% trans "Start Date" %}
           {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">{{ object.start|date:"Y-m-d" }}</div>
    </div>
    <div class="info-item">
        <div class="heading">{% trans "End Date" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">{{ object.end|date:"Y-m-d" }}</div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Self Paced" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">{{ object.pacing_type }}</div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Staff" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div>
            {% if not object.course_staff %}
                {% trans "(Required) Not yet added" %}
            {% else %}
                {% for obj in object.course_staff %}
                  <div class="course-staff">
                    <img src="{{ obj.image_url }}" alt=""/>

                    <div class="staff-detail">
                      <div class="name">{{ obj.full_name }}</div>
                      <div>{{ obj.position }}</div>
                      <div class="organization">{{ obj.organization }}</div>
                    </div>
                  </div>
                {% endfor %}
            {% endif %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Estimated Effort" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
            {% if object.min_effort and object.max_effort %}
                {{ object.min_effort }} {% trans "to" %} {{ object.max_effort }} {% trans "hours per week" %}
            {% else %}
                {% trans "(Optional) Not yet added" %}
            {% endif %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Languages" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
          {% with  object.language.name as field %}
            {% include "publisher/_render_required_field.html" %}
          {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Video Translations" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
          {% with  object.transcript_languages as field %}
            {% include "publisher/_render_required_field.html" %}
          {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Level" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
          {% with  object.level_type as field %}
            {% include "publisher/_render_required_field.html" %}
          {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "About this Course" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
          {% with  object.full_description as field %}
            {% include "publisher/_render_required_field.html" %}
          {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "What you'll learn" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
            {% with  object.expected_learnings as field %}
                {% include "publisher/_render_required_field.html" %}
            {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Prerequisite" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
            {% with  object.prerequisite as field %}
                {% include "publisher/_render_required_field.html" %}
            {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Keywords" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
            {% with  object.keywords as field %}
                {% include "publisher/_render_optional_field.html" %}
            {% endwith %}
        </div>
    </div>
    <div class="info-item">
        <div class="heading">
            {% trans "Sponsors" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
            {% if object.wrapped_obj.sponsor.all %}
                {% for sponsor in object.wrapped_obj.sponsor.all %}
                    {{ sponsor.name }}<br>
                {% endfor %}
            {% else %}
                {% trans "(Optional) Not yet added" %}
            {% endif %}
        </div>
    </div>
     <div class="info-item">
        <div class="heading">
            {% trans "Price" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
            {% with  object.verified_seat_price as field %}
                {% include "publisher/_render_optional_field.html" %}
            {% endwith %}
        </div>
    </div>

    <h3 class="hd-3 de-emphasized">{% trans "Enrollments" %}</h3>
    <div class="info-item">
        <div class="heading">
            {% trans "Seats" %}
            {% include "publisher/course_run_detail/_clipboard.html" %}
        </div>
        <div class="copy">
        {% if object.wrapped_obj.seats.all %}
            {% for seat in object.wrapped_obj.seats.all %}
                <span>{{ seat.type }}</span>
            {% endfor %}
        {% else %}
            {% trans "(Required) Not yet added" %}
        {% endif %}
        </div>
    </div>
</div>
<div class="clearfix"></div>
{% endblock %}
