diff --git a/app/course/courseApp.js b/app/course/courseApp.js index e785a5fb1..4312e3dee 100644 --- a/app/course/courseApp.js +++ b/app/course/courseApp.js @@ -24,6 +24,7 @@ import censusChart from './directives/censusChart.js'; import courseTable from './directives/courseTable.js'; import activeFilters from './directives/activeFilters/activeFilters.js'; import moveCourseModal from './directives/moveCourseModal/moveCourseModal.js'; +import convertSectionsModal from './directives/convertSectionsModal/convertSectionsModal.js'; // Dependencies var dependencies = [ @@ -88,6 +89,7 @@ const courseApp = angular.module("courseApp", dependencies) // eslint-disable-li .directive('censusChart', censusChart) .directive('courseTable', courseTable) .directive('activeFilters', activeFilters) +.directive('convertSectionsModal', convertSectionsModal) .constant('ActionTypes', { INIT_STATE: "INIT_STATE", NEW_COURSE: "NEW_COURSE", @@ -97,6 +99,7 @@ const courseApp = angular.module("courseApp", dependencies) // eslint-disable-li GET_COURSE_CENSUS: "GET_COURSE_CENSUS", BEGIN_FETCH_CENSUS: "BEGIN_FETCH_CENSUS", ADD_SECTION_GROUP: "ADD_SECTION_GROUP", + CREATE_SECTION_GROUP: "CREATE_SECTION_GROUP", REMOVE_SECTION_GROUP: "REMOVE_SECTION_GROUP", UPDATE_SECTION_GROUP: "UPDATE_SECTION_GROUP", TOGGLE_TERM_FILTER: "TOGGLE_TERM_FILTER", @@ -124,7 +127,8 @@ const courseApp = angular.module("courseApp", dependencies) // eslint-disable-li CLOSE_COURSE_DELETION_MODAL: "CLOSE_COURSE_DELETION_MODAL", TOGGLE_MOVE_COURSE_MODAL: "TOGGLE_MOVE_COURSE_MODAL", DELETE_MULTIPLE_COURSES: "DELETE_MULTIPLE_COURSES", - MASS_ASSIGN_TAGS: "MASS_ASSIGN_TAGS" + MASS_ASSIGN_TAGS: "MASS_ASSIGN_TAGS", + TOGGLE_CONVERT_SECTIONS_MODAL: "TOGGLE_CONVERT_SECTIONS_MODAL" }); export default courseApp; diff --git a/app/course/directives/convertSectionsModal/convertSectionsModal.css b/app/course/directives/convertSectionsModal/convertSectionsModal.css new file mode 100644 index 000000000..0be1df4cb --- /dev/null +++ b/app/course/directives/convertSectionsModal/convertSectionsModal.css @@ -0,0 +1,34 @@ +.convert-sections-modal .convert-sections-modal-footer { + padding: 10px; + display: flex; + justify-content: flex-end; + padding-bottom: 15px; + padding-top: 15px; +} + +.convert-sections-modal .convert-sections-warning { + padding: 20px; +} + +.convert-sections-modal .sub-detail { + font-weight: bold; + font-size: 14px; + padding-top: 15px; +} + +.convert-sections-modal .btn-default { + background-color: white; + margin-right: 10px; +} + +.convertion-details { + display: flex; +} + +.conversion-details-example { + flex: 50%; +} + +.course-details_update-sequence { + width: 135px; +} diff --git a/app/course/directives/convertSectionsModal/convertSectionsModal.html b/app/course/directives/convertSectionsModal/convertSectionsModal.html new file mode 100644 index 000000000..dcb19439e --- /dev/null +++ b/app/course/directives/convertSectionsModal/convertSectionsModal.html @@ -0,0 +1,87 @@ +