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
762b0d9b
Commit
762b0d9b
authored
Nov 20, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up Manage Groups section on legacy dashboard
parent
34746013
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
37 deletions
+1
-37
lms/djangoapps/instructor/views/legacy.py
+0
-23
lms/templates/courseware/legacy_instructor_dashboard.html
+1
-14
No files found.
lms/djangoapps/instructor/views/legacy.py
View file @
762b0d9b
...
...
@@ -376,29 +376,6 @@ def instructor_dashboard(request, course_id):
return
return_csv
(
course_key
.
to_deprecated_string
()
.
replace
(
'/'
,
'-'
)
+
'-anon-ids.csv'
,
datatable
)
#----------------------------------------
# Group management
elif
'List beta testers'
in
action
:
role
=
CourseBetaTesterRole
(
course
.
id
)
datatable
=
_role_members_table
(
role
,
_
(
"List of Beta Testers"
),
course_key
)
track
.
views
.
server_track
(
request
,
"list-beta-testers"
,
{},
page
=
"idashboard"
)
elif
action
==
'Add beta testers'
:
users
=
request
.
POST
[
'betausers'
]
log
.
debug
(
"users: {0!r}"
.
format
(
users
))
role
=
CourseBetaTesterRole
(
course
.
id
)
for
username_or_email
in
split_by_comma_and_whitespace
(
users
):
msg
+=
"<p>{0}</p>"
.
format
(
add_user_to_role
(
request
,
username_or_email
,
role
,
'beta testers'
,
'beta-tester'
))
elif
action
==
'Remove beta testers'
:
users
=
request
.
POST
[
'betausers'
]
role
=
CourseBetaTesterRole
(
course
.
id
)
for
username_or_email
in
split_by_comma_and_whitespace
(
users
):
msg
+=
"<p>{0}</p>"
.
format
(
remove_user_from_role
(
request
,
username_or_email
,
role
,
'beta testers'
,
'beta-tester'
))
#----------------------------------------
# enrollment
elif
action
==
'List students who may enroll but may not have yet signed up'
:
...
...
lms/templates/courseware/legacy_instructor_dashboard.html
View file @
762b0d9b
...
...
@@ -386,20 +386,7 @@ function goto( mode)
%if modeflag.get('Manage Groups'):
%if instructor_access:
<hr
width=
"40%"
style=
"align:left"
>
<p>
<input
type=
"submit"
name=
"action"
value=
"List beta testers"
>
<p>
## Translators: days_early_for_beta should not be translated
${_("Enter usernames or emails for students who should be beta-testers, one per line, or separated by commas. They will get to "
"see course materials early, as configured via the
<tt>
days_early_for_beta
</tt>
option in the course policy.")}
</p>
<p>
<textarea
cols=
"50"
row=
"30"
name=
"betausers"
></textarea>
<input
type=
"submit"
name=
"action"
value=
"Remove beta testers"
>
<input
type=
"submit"
name=
"action"
value=
"Add beta testers"
>
</p>
<hr
width=
"40%"
style=
"align:left"
>
<p
class=
"deprecated"
>
${_("To manage beta tester roles, please visit the 'Membership' section of the instructor dashboard.")}
</p>
%if course.is_cohorted:
<
%
include
file=
"/course_groups/cohort_management.html"
/>
...
...
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