Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
cc737cb1
Commit
cc737cb1
authored
Jun 14, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename enrollment section to membership
parent
02432e05
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
lms/djangoapps/instructor/views/instructor_dashboard.py
+4
-4
lms/static/coffee/src/instructor_dashboard.coffee
+3
-3
lms/static/sass/course/instructor/_instructor_2.scss
+1
-1
lms/templates/courseware/instructor_dashboard_2/membership.html
+0
-0
No files found.
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
cc737cb1
...
...
@@ -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
}),
}
...
...
lms/static/coffee/src/instructor_dashboard.coffee
View file @
cc737cb1
...
...
@@ -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']'"
)
...
...
lms/static/sass/course/instructor/_instructor_2.scss
View file @
cc737cb1
...
...
@@ -76,7 +76,7 @@
}
.instructor-dashboard-wrapper-2
section
.idash-section
#
enrollment
{
.instructor-dashboard-wrapper-2
section
.idash-section
#
membership
{
div
{
margin-top
:
2em
;
}
...
...
lms/templates/courseware/instructor_dashboard_2/
enrollment
.html
→
lms/templates/courseware/instructor_dashboard_2/
membership
.html
View file @
cc737cb1
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment