TNL-4906 Subsections now use radio buttons, to allow for "hide after due" as a visibility option. Also, all tabs have been consolidated to "Basic" and "Advanced", and visibility options have moved there. Documentation links are updated to assist course authors with the new visibility options. Tests have also been updated, and the changes suggested in TNL-4951 are included.
35 lines
2.2 KiB
Plaintext
35 lines
2.2 KiB
Plaintext
<form>
|
|
<h3 class="modal-section-title" id="content_visibility_label"><%- gettext('Subsection Visibility') %></h3>
|
|
<div class="modal-section-content staff-lock">
|
|
<ul class="list-fields list-input content-visibility" role="group" aria-labelledby="content_visibility_label">
|
|
<li class="field-radio">
|
|
<label class="label">
|
|
<input class="input input-radio" name="content-visibility" type="radio" value="visible" aria-described-by"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>
|
|
</li>
|
|
<li class="field-radio">
|
|
<label class="label">
|
|
<input class="input input-radio" name="content-visibility" type="radio" value="hide_after_due" aria-described-by="hide_after_due_description">
|
|
<%- gettext('Hide content after due date') %>
|
|
</label>
|
|
<p class='field-message' id='hide_after_due_description'> <%- gettext('After the subsection\'s due date has passed, learners can no longer access its content. The subsection remains included in grade calculations.') %> </p>
|
|
</li>
|
|
<li class="field-radio">
|
|
<label class="label">
|
|
<input class="input input-radio" name="content-visibility" type="radio" value="staff_only" aria-described-by="staff_only_description">
|
|
<%- gettext('Hide entire subsection') %>
|
|
</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>
|
|
</li>
|
|
</ul>
|
|
|
|
<% if (hasExplicitStaffLock && !ancestorLocked) { %>
|
|
<p class="tip tip-warning">
|
|
<%- gettext('Units inherit the visibility setting of the subsection they are in. If you make this subsection visible to learners, published units that were previously hidden also become visible. Only units that were explicitly hidden remain hidden regardless of the option you select for this subsection.') %>
|
|
</p>
|
|
<% } %>
|
|
</div>
|
|
</form>
|