Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Add some guidance to the name field label in new candidate
Browse files Browse the repository at this point in the history
Add text to the name label in the add candidate field that we would
like the name to be in First Last form and not LAST First as it often
appears in official documents.

For #78
  • Loading branch information
struan committed Apr 28, 2017
1 parent a334a36 commit 0b9fd92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions candidates/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ def __init__(self, *args, **kwargs):
campaign literature.""")
opts['label'] = _("Statement to voters")

if field.name == "name":
opts['label'] = _("Name (style: Ali Smith not SMITH Ali)")

if field.info_type_key == 'url':
self.fields[field.name] = forms.URLField(**opts)
elif field.info_type_key == 'email':
Expand Down

0 comments on commit 0b9fd92

Please sign in to comment.