diff --git a/austritt/forms.py b/austritt/forms.py index e1e74dd..1675bdf 100644 --- a/austritt/forms.py +++ b/austritt/forms.py @@ -47,9 +47,10 @@ class ITForm(EvaForm): class RestForm(EvaForm): class Meta: model = Employee - fields = ['credit_card', 'transponder_id', 'bahncard', 'website'] + fields = ['credit_card', 'transponder_id', 'bahncard', 'website', 'miscellaneous'] class DummyForm(ModelForm): class Meta: model = Employee fields = [] + diff --git a/austritt/models.py b/austritt/models.py index 4d906db..2d00d0e 100644 --- a/austritt/models.py +++ b/austritt/models.py @@ -81,4 +81,7 @@ class Employee(models.Model): bahncard = models.CharField(max_length=5, default="NEIN", blank=True, choices=JANEIN_CHOICES.items(), verbose_name="Bahncard-Abo vorhanden?") # kom related stuff - website = models.CharField(max_length=5, default="NEIN", blank=True, choices=JANEIN_CHOICES.items(), verbose_name="Müssen Dinge von der Webseite gelöscht werden?") \ No newline at end of file + website = models.CharField(max_length=5, default="NEIN", blank=True, choices=JANEIN_CHOICES.items(), verbose_name="Müssen Dinge von der Webseite gelöscht werden?") + + # rest rtext field + miscellaneous = models.TextField(max_length=500, null=True, blank=True, verbose_name=_("Sonstiges")) \ No newline at end of file diff --git a/austritt/pdf_test.py b/austritt/pdf_test.py new file mode 100644 index 0000000..213ad1f --- /dev/null +++ b/austritt/pdf_test.py @@ -0,0 +1,7 @@ +from reportlab.pdfgen import canvas +def hello(c): + c.drawString(100,100,"Hello World") +c = canvas.Canvas("hello.pdf") +hello(c) +c.showPage() +c.save() \ No newline at end of file diff --git a/austritt/settings.py b/austritt/settings.py index fbacf0d..7a762b6 100644 --- a/austritt/settings.py +++ b/austritt/settings.py @@ -41,12 +41,12 @@ MAILS = { 'website', ], }, -# 'CENTRAL': { -# 'MAIL': 'anna.noelte@wikimedia.de', -# 'DATA': [ -# 'sim' -# ], -# }, + 'CENTRAL': { + 'MAIL': 'krisztina.nagy@wikimedia.de', + 'DATA': [ + 'sim' + ], + }, 'HR': { 'MAIL': 'personal@wikimedia.de', 'DATA': [ @@ -61,7 +61,7 @@ MAILS = { ] }, 'FINANCE': { - 'MAIL': 'claudia.langrock@wikimedia.de', + 'MAIL': 'buchhaltung@wikimedia.de', 'DATA': [ 'credit_card', 'bahncard', diff --git a/austritt/templates/austritt/employee_form.html b/austritt/templates/austritt/employee_form.html index d6d448f..6c439f2 100644 --- a/austritt/templates/austritt/employee_form.html +++ b/austritt/templates/austritt/employee_form.html @@ -57,13 +57,13 @@ Veränderungsrelevante Angaben {% endif %} {% endif %} -{% if datatable == True %} +{% if datatable == 1 %} {% translate "Bestätigungsschritt" %} {% endif %}
- {% if datatable == True %} + {% if datatable == 1 %}| {{ key }} | {{ value }} | |
|---|---|---|
| [X] | +Ausstattung/Equipment | +Weitergabe an/Handover to | +
|---|---|---|
| + | Laptop + Ladekabel {{% if data.laptop_id %}} {{data.laptop_id}} {{% else %}} ID nicht bekannt {{% endif %}} |
+ IT | +
| + | Home-Office Geräte (Monitor, Kabel, Tastatur, Maus) |
+ IT | +
| + | {{% if data.mobile=="JA" %}} Mobiltelefon (ID nicht angegeben) {{% else %}}
|
+ IT | +
| + | {{% if data.credit_card=="JA" %}} Kreditkarte {{% else %}}
|
+ + |
| + | {{% if data.sim=="JA" %}} SIM Karte – bitte aushändigen lassen {{% else %}}
|
+ + |
| + | Transponder Nr. {{ data.transponder_id}} |
+ Office | +
| + | Rollcontainer-Schlüssel: Abgabe oder im Rollcontainer gelassen |
+ Office | +
| + | {{% if data.pension=="JA" %}} MA hat BAV Unterlagen erhalten {{% else %}}
|
+ HR | +
| + | Sonstiges: {{ data.miscenalleous }} |
+ + |
BVG-Firmenticket ist bei Austritt bis 23:59 Uhr des Monatsletzten gültig. + Es kann dann entsorgt werden. +BVG company ticket BVG company ticket is valid until 23:59 on the last day of the month. + It can then be discarded. + |
+ – | +|
| Sonstige Vereinbarungen/Other agreements + | +|
|---|---|
| {{% if data.bahncard=="JA" %}}BahnCard {{% else %}} |
+ falls vorhanden, kann diese behalten werden, da sie ausläuft | +
| Rückgabe: Hiermit bestätige ich die vollständige Übergabe aller mir zur Verfügung gestellten Arbeitsmittel im gepflegten und funktionstüchtigen Zustand. Ich habe die Benutzung durch Dritte - sofern es sich nicht um betriebseigene Mitarbeitende handelt - nicht gestattet. Außerdem bestätige ich hiermit die vollumfängliche Zusicherung der Einhaltung der allgemeinen Vertraulichkeitserklärung/Datenschutzerklärung, sowie die Einhaltung der Verschwiegenheitsvereinbarung aus dem Arbeitsvertrag. +Handover: I hereby confirm the complete handover of all work equipment provided to me in a well-maintained and functional condition. I have not permitted the use by third parties - unless they are employees of Wikimedia. Furthermore, I hereby confirm the full assurance of compliance with the general confidentiality declaration/data protection declaration, as well as compliance with the confidentiality agreement from the employment contract. + |
+
| Berlin, ________________ | +____________________ | +____________________________________ | +
| + | entgegengenommen von | +Unterschrift ehem. Mitarbeitenden | +
| + | received by | +Signature of leaving employee | +