added links to choices in /extern form
This commit is contained in:
parent
8848c91e1c
commit
e56dbe88ef
1 changed files with 12 additions and 10 deletions
|
@ -1,13 +1,15 @@
|
|||
from datetime import date
|
||||
|
||||
from django.db import models
|
||||
from django.utils.html import format_html
|
||||
|
||||
from .settings import ACCOUNTS
|
||||
|
||||
|
||||
class Volunteer(models.Model):
|
||||
realname = models.CharField(max_length=200, null=True, verbose_name="Name / Hauptansprechperson")
|
||||
email = models.EmailField(max_length=200, null=True, verbose_name='E-Mail-Adresse')
|
||||
realname = models.CharField(max_length=200, null=True, verbose_name="Realname")
|
||||
email = models.EmailField(max_length=200, null=True, verbose_name='E-Mail-Adresse',
|
||||
help_text='lala hilfehilfe')
|
||||
|
||||
# the following Fields are not supposed to be edited by users
|
||||
granted = models.BooleanField(null=True)
|
||||
|
@ -124,14 +126,14 @@ class Grant(Extern):
|
|||
abstract = True
|
||||
|
||||
|
||||
TYPE_CHOICES = {'BIB': 'Bibliotheksstipendium',
|
||||
'ELIT': 'eLiteraturstipendium',
|
||||
'SOFT': 'Softwarestipendium',
|
||||
'VIS': 'Visitenkarten',
|
||||
'LIST': 'Mailingliste',
|
||||
'MAIL': 'E-Mail-Adresse',
|
||||
'IFG': 'Kostenübernahme IFG-Anfrage',
|
||||
'LIT': 'Literaturstipendium',}
|
||||
TYPE_CHOICES = {'BIB': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#Bibliotheksstipendium">Bibliotheksstipendium</a>'),
|
||||
'ELIT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#eLiteraturstipendium">eLiteraturstipendium</a>'),
|
||||
'SOFT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Software-Stipendien">Softwarestipendium</a>'),
|
||||
'VIS': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#Visitenkarten">Visitenkarten</a>'),
|
||||
'LIST': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#Mailinglisten">Mailingliste</a>'),
|
||||
'MAIL': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#E-Mail-Adressen">E-Mail-Adresse</a>'),
|
||||
'IFG': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Gebührenerstattungen_für_Behördenanfragen">Kostenübernahme IFG-Anfrage</a>'),
|
||||
'LIT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#Literaturstipendium">Literaturstipendium</a>'),}
|
||||
|
||||
|
||||
# same model is used for Library, ELitStip and Software!
|
||||
|
|
Loading…
Reference in a new issue