Merge pull request #14562 from CredoReference/open_response_assessment_tab_for_instructor_dashboard
Open Response Assessment tab for Instructor Dashboard
This commit is contained in:
@@ -190,6 +190,9 @@ such that the value can be defined later than this assignment (file load order).
|
||||
}, {
|
||||
constructor: window.InstructorDashboard.sections.Certificates,
|
||||
$element: idashContent.find('.' + CSS_IDASH_SECTION + '#certificates')
|
||||
}, {
|
||||
constructor: window.InstructorDashboard.sections.OpenResponseAssessment,
|
||||
$element: idashContent.find('.' + CSS_IDASH_SECTION + '#open_response_assessment')
|
||||
}
|
||||
];
|
||||
if (edx.instructor_dashboard.proctoring !== void 0) {
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* globals _ */
|
||||
|
||||
(function(_) {
|
||||
'use strict';
|
||||
|
||||
var OpenResponseAssessment = (function() {
|
||||
function OpenResponseAssessmentBlock($section) {
|
||||
this.$section = $section;
|
||||
this.$section.data('wrapper', this);
|
||||
}
|
||||
|
||||
OpenResponseAssessmentBlock.prototype.onClickTitle = function() {
|
||||
var block = this.$section.find('.open-response-assessment');
|
||||
XBlock.initializeBlock($(block).find('.xblock')[0]);
|
||||
};
|
||||
|
||||
return OpenResponseAssessmentBlock;
|
||||
}());
|
||||
|
||||
if (typeof window.setup_debug === 'undefined') {
|
||||
// eslint-disable-next-line no-unused-vars, camelcase
|
||||
window.setup_debug = function(element_id, edit_link, staff_context) {
|
||||
// stub function.
|
||||
};
|
||||
}
|
||||
|
||||
_.defaults(window, {
|
||||
InstructorDashboard: {}
|
||||
});
|
||||
|
||||
_.defaults(window.InstructorDashboard, {
|
||||
sections: {}
|
||||
});
|
||||
|
||||
_.defaults(window.InstructorDashboard.sections, {
|
||||
OpenResponseAssessment: OpenResponseAssessment
|
||||
});
|
||||
|
||||
this.OpenResponseAssessment = OpenResponseAssessment;
|
||||
}).call(this, _);
|
||||
@@ -1482,6 +1482,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
// view - student admin
|
||||
// --------------------
|
||||
.instructor-dashboard-wrapper-2 section.idash-section#open_response_assessment {
|
||||
.open-response-assessment {
|
||||
padding-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
input[name="subject"] {
|
||||
width:600px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user