diff --git a/helios/templates/email/simple_body.txt b/helios/templates/email/simple_body.txt new file mode 100644 index 0000000000000000000000000000000000000000..695fee4d070355eccba3ad984de0bad4e773dde2 --- /dev/null +++ b/helios/templates/email/simple_body.txt @@ -0,0 +1,14 @@ +Dear {{voter.name}}, + +{{custom_message|safe}} + +======== +How to Vote + +Election URL: {{election_vote_url}} +{% ifequal voter.voter_type "password" %} +Your voter ID: {{voter.voter_login_id}} +Your password: {{voter.voter_password}} +{% else %} +Log in with your {{voter.voter_type}} account. +{% endifequal %} diff --git a/helios/templates/email/simple_subject.txt b/helios/templates/email/simple_subject.txt new file mode 100644 index 0000000000000000000000000000000000000000..a7929f12b2c11c9525bb772d319c7dafb0cf98f8 --- /dev/null +++ b/helios/templates/email/simple_subject.txt @@ -0,0 +1 @@ +{{custom_subject|safe}} diff --git a/helios/views.py b/helios/views.py index 2c2775054071aed0d49115648850acd830ec3ee3..65d889537240e9dd84ac9fdbd1ba93d949af9a58 100644 --- a/helios/views.py +++ b/helios/views.py @@ -1232,6 +1232,7 @@ def voters_email(request, election): return HttpResponseRedirect(settings.SECURE_URL_HOST + reverse(one_election_view, args=[election.uuid])) TEMPLATES = [ ('vote', 'Time to Vote'), + ('simple', 'Simple'), ('info', 'Additional Info'), ('result', 'Election Result') ]