2020-12-23 10:42:57 +00:00
|
|
|
from django.db import models
|
2020-12-23 12:16:01 +00:00
|
|
|
from multiselectfield import MultiSelectField
|
2020-12-23 10:42:57 +00:00
|
|
|
|
2021-01-14 14:10:29 +00:00
|
|
|
# ATTENTION!!!
|
|
|
|
# No key should be used twice in any of these dicts because of the
|
2021-03-01 13:19:31 +00:00
|
|
|
# suboptimal implementation in views.EvaFormView.beautify_data()
|
2021-01-14 14:10:29 +00:00
|
|
|
#
|
2021-03-01 13:19:31 +00:00
|
|
|
|
2020-12-23 11:04:08 +00:00
|
|
|
DEPARTMENT_CHOICES = {'PROG': 'Programme',
|
|
|
|
'SOFT': 'Softwareentwicklung',
|
|
|
|
'CENT': 'Central',
|
2021-10-14 10:22:30 +00:00
|
|
|
'KOMEV': 'Kommunikation und Events',
|
2020-12-23 11:04:08 +00:00
|
|
|
'VOR': 'Vorstand',}
|
|
|
|
|
2021-02-08 13:46:38 +00:00
|
|
|
VENDOR_CHOICES = {'STANDARD': 'Dell Latitude',
|
|
|
|
'LENOVO': 'Lenovo Thinkpad',
|
2021-05-04 13:35:27 +00:00
|
|
|
'MAC': 'Mac (nur für Grafiker_innen)'}
|
2021-02-08 13:46:38 +00:00
|
|
|
|
2020-12-23 12:16:01 +00:00
|
|
|
OS_CHOICES = {'UBU': 'Ubuntu (Standard)',
|
2021-05-18 08:57:11 +00:00
|
|
|
'WIN': 'Windows (bitte Begründung angeben)',
|
|
|
|
'MOS': 'Mac OS (nur wenn Mac gewählt)'}
|
2020-12-23 12:16:01 +00:00
|
|
|
|
|
|
|
|
2021-03-01 13:19:31 +00:00
|
|
|
LANG_CHOICES = {'GER': 'Deutsch',
|
|
|
|
'ENG': 'English',}
|
2020-12-23 12:16:01 +00:00
|
|
|
|
2021-05-04 10:45:41 +00:00
|
|
|
KEYBOARD_CHOICES = {'DE': 'Deutsch',
|
|
|
|
'US': 'USA',
|
|
|
|
'OT': 'Anderes (Bitte unten angeben)'}
|
|
|
|
|
2021-02-09 09:48:07 +00:00
|
|
|
ACCOUNT_CHOICES = {'OTRSWMDE': 'OTRS Ticketsystem',
|
2020-12-23 12:16:01 +00:00
|
|
|
'CIVIC1': 'Civic CRM (allgemein)',
|
|
|
|
'CIVIC2': "Civic CRM (Mailings, impliziert allgemein)",
|
|
|
|
'WEB': 'www.wikimedia.de (edit)',
|
|
|
|
'BLOG': 'blog.wikimedia.de (edit)',
|
|
|
|
'FORUM': 'forum.wikimedia.de',
|
|
|
|
}
|
|
|
|
|
2021-03-01 13:19:31 +00:00
|
|
|
TRANSPONDER_CHOICES = {'NORM': 'Allgemeiner Transponder',
|
|
|
|
'SPECIAL': 'Besondere Schließungen (bitte angeben)',
|
2021-01-14 14:10:29 +00:00
|
|
|
'NOTRANS': 'Kein Transponder',}
|
2020-12-23 12:26:24 +00:00
|
|
|
|
2020-12-23 11:04:08 +00:00
|
|
|
class Employee(models.Model):
|
2021-03-15 14:27:08 +00:00
|
|
|
|
|
|
|
# email adress of user. should not be necessary if we use openauth one day
|
2021-05-17 10:41:46 +00:00
|
|
|
# usermail = models.EmailField(max_length=50, verbose_name="Deine Mailadresse (Ansprechpartner_in)", default='bestechefin@wikimedia.de')
|
2021-03-15 14:27:08 +00:00
|
|
|
|
2020-12-23 12:26:24 +00:00
|
|
|
# personal data
|
2020-12-23 11:04:08 +00:00
|
|
|
firstname = models.CharField(max_length=50, verbose_name="Vorname")
|
|
|
|
lastname = models.CharField(max_length=50, verbose_name="Nachname")
|
2021-05-26 13:09:40 +00:00
|
|
|
# intern = models.BooleanField(verbose_name='Interne_r Mitarbeiter_in?', default=True)
|
2021-05-04 10:45:41 +00:00
|
|
|
department = models.CharField(max_length=5, choices=DEPARTMENT_CHOICES.items(), verbose_name='Bereich')
|
2021-05-04 12:24:25 +00:00
|
|
|
team = models.CharField(max_length=20, null=True, blank=True) # TODO? better with choices?
|
2020-12-23 11:17:50 +00:00
|
|
|
|
2020-12-23 12:26:24 +00:00
|
|
|
# general work related stuff
|
2021-03-01 13:19:31 +00:00
|
|
|
firstdate_employment = models.DateField(null=True, verbose_name="Erster Arbeitstag")
|
|
|
|
firstdate_presence = models.DateField(null=True, verbose_name="Erster Tag der Anwesenheit in der Geschäftsstelle")
|
2021-11-10 13:29:42 +00:00
|
|
|
lastdate_employment= models.DateField(null=True, verbose_name="Letzter Arbeitstag")
|
|
|
|
lastdate_presence = models.DateField(null=True, verbose_name="Letzter Tag der Anwesenheit in der Geschäftsstelle")
|
2021-03-25 08:13:22 +00:00
|
|
|
jobdescription_german = models.CharField(null=True, max_length=100, verbose_name="Stellenbezeichnung(deutsch)")
|
2021-03-01 13:19:31 +00:00
|
|
|
jobdescription_english = models.CharField(null=True, max_length=100, verbose_name="Job description(english)")
|
2021-09-14 10:59:18 +00:00
|
|
|
works_in_gs = models.BooleanField(verbose_name='Braucht Arbeitsplatz in der Geschäftsstelle?', default=True)
|
2021-02-09 11:45:33 +00:00
|
|
|
desk = models.CharField(max_length=100, null=True, blank=True, verbose_name="Wo soll der Arbeitsplatz sein?")
|
2021-05-03 13:49:05 +00:00
|
|
|
|
2020-12-23 12:26:24 +00:00
|
|
|
# IT related stuff
|
2021-05-04 08:44:00 +00:00
|
|
|
vendor = models.CharField(max_length=8, choices=VENDOR_CHOICES.items(), default='STANDARD', verbose_name='Hersteller')
|
2021-05-04 12:24:25 +00:00
|
|
|
os = models.CharField(max_length=3, choices=OS_CHOICES.items(), default='UBU', verbose_name='Betriebssystem')
|
2021-03-01 13:19:31 +00:00
|
|
|
screen = models.BooleanField(default=False, verbose_name='Zusätzlicher Monitor? Einer ist standard.')
|
2021-05-26 13:09:40 +00:00
|
|
|
mobile = models.BooleanField(max_length=6, default=False, verbose_name='Diensttelefon (Handy)')
|
|
|
|
# sim = models.BooleanField(default=False, verbose_name="Mobilfunkvertrag")
|
2021-05-04 10:45:41 +00:00
|
|
|
keyboard = models.CharField(max_length=2, choices=KEYBOARD_CHOICES.items(), default='DE', verbose_name="Tastaturlayout")
|
2020-12-23 12:16:01 +00:00
|
|
|
comment = models.TextField(max_length=500, null=True, blank=True, verbose_name="zusätzliche IT-Anforderungen")
|
2021-05-26 13:09:40 +00:00
|
|
|
language = models.CharField(max_length=3, choices=LANG_CHOICES.items(), default="GER", verbose_name="Sprache")
|
2021-05-03 14:33:44 +00:00
|
|
|
accounts = MultiSelectField(choices=ACCOUNT_CHOICES.items(), null=True, blank=True, verbose_name="Zusätzliche Accounts")
|
|
|
|
lists = models.CharField(max_length=100, null=True, blank=True, verbose_name="Zusätzliche Mailinglisten")
|
2021-02-08 14:51:39 +00:00
|
|
|
rebu2go = models.BooleanField(verbose_name="Rebu2Go-Zugang benötigt?", default=False)
|
2020-12-23 12:26:24 +00:00
|
|
|
|
|
|
|
# office related stuff
|
|
|
|
transponder = models.CharField(max_length=7, choices=TRANSPONDER_CHOICES.items(), default='NORM')
|
2021-03-01 13:19:31 +00:00
|
|
|
special = models.TextField(max_length=500, null=True, blank=True, verbose_name="Besondere Schließungen hier eintragen")
|
2020-12-23 12:26:24 +00:00
|
|
|
post_office_box = models.BooleanField(default=True, verbose_name='Postfach am Empfang benötigt?')
|