Skip to content
Snippets Groups Projects
Commit 7ac436c2 authored by Sven Marnach's avatar Sven Marnach
Browse files

Add flag to configure whether "Notify users by email" is checked by default.

parent a6392e51
Branches
Tags
No related merge requests found
......@@ -388,6 +388,10 @@ FEATURES = {
# Allow users to change their email address.
'ALLOW_EMAIL_ADDRESS_CHANGE': True,
# Whether to check the "Notify users by email" checkbox in the batch enrollment form
# in the instructor dashboard.
'BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT': True,
}
# Settings for the course reviews tool template and identification key, set either to None to disable course reviews
......
......@@ -64,7 +64,8 @@ from django.utils.translation import ugettext as _
</div>
<div class="enroll-option">
<label class="has-hint">
<input type="checkbox" name="email-students" id="email-students" value="Notify-students-by-email" checked="yes" aria-describedby="heading-batch-enrollment">
<input type="checkbox" name="email-students" id="email-students" value="Notify-students-by-email" aria-describedby="heading-batch-enrollment"
${'checked="yes"' if settings.FEATURES.get('BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT') else ''}>
<span class="label-text">${_("Notify users by email")}</span>
<div class="hint email-students-hint">
<span class="hint-caret"></span>
......
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