Disable setting course pacing during course run.
Also adds improved styling for course pacing settings, and unit tests around query counts for self-paced courses. ECOM-2650
This commit is contained in:
@@ -42,22 +42,24 @@ var visibleToStaffOnly = visibilityState === 'staff_only';
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="wrapper-release bar-mod-content">
|
||||
<h5 class="title"><%= releaseLabel %></h5>
|
||||
<p class="copy">
|
||||
<% if (releaseDate) { %>
|
||||
<span class="release-date"><%= releaseDate %></span>
|
||||
<span class="release-with">
|
||||
<%= interpolate(
|
||||
gettext('with %(release_date_from)s'), { release_date_from: releaseDateFrom }, true
|
||||
) %>
|
||||
</span>
|
||||
<% if (!course.get('self_paced')) { %>
|
||||
<div class="wrapper-release bar-mod-content">
|
||||
<h5 class="title"><%= releaseLabel %></h5>
|
||||
<p class="copy">
|
||||
<% if (releaseDate) { %>
|
||||
<span class="release-date"><%= releaseDate %></span>
|
||||
<span class="release-with">
|
||||
<%= interpolate(
|
||||
gettext('with %(release_date_from)s'), { release_date_from: releaseDateFrom }, true
|
||||
) %>
|
||||
</span>
|
||||
|
||||
<% } else { %>
|
||||
<%= gettext("Unscheduled") %>
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<%= gettext("Unscheduled") %>
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div class="wrapper-visibility bar-mod-content">
|
||||
<h5 class="title">
|
||||
|
||||
@@ -421,11 +421,20 @@ CMS.URL.UPLOAD_ASSET = '${upload_asset_url}';
|
||||
<h2 class="title-2">${_("Course Pacing")}</h2>
|
||||
<span class="tip">${_("Set the pacing for this course")}</span>
|
||||
</header>
|
||||
<span class="msg" id="course-pace-toggle-tip"></span>
|
||||
|
||||
<input type="radio" name="self-paced" id="course-pace-self-paced" value="true"/>
|
||||
<label for="course-pace-self-paced">Self-Paced</label>
|
||||
<input type="radio" name="self-paced" id="course-pace-instructor-led" value="false"/>
|
||||
<label for="course-pace-instructor-led">Instructor Led</label>
|
||||
<ol class="list-input">
|
||||
<li class="field">
|
||||
<input type="radio" class="field-radio" name="self-paced" id="course-pace-instructor-led" value="false"/>
|
||||
<label class="course-pace-label" for="course-pace-instructor-led">Instructor-Led</label>
|
||||
<span class="tip">${_("Instructor-led courses progress at the pace that the course author sets. You can configure release dates for course content and due dates for assignments.")}</span>
|
||||
</li>
|
||||
<li class="field">
|
||||
<input type="radio" class="field-radio" name="self-paced" id="course-pace-self-paced" value="true"/>
|
||||
<label class="course-pace-label" for="course-pace-self-paced">Self-Paced</label>
|
||||
<span class="tip">${_("Self-paced courses do not have release dates for course content or due dates for assignments. Learners can complete course material at any time before the course end date.")}</span>
|
||||
</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
% endif
|
||||
|
||||
Reference in New Issue
Block a user