Commit 306ac482 by dcadams

Email on enroll/un-enroll actions

Optionally email students on enroll/un-enroll actions
by instructor from enrollment tab in LMS.
parent 2cd18dfa
......@@ -152,3 +152,5 @@ Common: Updated CodeJail.
Common: Allow setting of authentication session cookie name.
LMS: Option to email students when enroll/un-enroll them.
......@@ -44,7 +44,7 @@ class GroupFactory(sf.GroupFactory):
@world.absorb
class CourseEnrollmentAllowedFactory(sf.CourseEnrollmentAllowed):
class CourseEnrollmentAllowedFactory(sf.CourseEnrollmentAllowedFactory):
"""
Users allowed to enroll in the course outside of the usual window
"""
......
......@@ -382,6 +382,8 @@ function goto( mode)
<p>Enroll or un-enroll one or many students: enter emails, separated by new lines or commas;</p>
<textarea rows="6" cols="70" name="multiple_students"></textarea>
<p>
<input type="checkbox" name="email_students"> Notify students by email
<p>
<input type="checkbox" name="auto_enroll"> Auto-enroll students when they activate
<input type="submit" name="action" value="Enroll multiple students">
<p>
......
Dear student,
You have been invited to join ${course_id} at ${site_name} by a member of the course staff.
To finish your registration, please visit ${registration_url} and fill out the registration form.
% if auto_enroll:
Once you have registered and activated your account, you will see ${course_id} listed on your dashboard.
% else:
Once you have registered and activated your account, visit ${course_url} to join the course.
% endif
----
This email was automatically sent from ${site_name} to ${email_address}
\ No newline at end of file
You have been invited to register for ${course_id}
\ No newline at end of file
Dear ${first_name} ${last_name}
You have been enrolled in ${course_id} at ${site_name} by a member of the course staff. The course should now appear on your ${site_name} dashboard.
To start accessing course materials, please visit ${course_url}
----
This email was automatically sent from ${site_name} to ${first_name} ${last_name}
\ No newline at end of file
You have been enrolled in ${course_id}
\ No newline at end of file
Dear Student,
You have been un-enrolled from course ${course_id} by a member of the course staff. Please disregard the invitation previously sent.
----
This email was automatically sent from ${site_name} to ${email_address}
\ No newline at end of file
Dear ${first_name} ${last_name}
You have been un-enrolled in ${course_id} at ${site_name} by a member of the course staff. The course will no longer appear on your ${site_name} dashboard.
Your other courses have not been affected.
----
This email was automatically sent from ${site_name} to ${first_name} ${last_name}
\ No newline at end of file
You have been un-enrolled from ${course_id}
\ No newline at end of file
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