class ElectionForm(forms.Form): short_name = forms.SlugField(max_length=40, help_text='no spaces, will be part of the URL for your election, e.g. my-club-2010') name = forms.CharField(max_length=100, widget=forms.TextInput(attrs={'size':60}), help_text='the pretty name for your election, e.g. My Club 2010 Election') description = forms.CharField(max_length=4000, widget=forms.Textarea(attrs={'cols': 70, 'wrap': 'soft'}), required=False) 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') #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') randomize_answer_order = forms.BooleanField(required=False, initial=False, help_text='enable this if you want the answers to questions to appear in random order for each voter') 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.') if settings.ALLOW_ELECTION_INFO_URL: election_info_url = forms.CharField(required=False, initial="", label="Election Info Download URL", help_text="the URL of a PDF document that contains extra election information, e.g. candidate bios and statements") # times voting_starts_at = SplitDateTimeField(help_text = 'UTC date and time when voting begins', widget=SplitSelectDateTimeWidget, required=False) voting_ends_at = SplitDateTimeField(help_text = 'UTC date and time when voting ends', widget=SplitSelectDateTimeWidget, required=False)
class ElectionForm(forms.Form): short_name = forms.SlugField(max_length=40, help_text="senza spazi, farà parte dell'URL dell'elezione, e.g. my-club-2020") name = forms.CharField(max_length=100, widget=forms.TextInput(attrs={'size':60}), help_text='il nome della tua elezione, e.g. Elezioni per il mio club 2020') description = forms.CharField(max_length=4000, widget=forms.Textarea(attrs={'cols': 70, 'wrap': 'soft'}), required=False) election_type = forms.ChoiceField(label="tipo", choices = Election.ELECTION_TYPES) use_voter_aliases = forms.BooleanField(required=False, initial=False, help_text='Se selezionato, gli identificativi dei votanti saranno sostituiti da un alias, e.g. "V12", nel centro tracciamento voti') #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') randomize_answer_order = forms.BooleanField(required=False, initial=False, help_text='abilita questa spunta se vuoi che le risposte siano presentate in ordine casuale per ogni votante') private_p = forms.BooleanField(required=False, initial=False, label="Privata?", help_text='Un elezione privata è visibile solo agli elettori registrati.') help_email = forms.CharField(required=False, initial="", label="Indirizzo email di supporto", help_text='Un indirizzo email che gli elettori possono contattare per chiedere supporto.') if settings.ALLOW_ELECTION_INFO_URL: election_info_url = forms.CharField(required=False, initial="", label="URL per scaricare le informazioni dell'elezione", help_text="un URL che punta ad un documento PDF che contiene informazioni extra sull'elezione, e.g. biografia e dichiarazioni dei candidati") # times voting_starts_at = SplitDateTimeField(help_text = 'UTC date and time when voting begins', widget=SplitSelectDateTimeWidget, required=False) voting_ends_at = SplitDateTimeField(help_text = 'UTC date and time when voting ends', widget=SplitSelectDateTimeWidget, required=False)
class ElectionTimeExtensionForm(forms.Form): voting_extended_until = SplitDateTimeField(help_text = 'UTC date and time voting extended to', widget=SplitSelectDateTimeWidget, required=False)
class ElectionTimeExtensionForm(forms.Form): voting_extended_until = SplitDateTimeField( label='Verschobenes Ende', help_text='Verlängertes Enddatum der Wahl (UTC!)', widget=SplitSelectDateTimeWidget, required=False)
class ElectionForm(forms.Form): short_name = forms.SlugField( max_length=40, label='Kurzbezeichnung', help_text= 'keine Leerzeichen, wird Teil der URL für die Wahl, z.B. landesversammlung-2020' ) name = forms.CharField( max_length=100, label='Öffentliche Bezeichnung', widget=forms.TextInput(attrs={'size': 60}), help_text='der offizielle Name deiner Wahl, z.B. Landesversammlung 2020' ) description = forms.CharField(max_length=4000, label='Beschreibung', widget=forms.Textarea(attrs={ 'cols': 70, 'wrap': 'soft' }), required=False) election_type = forms.ChoiceField(label="Typ", choices=Election.ELECTION_TYPES) use_voter_aliases = forms.BooleanField( required=False, initial=True, label='Aliase verwenden', help_text= 'Wenn angehakt, werden die Wähler*innen-Namen im Tracking-Center durch Aliases (wie "V42") ersetzt' ) #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') randomize_answer_order = forms.BooleanField( required=False, label='Antworten in zufälliger Reihenfolge', initial=False, help_text= 'Wenn angehakt, werden die Wahlmöglichkeiten den Wähler*innen in zufälliger Reihenfolge angezeigt' ) private_p = forms.BooleanField( required=False, initial=True, label="Private Wahl", help_text= 'Eine private Wahl ist nur für registrierte Wähler*innen sichtbar.' ) help_email = forms.CharField( required=False, initial="", label="Kontaktadresse", help_text= 'Eine Email-Adresse, an die sich Wähler*innen wenden können, wenn sie Hilfe brauchen.' ) if settings.ALLOW_ELECTION_INFO_URL: election_info_url = forms.CharField( required=False, initial="", label="URL mit Wahlinformationen", help_text= "Die URL eines Dokuments mit weiterführenden Informationen zur Wahl, z.B. Biographien der Kandidat*innen, ..." ) # times voting_starts_at = SplitDateTimeField( label='Wahl startet um', help_text='Startdatum/-zeit der Wahl (UTC!)', widget=SplitSelectDateTimeWidget, required=False) voting_ends_at = SplitDateTimeField( label='Wahl endet um', help_text='Enddatum/-zeit der Wahl (UTC!)', widget=SplitSelectDateTimeWidget, required=False)
class ElectionTimeExtensionForm(forms.Form): voting_extended_until = SplitDateTimeField( help_text=u'datum a čas prodlouženého ukončení hlasování; v UTC', widget=SplitSelectDateTimeWidget, required=False, label=u"Hlasování prodlouženo do")
class ElectionForm(forms.Form): short_name = forms.SlugField( max_length=40, help_text= u'bez mezer, bude použita jako část URL vašeho hlasování, např. kf-msk-20-2018-zmena-rozpoctu', label=u"Zkratka") name = forms.CharField( max_length=100, widget=forms.TextInput(attrs={'size': 60}), help_text= u'plný název vašeho hlasování, např. KF MSK 20/2018 Změna rozpočtu', label=u"Název") description = forms.CharField(max_length=32000, widget=forms.Textarea(attrs={ 'cols': 70, 'wrap': 'soft' }), required=False, label=u"Popis") election_type = forms.ChoiceField(label=u"Typ", choices=Election.ELECTION_TYPES) use_voter_aliases = forms.BooleanField( required=False, initial=False, help_text= u'zvolíte-li tuto možnost, na stránce pro sledování hlasovacích lístků budou jména voličů nahrazena aliasy, např. "V12"', label=u"Použít aliasy voličů") #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') randomize_answer_order = forms.BooleanField( required=False, initial=False, help_text= u'zvolte, pokud chcete, aby se každému voliči zobrazovaly odpovědi na otázky v náhodně zvoleném pořadí', label=u"Odpovědi v náhodném pořadí") private_p = forms.BooleanField( required=False, initial=False, label=u"Soukromé?", help_text= u'Soukromé hlasování je viditelné jen pro registrované voliče.') help_email = forms.CharField( required=False, initial="", label=u"E-mail pro nápovědu", help_text= u'e-mailová adresa, na kterou se budou voliči obracet s žádostmi o pomoc.' ) voting_starts_at = SplitDateTimeField( help_text= u'datum a čas zahájení hlasování; v UTC, takže oproti časovému pásmu ČR je menší o 1 hodinu v zimním, resp. o 2 hodiny v letním čase', widget=SplitSelectDateTimeWidget, required=False, label=u"Hlasování začíná v") voting_ends_at = SplitDateTimeField( help_text= u'datum a čas ukončení hlasování; v UTC, takže oproti časovému pásmu ČR je menší o 1 v zimním, resp. o 2 hodiny v letním čase', widget=SplitSelectDateTimeWidget, required=False, label=u"Hlasování končí v") if settings.ALLOW_ELECTION_INFO_URL: election_info_url = forms.CharField( required=False, initial="", label=u"URL pro stažení informací o hlasování", help_text= u"URL dokumentu ve formátu PDF, obsahujícího doplňkové informace k hlasování, např. životopisy a profily kandidátů" ) pass