<%inherit file="base.html" />
<%namespace name='static' file='static_content.html'/>

<%! from django.core.urlresolvers import reverse %>
<%block name="title">Export Course</%block>
<%block name="bodyclass">is-signedin course tools export</%block>

<%block name="content">
<div class="wrapper-mast wrapper">
  <header class="mast has-subtitle">
    <div class="title">
      <span class="title-sub">Tools</span>
      <h1 class="title-1">Course Export</h1>
    </div>
  </header>
</div>

<div class="main-wrapper">
  <div class="inner-wrapper">
    <article class="export-overview">
      <div class="description">
        <h2>About Exporting Courses</h2>
        <p>When exporting your course, you will receive a .tar.gz formatted file that contains the following course data:</p>

        <ul>
          <li>Course Structure (Sections and sub-section ordering)</li>
          <li>Individual Units</li>
          <li>Individual Problems</li>
          <li>Static Pages</li>
          <li>Course Assets</li>
        </ul>

        <p>Your course export <strong>will not include</strong>: student data, forum/discussion data, course settings, certificates, grading information, or user data.</p>
      </div>

      <!-- default state -->
      <div class="export-form-wrapper">
        <form action="${reverse('generate_export_course', kwargs=dict(org=context_course.location.org, course=context_course.location.course, name=context_course.location.name))}" method="post" enctype="multipart/form-data" class="export-form">
          <h2>Export Course:</h2>
          
          <p class="error-block"></p>
          
          <a href="${reverse('generate_export_course', kwargs=dict(org=context_course.location.org, course=context_course.location.course, name=context_course.location.name))}" class="button-export">Download Files</a>
        </form>
      </div>

      <!-- download state: after user clicks download buttons -->
      <%doc>
      <div class="export-form-wrapper is-downloading">
        <form action="${reverse('export_course', kwargs=dict(org=context_course.location.org, course=context_course.location.course, name=context_course.location.name))}" method="post" enctype="multipart/form-data" class="export-form">
          <h2>Export Course:</h2>
          
          <p class="error-block"></p>
          
          <a href="#" class="button-export disabled">Files Downloading</a>
          <p class="message-status">Download not start? <a href="#" class="text-export">Try again</a></p>          
        </form>
      </div>
      </%doc>
    </article>
  </div>
</div>
</%block>
