From 6346fc6182e0ec322d070bc2c77e00493abd2017 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Wed, 17 Nov 2010 09:17:56 -0800
Subject: [PATCH] added advanced-audit-feature toggle to election features

---
 helios/forms.py | 1 +
 helios/views.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/helios/forms.py b/helios/forms.py
index 5204f8e..c46c9af 100644
--- a/helios/forms.py
+++ b/helios/forms.py
@@ -13,6 +13,7 @@ class ElectionForm(forms.Form):
   description = forms.CharField(max_length=2000, widget=forms.Textarea(attrs={'cols': 70, 'wrap': 'soft'}))
   election_type = forms.ChoiceField(label="type", choices = Election.ELECTION_TYPES)
   use_voter_aliases = forms.BooleanField(required=False, initial=False, help_text='if selected, voter identities will be replaced with aliases, e.g. "V12", in the ballot tracking center')
+  advanced_audit_features = forms.BooleanField(required=False, initial=True, help_text='disable this only if you want a simple election with reduced security but a simpler user interface')
   
 
 class ElectionTimesForm(forms.Form):
diff --git a/helios/views.py b/helios/views.py
index d77cafb..b0b490f 100644
--- a/helios/views.py
+++ b/helios/views.py
@@ -170,7 +170,7 @@ def election_new(request):
 def one_election_edit(request, election):
 
   error = None
-  RELEVANT_FIELDS = ['short_name', 'name', 'description', 'use_voter_aliases', 'election_type']
+  RELEVANT_FIELDS = ['short_name', 'name', 'description', 'use_voter_aliases', 'election_type', 'advanced_audit_features']
   
   if request.method == "GET":
     values = {}
-- 
GitLab