From dd048701edb116a78c1855d303ff6586be7ab859 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Mon, 12 May 2014 19:24:54 -0700 Subject: [PATCH] added simple template --- helios/templates/email/simple_body.txt | 14 ++++++++++++++ helios/templates/email/simple_subject.txt | 1 + helios/views.py | 1 + 3 files changed, 16 insertions(+) create mode 100644 helios/templates/email/simple_body.txt create mode 100644 helios/templates/email/simple_subject.txt diff --git a/helios/templates/email/simple_body.txt b/helios/templates/email/simple_body.txt new file mode 100644 index 0000000..695fee4 --- /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 0000000..a7929f1 --- /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 2c27750..65d8895 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') ] -- GitLab