Remove deprecated cohorts management on legacy dashboard
This commit is contained in:
@@ -541,7 +541,6 @@ def instructor_dashboard(request, course_id):
|
||||
'course_errors': modulestore().get_course_errors(course.id),
|
||||
'instructor_tasks': instructor_tasks,
|
||||
'offline_grade_log': offline_grades_available(course_key),
|
||||
'cohorts_ajax_url': reverse('cohorts', kwargs={'course_key_string': course_key.to_deprecated_string()}),
|
||||
|
||||
'analytics_results': analytics_results,
|
||||
'disable_buttons': disable_buttons,
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<section class="cohort_manager" data-ajax_url="${cohorts_ajax_url}">
|
||||
<h3>${_("Cohort groups")}</h3>
|
||||
|
||||
<div class="controls" style="padding-top:15px">
|
||||
<a href="#" class="button show_cohorts">${_("Show cohorts")}</a>
|
||||
</div>
|
||||
|
||||
<ul class="errors">
|
||||
</ul>
|
||||
|
||||
<div class="summary" style="display:none">
|
||||
<h3>${_("Cohorts in the course")}</h3>
|
||||
<ul class="cohorts">
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<input class="cohort_name"/>
|
||||
<a href="#" class="button add_cohort">${_("Add cohort")}</a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="detail" style="display:none">
|
||||
<h3 class="header"></h3>
|
||||
<table class="users">
|
||||
</table>
|
||||
<span class="page_num"></span>
|
||||
|
||||
<p>
|
||||
${_("Add users by username or email. One per line or comma-separated.")}
|
||||
</p>
|
||||
<textarea cols="50" row="30" class="users_area" style="height: 200px"></textarea>
|
||||
<a href="#" class="button add_members">${_("Add cohort members")}</a>
|
||||
|
||||
<ul class="op_results">
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
@@ -1,18 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<html lang="${LANGUAGE_CODE}">
|
||||
<head>
|
||||
## "edX" should not be translated
|
||||
<%block name="pagetitle"></%block>
|
||||
|
||||
<script type="text/javascript" src="/static/js/vendor/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/static/js/course_groups/cohorts.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="<%block name='bodyclass'/>">
|
||||
<%include file="/course_groups/cohort_management.html" />
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -389,7 +389,7 @@ function goto( mode)
|
||||
<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" />
|
||||
<p class="deprecated">${_("To manage course cohorts, please visit the 'Membership' section of the instructor dashboard.")}</p>
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user