more choices added, use choices field in template
This commit is contained in:
parent
ec8f941dc9
commit
af767b9d08
2 changed files with 13 additions and 4 deletions
|
@ -15,8 +15,12 @@ class ProjectForm(ModelForm):
|
||||||
|
|
||||||
class VolunteerForm(ModelForm):
|
class VolunteerForm(ModelForm):
|
||||||
|
|
||||||
CHOICES = [('IFG','ifg'),
|
CHOICES = [('BIB', 'Bibliotheksstipendium'),
|
||||||
('Lib','library'),]
|
('ELIT', 'eLiteraturstipendium'),
|
||||||
|
('SOFT', 'Softwarestipendium'),
|
||||||
|
('VIS', 'Visitenkarten, Mailingliste oder E-Mail-Adresse'),
|
||||||
|
('IFG', 'Kostenübernahme IFG-Anfrage'),
|
||||||
|
('LIB', 'library'),]
|
||||||
choice = ChoiceField(choices=CHOICES, widget=RadioSelect)
|
choice = ChoiceField(choices=CHOICES, widget=RadioSelect)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
|
@ -3,8 +3,13 @@ Hallo Team Ideenförderung,
|
||||||
es gab einen neuen Antrag von {{data.realname}}.
|
es gab einen neuen Antrag von {{data.realname}}.
|
||||||
|
|
||||||
Username {{data.username}} fragt ein
|
Username {{data.username}} fragt ein
|
||||||
{% if data.library %} Literaturstipendium {% endif %}
|
{% if data.choice == 'LIB' %} Literaturstipendium {% endif %}
|
||||||
{% if data.url %} IFG {% endif %}
|
{% if data.choice == 'BIB' %} Bibliotheksstipendium {% endif %}
|
||||||
|
{% if data.choice == 'IFG' %} IFG {% endif %}
|
||||||
|
{% if data.choice == 'ELIT' %} eLiteraturstipendium {% endif %}
|
||||||
|
{% if data.choice == 'SOFT' %} Softwarestipendium {% endif %}
|
||||||
|
{% if data.choice == 'VIS' %} Visitenkarten, Mailingliste oder E-Mail-Adresse {% endif %}
|
||||||
|
|
||||||
an.
|
an.
|
||||||
|
|
||||||
Genehmigen: INSERT Link here
|
Genehmigen: INSERT Link here
|
||||||
|
|
Loading…
Reference in a new issue