more work on if mail template
This commit is contained in:
parent
0c20053f45
commit
0c886d77f0
|
@ -2,18 +2,35 @@ Hallo Team Ideenförderung,
|
||||||
|
|
||||||
es gab einen neuen Antrag von {{data.realname}}.
|
es gab einen neuen Antrag von {{data.realname}}.
|
||||||
|
|
||||||
Der Nutzer mit dem Username {{data.username}} fragt ein {% if data.choice == 'LIT' %} Literaturstipendium
|
Der Nutzer mit dem Username {{data.username}} ({{data.email}}) fragt ein(e){% if data.choice == 'LIT' %} Literaturstipendium
|
||||||
{% elif data.choice == 'BIB' %} Bibliotheksstipendium
|
{% elif data.choice == 'BIB' %} Bibliotheksstipendium
|
||||||
{% elif data.choice == 'IFG' %} IFG
|
{% elif data.choice == 'IFG' %} IFG-Förderung
|
||||||
{% elif data.choice == 'ELIT' %} eLiteraturstipendium
|
{% elif data.choice == 'ELIT' %} eLiteraturstipendium
|
||||||
{% elif data.choice == 'SOFT' %} Softwarestipendium
|
{% elif data.choice == 'SOFT' %} Softwarestipendium
|
||||||
{% elif data.choice == 'VIS' %} Visitenkarten, Mailingliste oder E-Mail-Adresse
|
{% elif data.choice == 'VIS' %} Visitenkarten
|
||||||
|
{% elif data.choice == 'MAIL' %} Mailadresse
|
||||||
|
{% elif data.choice == 'LIST' %} Mailingliste
|
||||||
{% else %} ERROR UNKNOWN FORMTYPE {% endif %} an.
|
{% else %} ERROR UNKNOWN FORMTYPE {% endif %} an.
|
||||||
|
|
||||||
Genehmigen: {{data.urlprefix}}{% url 'authorize' data.choice data.pk %}
|
Vorraussichtliche Kosten: {{data.cost}}
|
||||||
|
Anmerkungen: {{data.notes}}
|
||||||
|
|
||||||
Ablehnen: {{data.urlprefix}}{% url 'deny' data.choice data.pk %}
|
{% if data.choice == 'BIB' %}
|
||||||
|
Bibliothek: {{data.library}}
|
||||||
|
Dauer: {{data.duration}}
|
||||||
|
{% elif data.choice == 'ELIT' %}
|
||||||
|
Datenbank: {{data.library}}
|
||||||
|
Dauer: {{data.duration}}
|
||||||
|
{% elif data.choice == 'ELIT' %}
|
||||||
|
Software: {{data.library}}
|
||||||
|
Dauer: {{data.duration}}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
Zum Genehmigen hier klicken: {{data.urlprefix}}{% url 'authorize' data.choice data.pk %}
|
||||||
|
|
||||||
|
Zu Ablehnen hier klicken: {{data.urlprefix}}{% url 'deny' data.choice data.pk %}
|
||||||
|
|
||||||
|
Stets zu Diensten, Deine Förderdatenbank
|
||||||
|
|
||||||
{% comment %}
|
{% comment %}
|
||||||
alte mail:
|
alte mail:
|
||||||
|
|
|
@ -23,7 +23,7 @@ def authorize(request, choice, pk):
|
||||||
|
|
||||||
def deny(request, choice, pk):
|
def deny(request, choice, pk):
|
||||||
if choice in ('BIB', 'ELIT', 'SOFT'):
|
if choice in ('BIB', 'ELIT', 'SOFT'):
|
||||||
set_granted_in_lib(pk,False)
|
Library.set_granted(pk,False)
|
||||||
return HttpResponse(f"DENIED! choice: {choice}, pk: {pk}")
|
return HttpResponse(f"DENIED! choice: {choice}, pk: {pk}")
|
||||||
else:
|
else:
|
||||||
return HttpResponse('ERROR! UNKNWON CHOICE TYPE!')
|
return HttpResponse('ERROR! UNKNWON CHOICE TYPE!')
|
||||||
|
|
Loading…
Reference in New Issue