Merge pull request #10478 from mitocw/enhancement/aq/disable_auto_enrol_ccx

Disabled auto enroll in ccx coach's enrollment tab
This commit is contained in:
Peter Pinch
2015-11-04 11:28:01 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -420,7 +420,7 @@ def ccx_invite(request, course, ccx=None):
action = request.POST.get('enrollment-button')
identifiers_raw = request.POST.get('student-ids')
identifiers = _split_input_list(identifiers_raw)
auto_enroll = True if 'auto-enroll' in request.POST else False
auto_enroll = True
email_students = True if 'email-students' in request.POST else False
for identifier in identifiers:
user = None

View File

@@ -13,7 +13,7 @@
<div class="enroll-option">
<input type="checkbox" name="auto-enroll" id="auto-enroll" value="Auto-Enroll" checked="yes" aria-describedby="auto-enroll-helper">
<input type="checkbox" name="auto-enroll" id="auto-enroll" value="Auto-Enroll" checked="yes" aria-describedby="auto-enroll-helper" disabled>
<label style="display:inline" for="auto-enroll">${_("Auto Enroll")}</label>
<div class="hint auto-enroll-hint">
<span class="hint-caret"></span>