diff --git a/cms/static/js/spec/views/pages/course_outline_spec.js b/cms/static/js/spec/views/pages/course_outline_spec.js index cda8888aee..c083eb8ec1 100644 --- a/cms/static/js/spec/views/pages/course_outline_spec.js +++ b/cms/static/js/spec/views/pages/course_outline_spec.js @@ -131,7 +131,7 @@ describe('CourseOutlinePage', function() { group_access: {}, user_partition_info: {}, hide_from_toc: false, - enable_hide_from_toc_ui: true + enable_hide_from_toc_ui: true, }, options, {child_info: {children: children}}); }; diff --git a/cms/static/js/views/modals/course_outline_modals.js b/cms/static/js/views/modals/course_outline_modals.js index 532e2ad10c..aac0d7aa1e 100644 --- a/cms/static/js/views/modals/course_outline_modals.js +++ b/cms/static/js/views/modals/course_outline_modals.js @@ -1192,7 +1192,8 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview', AbstractVisibilityEditor.prototype.getContext.call(this), { hide_after_due: this.modelVisibility() === 'hide_after_due', - self_paced: course.get('self_paced') === true + self_paced: course.get('self_paced') === true, + enable_hide_from_toc_ui: this.model.get('enable_hide_from_toc_ui'), } ); } diff --git a/cms/static/sass/elements/_modal-window.scss b/cms/static/sass/elements/_modal-window.scss index c43daf825c..82c6f3da4c 100644 --- a/cms/static/sass/elements/_modal-window.scss +++ b/cms/static/sass/elements/_modal-window.scss @@ -202,6 +202,33 @@ min-height: 95px; } + .enable-hide-from-toc-container { + background: #E5F1F8; + padding: 20px 32px; + margin: 16px 0px; + border-radius: 10px; + display: flex; + flex-direction: row; + justify-content: space-between; + + .icon-message { + color: white; + background: #0075B4; + padding: 8px; + border-radius: 50%; + transform: rotate(90deg); + font-size: 16px; + height: 18px; + width: 20px; + } + + .text-message { + padding: 0px 10px; + word-wrap: break-word; + font-weight: 500; + } + } + .list-fields, .list-actions { display: inline-block; diff --git a/cms/templates/js/content-visibility-editor.underscore b/cms/templates/js/content-visibility-editor.underscore index 083486be03..4eef117943 100644 --- a/cms/templates/js/content-visibility-editor.underscore +++ b/cms/templates/js/content-visibility-editor.underscore @@ -1,6 +1,12 @@