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 datetime import date
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.utils.html import format_html
|
||||||
|
|
||||||
from .settings import ACCOUNTS
|
from .settings import ACCOUNTS
|
||||||
|
|
||||||
|
|
||||||
class Volunteer(models.Model):
|
class Volunteer(models.Model):
|
||||||
realname = models.CharField(max_length=200, null=True, verbose_name="Name / Hauptansprechperson")
|
realname = models.CharField(max_length=200, null=True, verbose_name="Realname")
|
||||||
email = models.EmailField(max_length=200, null=True, verbose_name='E-Mail-Adresse')
|
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
|
# the following Fields are not supposed to be edited by users
|
||||||
granted = models.BooleanField(null=True)
|
granted = models.BooleanField(null=True)
|
||||||
|
@ -124,14 +126,14 @@ class Grant(Extern):
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
|
|
||||||
TYPE_CHOICES = {'BIB': 'Bibliotheksstipendium',
|
TYPE_CHOICES = {'BIB': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#Bibliotheksstipendium">Bibliotheksstipendium</a>'),
|
||||||
'ELIT': 'eLiteraturstipendium',
|
'ELIT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Zugang_zu_Fachliteratur#eLiteraturstipendium">eLiteraturstipendium</a>'),
|
||||||
'SOFT': 'Softwarestipendium',
|
'SOFT': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/Software-Stipendien">Softwarestipendium</a>'),
|
||||||
'VIS': 'Visitenkarten',
|
'VIS': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#Visitenkarten">Visitenkarten</a>'),
|
||||||
'LIST': 'Mailingliste',
|
'LIST': format_html('<a href="https://de.wikipedia.org/wiki/Wikipedia:Förderung/E-Mail-Adressen_und_Visitenkarten#Mailinglisten">Mailingliste</a>'),
|
||||||
'MAIL': 'E-Mail-Adresse',
|
'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': 'Kostenübernahme IFG-Anfrage',
|
'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': 'Literaturstipendium',}
|
'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!
|
# same model is used for Library, ELitStip and Software!
|
||||||
|
|
Loading…
Reference in a new issue