Disabled auto enroll in ccx enrollment tab
This commit is contained in:
@@ -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 @@
|
|||||||
|
|
||||||
|
|
||||||
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user