Skip to content
Snippets Groups Projects
Commit 6346fc61 authored by Ben Adida's avatar Ben Adida
Browse files

added advanced-audit-feature toggle to election features

parent 5b84725b
Branches
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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 = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment