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

make help email configurable as per #5, for now only in data model and form, not surfaced in link

parent 6f363920
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ class ElectionForm(forms.Form):
#use_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')
#private_p = forms.BooleanField(required=False, initial=False, label="Private?", help_text='a private election is only visible to registered/eligible voters', widget=forms.HiddenInput)
private_p = forms.BooleanField(required=False, initial=False, label="Private?", help_text='A private election is only visible to registered voters.')
help_email = forms.CharField(required=False, initial="", label="Help Email Address", help_text='An email address voters should contact if they need help.')
class ElectionTimesForm(forms.Form):
......
......@@ -130,6 +130,9 @@ class Election(HeliosModel):
# no longer needed since it's all trustees
result_proof = JSONField(null=True)
# help email
help_email = models.EmailField(null=True)
@property
def pretty_type(self):
return dict(self.ELECTION_TYPES)[self.election_type]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment