Skip to content

Commit

Permalink
feat: allow disabling default beta tester enrollment notifications
Browse files Browse the repository at this point in the history
The "Notify users by email" checkbox checks the value of the
`BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT` configuration to match the user
experience with other checkboxes on the Membership page.

(cherry picked from commit 43b2255)
  • Loading branch information
mohd-akram authored and Agrendalath committed Aug 14, 2023
1 parent 7ae6d22 commit 39d744f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ <h3 class="hd hd-3">${_("Register/Enroll Students")}</h3>
</div>
<div class="enroll-option">
<label class="has-hint">
<input type="checkbox" name="email-students-beta" id="email-students-beta" value="Notify-students-by-email" checked="yes" aria-describedby="heading-batch-beta-testers">
<input type="checkbox" name="email-students-beta" id="email-students-beta" value="Notify-students-by-email" aria-describedby="heading-batch-beta-testers"
${'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-beta-hint">
<span class="hint-caret"></span>
Expand Down

0 comments on commit 39d744f

Please sign in to comment.