Commit 1f60e969 by Amir Qayyum Khan

Disabled auto enroll in ccx enrollment tab

parent cd3f8ded
...@@ -420,7 +420,7 @@ def ccx_invite(request, course, ccx=None): ...@@ -420,7 +420,7 @@ def ccx_invite(request, course, ccx=None):
action = request.POST.get('enrollment-button') action = request.POST.get('enrollment-button')
identifiers_raw = request.POST.get('student-ids') identifiers_raw = request.POST.get('student-ids')
identifiers = _split_input_list(identifiers_raw) 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 email_students = True if 'email-students' in request.POST else False
for identifier in identifiers: for identifier in identifiers:
user = None user = None
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="enroll-option"> <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> <label style="display:inline" for="auto-enroll">${_("Auto Enroll")}</label>
<div class="hint auto-enroll-hint"> <div class="hint auto-enroll-hint">
<span class="hint-caret"></span> <span class="hint-caret"></span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment