<%! from django.utils.translation import ugettext as _ %>
<%page args="section_data"/>

<h2>${_("Course Information")}</h2>

<div class="basic-data">
  ${_("Course Name")}:
  ${ section_data['course_display_name'] }
</div>

<div class="basic-data">
  ${_("Course ID")}:
  ${ section_data['course_id'] }
</div>

<div class="basic-data">
  ${_("Students Enrolled")}:
  ${ section_data['enrollment_count'] }
</div>

<div class="basic-data">
  ${_("Started")}:
  ${ section_data['has_started'] }
</div>

<div class="basic-data">
  ${_("Ended")}:
  ${ section_data['has_ended'] }
</div>

<div class="basic-data">
  ${_("Grade Cutoffs")}:
  ${ section_data['grade_cutoffs'] }
</div>

## <div class="basic-data">
##   Offline Grades Available:
##   ${ section_data['offline_grades'] }
## </div>

%if len(section_data['course_errors']):
  <div class="course-errors-wrapper">
    <div class="toggle-wrapper">
      <h2 class="title">${_("Course Warnings")}:</h2>
      <div class="triangle"></div>
    </div>
    <div class="course-errors-visibility-wrapper">
      %for error in section_data['course_errors']:
        <div class="course-error">
          <code class=course-error-first>  ${ error[0] } </code><br>
          <code class=course-error-second> ${ error[1] } </code>
        </div>
      %endfor
    </div>
  </div>
%endif
