Files
edx-platform/cms/templates/js/content-visibility-editor.underscore
2024-03-07 15:31:50 -04:00

50 lines
2.8 KiB
Plaintext

<form>
<h3 class="modal-section-title" id="content_visibility_label"><%- gettext('Subsection Visibility') %></h3>
<div class="modal-section-content staff-lock">
<% if (enable_hide_from_toc_ui) { %>
<div class="enable-hide-from-toc-container">
<span class="icon fa fa-solid fa-link icon-message"></span>
<p class="text-message"><%- gettext('To hide the subsections and keep them accesible through links, you must adjust it from the section that contains them.') %></p>
</div>
<% } %>
<div class="list-fields list-input content-visibility" role="group" aria-labelledby="content_visibility_label">
<label class="label">
<input class="input input-radio" name="content-visibility" type="radio" value="visible" aria-describedby="visible_description">
<%- gettext('Show entire subsection') %>
</label>
<p class='field-message' id='visible_description'> <%- gettext('Learners see the published subsection and can access its content.') %> </p>
<label class="label">
<input class="input input-radio" name="content-visibility" type="radio" value="hide_after_due" aria-describedby="hide_after_due_description">
<% if (self_paced) { %>
<%- gettext('Hide content after course end date') %>
<% } else { %>
<%- gettext('Hide content after due date') %>
<% } %>
</label>
<p class='field-message' id='hide_after_due_description'>
<% if (self_paced) { %>
<%- gettext('After the course\'s end date has passed, learners can no longer access subsection content. The subsection remains included in grade calculations.') %>
<% } else { %>
<%- gettext('After the subsection\'s due date has passed, learners can no longer access its content. The subsection remains included in grade calculations.') %>
<% } %>
</p>
<label class="label">
<input class="input input-radio" name="content-visibility" type="radio" value="staff_only" aria-describedby="staff_only_description">
<% var hide_label = gettext('Hide entire subsection'); %>
<%- hide_label %>
</label>
<p class='field-message' id='staff_only_description'> <%- gettext('Learners do not see the subsection in the course outline. The subsection is not included in grade calculations.') %> </p>
</div>
<% if (hasExplicitStaffLock && !ancestorLocked) { %>
<p class="tip tip-warning">
<%- interpolate(
gettext('If you select an option other than "%(hide_label)s", published units in this subsection become available to learners unless they are explicitly hidden.'),
{ hide_label: hide_label },
true
) %>
</p>
<% } %>
</div>
</form>