started process recognition

This commit is contained in:
Benni Bärmann 2021-11-10 09:34:40 +01:00
parent 476def4826
commit 4917d24fd5
4 changed files with 22 additions and 4 deletions

View File

@ -23,9 +23,8 @@ class EvaForm(ModelForm):
TYPE_CHOICES = {'IN': 'Eintritt', 'CHANGE': 'Veränderung', 'OUT': 'Austritt'}
class PersonalForm(EvaForm):
# TODO: comment this back in to use implementation of change or exit process
# choice = ChoiceField(choices=TYPE_CHOICES.items(), widget=RadioSelect,
# label='Welcher Prozess soll angestoßen werden?')
choice = ChoiceField(choices=TYPE_CHOICES.items(), widget=RadioSelect,
label='Welcher Prozess soll angestoßen werden?')
class Meta:
model = Employee

View File

@ -0,0 +1,18 @@
# Generated by Django 3.1.4 on 2021-11-10 08:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('evapp', '0002_auto_20210914_1055'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='department',
field=models.CharField(choices=[('PROG', 'Programme'), ('SOFT', 'Softwareentwicklung'), ('CENT', 'Central'), ('KOMEV', 'Kommunikation und Events'), ('VOR', 'Vorstand')], max_length=5, verbose_name='Bereich'),
),
]

View File

@ -1,5 +1,5 @@
# temporary setting while change and exit is not yet fully implemented
ONLY_ONBOARDING = True
ONLY_ONBOARDING = False
# sender mail adress also used for MAILTEST mode
EVA_MAIL = 'it-support@wikimedia.de'

View File

@ -55,6 +55,7 @@ class LoginTestCase(TestCase):
'0-firstname': 'Ara',
'0-lastname': 'Seva',
'0-department': 'CENT',
'0-choice': 'IN'
}, WorkingForm)
response = self._postform({