Commit cc737cb1 by Miles Steele

rename enrollment section to membership

parent 02432e05
...@@ -42,7 +42,7 @@ def instructor_dashboard_2(request, course_id): ...@@ -42,7 +42,7 @@ def instructor_dashboard_2(request, course_id):
sections = [ sections = [
_section_course_info(course_id), _section_course_info(course_id),
_section_enrollment(course_id), _section_membership(course_id),
_section_student_admin(course_id), _section_student_admin(course_id),
_section_data_download(course_id), _section_data_download(course_id),
_section_analytics(course_id), _section_analytics(course_id),
...@@ -99,11 +99,11 @@ def _section_course_info(course_id): ...@@ -99,11 +99,11 @@ def _section_course_info(course_id):
return section_data return section_data
def _section_enrollment(course_id): def _section_membership(course_id):
""" Provide data for the corresponding dashboard section """ """ Provide data for the corresponding dashboard section """
section_data = { section_data = {
'section_key': 'enrollment', 'section_key': 'membership',
'section_display_name': 'Enrollment', 'section_display_name': 'Membership',
'enroll_button_url': reverse('enroll_unenroll', kwargs={'course_id': course_id}), 'enroll_button_url': reverse('enroll_unenroll', kwargs={'course_id': course_id}),
'unenroll_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) => ...@@ -57,14 +57,14 @@ setup_instructor_dashboard = (idash_content) =>
# call setup handlers for each section # call setup handlers for each section
setup_instructor_dashboard_sections = (idash_content) -> setup_instructor_dashboard_sections = (idash_content) ->
log "setting up instructor dashboard sections" 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_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_section_analytics idash_content.find(".#{CSS_IDASH_SECTION}#analytics")
# setup the data download section # setup the data download section
setup_section_enrollment = (section) -> setup_section_membership = (section) ->
log "setting up instructor dashboard section - enrollment" log "setting up instructor dashboard section - membership"
emails_input = section.find("textarea[name='student-emails']'") emails_input = section.find("textarea[name='student-emails']'")
btn_enroll = section.find("input[name='enroll']'") btn_enroll = section.find("input[name='enroll']'")
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
} }
.instructor-dashboard-wrapper-2 section.idash-section#enrollment { .instructor-dashboard-wrapper-2 section.idash-section#membership {
div { div {
margin-top: 2em; margin-top: 2em;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment