From cc737cb1b21ad02df804271675d02f90d007d2a9 Mon Sep 17 00:00:00 2001 From: Miles Steele Date: Fri, 14 Jun 2013 15:58:58 -0400 Subject: [PATCH] rename enrollment section to membership --- lms/djangoapps/instructor/views/instructor_dashboard.py | 8 ++++---- lms/static/coffee/src/instructor_dashboard.coffee | 6 +++--- lms/static/sass/course/instructor/_instructor_2.scss | 2 +- .../{enrollment.html => membership.html} | 0 4 files changed, 8 insertions(+), 8 deletions(-) rename lms/templates/courseware/instructor_dashboard_2/{enrollment.html => membership.html} (100%) diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index ea60f465af..faa5ebcef3 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -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}), } diff --git a/lms/static/coffee/src/instructor_dashboard.coffee b/lms/static/coffee/src/instructor_dashboard.coffee index 8f41ed1b22..00cf09bc4c 100644 --- a/lms/static/coffee/src/instructor_dashboard.coffee +++ b/lms/static/coffee/src/instructor_dashboard.coffee @@ -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']'") diff --git a/lms/static/sass/course/instructor/_instructor_2.scss b/lms/static/sass/course/instructor/_instructor_2.scss index fd26641561..6f5688e166 100644 --- a/lms/static/sass/course/instructor/_instructor_2.scss +++ b/lms/static/sass/course/instructor/_instructor_2.scss @@ -76,7 +76,7 @@ } -.instructor-dashboard-wrapper-2 section.idash-section#enrollment { +.instructor-dashboard-wrapper-2 section.idash-section#membership { div { margin-top: 2em; } diff --git a/lms/templates/courseware/instructor_dashboard_2/enrollment.html b/lms/templates/courseware/instructor_dashboard_2/membership.html similarity index 100% rename from lms/templates/courseware/instructor_dashboard_2/enrollment.html rename to lms/templates/courseware/instructor_dashboard_2/membership.html