rename enrollment section to membership
This commit is contained in:
@@ -42,7 +42,7 @@ def instructor_dashboard_2(request, course_id):
|
||||
|
||||
sections = [
|
||||
_section_course_info(course_id),
|
||||
_section_enrollment(course_id),
|
||||
_section_membership(course_id),
|
||||
_section_student_admin(course_id),
|
||||
_section_data_download(course_id),
|
||||
_section_analytics(course_id),
|
||||
@@ -99,11 +99,11 @@ def _section_course_info(course_id):
|
||||
return section_data
|
||||
|
||||
|
||||
def _section_enrollment(course_id):
|
||||
def _section_membership(course_id):
|
||||
""" Provide data for the corresponding dashboard section """
|
||||
section_data = {
|
||||
'section_key': 'enrollment',
|
||||
'section_display_name': 'Enrollment',
|
||||
'section_key': 'membership',
|
||||
'section_display_name': 'Membership',
|
||||
'enroll_button_url': reverse('enroll_unenroll', kwargs={'course_id': course_id}),
|
||||
'unenroll_button_url': reverse('enroll_unenroll', kwargs={'course_id': course_id}),
|
||||
}
|
||||
|
||||
@@ -57,14 +57,14 @@ setup_instructor_dashboard = (idash_content) =>
|
||||
# call setup handlers for each section
|
||||
setup_instructor_dashboard_sections = (idash_content) ->
|
||||
log "setting up instructor dashboard sections"
|
||||
setup_section_enrollment idash_content.find(".#{CSS_IDASH_SECTION}#enrollment")
|
||||
setup_section_data_download idash_content.find(".#{CSS_IDASH_SECTION}#data_download")
|
||||
setup_section_membership idash_content.find(".#{CSS_IDASH_SECTION}#membership")
|
||||
setup_section_analytics idash_content.find(".#{CSS_IDASH_SECTION}#analytics")
|
||||
|
||||
|
||||
# setup the data download section
|
||||
setup_section_enrollment = (section) ->
|
||||
log "setting up instructor dashboard section - enrollment"
|
||||
setup_section_membership = (section) ->
|
||||
log "setting up instructor dashboard section - membership"
|
||||
|
||||
emails_input = section.find("textarea[name='student-emails']'")
|
||||
btn_enroll = section.find("input[name='enroll']'")
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
}
|
||||
|
||||
|
||||
.instructor-dashboard-wrapper-2 section.idash-section#enrollment {
|
||||
.instructor-dashboard-wrapper-2 section.idash-section#membership {
|
||||
div {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user