course-create-rerun.html 8.08 KB
Newer Older
1
<%page expression_filter="h"/>
Mathew Peterson committed
2
<%inherit file="base.html" />
3
<%def name="online_help_token()"><% return "course_rerun" %></%def>
4 5 6
<%!
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
7
from openedx.core.djangolib.js_utils import js_escaped_string
8
%>
Mathew Peterson committed
9 10 11 12 13

<%block name="title">${_("Create a Course Rerun of:")}</%block>
<%block name="bodyclass">is-signedin view-course-create view-course-create-rerun</%block>

<%block name="jsextra">
14
  <script type="text/javascript">
15
    var source_course_key = "${source_course_key | n, js_escaped_string}";
16 17 18 19 20 21
  </script>
</%block>
<%block name="requirejs">
  require(["js/factories/course_create_rerun"], function (CourseCreateRerunFactory) {
      CourseCreateRerunFactory();
  });
Mathew Peterson committed
22 23 24
</%block>

<%block name="content">
25
<div id="content">
Mathew Peterson committed
26 27 28 29 30 31
  <div class="wrapper-mast wrapper">
    <header class="mast mast-wizard has-actions">
      <h1 class="page-header">
        <span class="page-header-sub">${_("Create a re-run of a course")}</span>
      </h1>

32
      <nav class="nav-actions" aria-label="${_('Page Actions')}">
33
        <h3 class="sr">${_("Page Actions")}</h3>
Mathew Peterson committed
34 35 36 37 38 39 40 41 42
        <ul>
          <li class="nav-item">
            <a href="" class="button cancel-button">${_("Cancel")}</a>
          </li>
        </ul>
      </nav>

      <h2 class="page-header-super course-original">
        <span class="sr">${_("You are creating a re-run from:")}</span>
43 44
        <span class="course-original-title-id">${source_course_key.org} ${source_course_key.course} ${source_course_key.run}</span>
        <span class="course-original-title">${display_name}</span>
Mathew Peterson committed
45 46
      </h2>
    </header>
47
  </div>
Mathew Peterson committed
48 49 50 51 52 53 54 55 56 57 58 59

  <div class="wrapper-content wrapper">
    <div class="inner-wrapper">
      <section class="content">
        <article class="content-primary">
          <div class="introduction">
            <div class="copy">
              <p>
                ${_("Provide identifying information for this re-run of the course. The original course is not affected in any way by a re-run.")}
                <strong>${_("Note: Together, the organization, course number, and course run must uniquely identify this new course instance.")}</strong>
              <p>
            </div>
60
          </div>
Mathew Peterson committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

          <div class="wrapper-rerun-course">
            <form class="form-create rerun-course course-info" id="rerun-course-form" name="rerun-course-form">
              <!-- NOTE: this element's contents should be only included when they are needed and not kept in the DOM for all states -->
              <div class="wrapper-error is-hidden">
                <div id="course_rerun_error" name="course_rerun_error" class="message message-status error" role="alert">
                </div>
              </div>

              <div class="wrapper-form">
                <fieldset>
                  <legend class="sr">${_("Required Information to Create a re-run of a course")}</legend>

                  <ol class="list-input">
                    <li class="field text required" id="field-course-name">
                      <label for="rerun-course-name">${_("Course Name")}</label>
77
                      <input class="rerun-course-name" id="rerun-course-name" type="text" name="rerun-course-name" aria-required="true" value="${display_name}" placeholder="${_('e.g. Introduction to Computer Science')}" />
Mathew Peterson committed
78 79 80 81 82
                      <span class="tip">
                        ${_("The public display name for the new course. (This name is often the same as the original course name.)")}
                      </span>
                      <span class="tip tip-error is-hidden"></span>
                    </li>
83
                    <li class="field text required">
Mathew Peterson committed
84
                      <label for="rerun-course-org">${_("Organization")}</label>
85
                      <input class="rerun-course-org" id="rerun-course-org" type="text" name="rerun-course-org" aria-required="true" value="${source_course_key.org}" placeholder="${_('e.g. UniversityX or OrganizationX')}" />
Mathew Peterson committed
86 87 88 89 90 91 92 93
                      <span class="tip">
                        ${_("The name of the organization sponsoring the new course. (This name is often the same as the original organization name.)")}
                        <strong class="tip-note" class="tip-note">${_("Note: No spaces or special characters are allowed.")}</strong>
                      </span>
                      <span class="tip tip-error is-hidden"></span>
                    </li>

                    <li class="row">
94 95 96
                      <div class="column field text" id="field-course-number">
                        <label class="rerun-course-number-label" for="rerun-course-number">${_("Course Number")}</label>
                        <input class="rerun-course-number" id="rerun-course-number" type="text" name="rerun-course-number" value="${source_course_key.course}" placeholder="${_('e.g. CS101')}" readonly="readonly"/>
Mathew Peterson committed
97
                        <span class="tip">
98
                          ${_("The unique number that identifies the new course within the organization.  (This number will be the same as the original course number and cannot be changed.)")}
Mathew Peterson committed
99 100 101 102 103 104
                        </span>
                        <span class="tip tip-error is-hidden"></span>
                      </div>

                      <div class="column field text required" id="field-course-run">
                        <label for="rerun-course-run">${_("Course Run")}</label>
105
                        <input class="rerun-course-run" id="rerun-course-run" type="text" name="rerun-course-run" aria-required="true" placeholder="${_('e.g. 2014_T1')}" />
Mathew Peterson committed
106 107 108 109 110 111 112 113 114
                        <span class="tip">
                          ${_("The term in which the new course will run. (This value is often different than the original course run value.)")}
                          <strong class="tip-note" class="tip-note">${_("Note: No spaces or special characters are allowed.")}</strong>
                        </span>
                        <span class="tip tip-error is-hidden"></span>
                      </div>
                    </li>
                  </ol>

115
                  <input type="hidden" value="${allow_unicode_course_id}" class="allow-unicode-course-id" /> <!-- TODO: need to add support for allow_unicode_course_id in real view's template -->
Mathew Peterson committed
116 117 118 119
                </fieldset>
              </div>

              <div class="actions">
120
                <button type="submit" class="action action-primary rerun-course-save is-disabled" aria-disabled="true" >${_('Create Re-run')}</button>
Mathew Peterson committed
121 122 123 124 125
                <button type="button" class="action action-secondary action-cancel rerun-course-cancel">${_('Cancel')}</button>
              </div>
            </form>
          </div>

126
        </article>
Mathew Peterson committed
127

128
        <aside class="content-supplementary" role="complementary">
Mathew Peterson committed
129 130 131
          <div class="bit">
            <h3 class="title-3">${_("When will my course re-run start?")}</h3>
            <ul class="list-details">
132
              <li class="item-detail">${_("The new course is set to start on January 1, 2030 at midnight (UTC).")}</li>
Mathew Peterson committed
133 134 135 136 137 138
            </ul>
          </div>

          <div class="bit">
            <h3 class="title-3">${_("What transfers from the original course?")}</h3>
            <ul class="list-details">
139
              <li class="item-detail">${_("The new course has the same course outline and content as the original course. All problems, videos, announcements, and other files are duplicated to the new course.")}</li>
Mathew Peterson committed
140 141 142 143 144 145
            </ul>
          </div>

          <div class="bit">
            <h3 class="title-3">${_("What does not transfer from the original course?")}</h3>
            <ul class="list-details">
146
              <li class="item-detail">${_("You are the only member of the new course's staff. No students are enrolled in the course, and there is no student data. There is no content in the discussion topics or wiki.")}</li>
Mathew Peterson committed
147 148
            </ul>
          </div>
149 150

          <div class="bit external-help">
151 152
            <a href="${get_online_help_info(online_help_token())['doc_url']}" target="_blank" class="button external-help-button">${_("Learn more about Course Re-runs")}</a>
          </div>
153
        </aside>
Mathew Peterson committed
154 155

      </section>
156
    </div>
Mathew Peterson committed
157 158 159

  </div>
</div>
160
</%block>