started process recognition
This commit is contained in:
parent
476def4826
commit
4917d24fd5
|
@ -23,9 +23,8 @@ class EvaForm(ModelForm):
|
||||||
TYPE_CHOICES = {'IN': 'Eintritt', 'CHANGE': 'Veränderung', 'OUT': 'Austritt'}
|
TYPE_CHOICES = {'IN': 'Eintritt', 'CHANGE': 'Veränderung', 'OUT': 'Austritt'}
|
||||||
|
|
||||||
class PersonalForm(EvaForm):
|
class PersonalForm(EvaForm):
|
||||||
# TODO: comment this back in to use implementation of change or exit process
|
choice = ChoiceField(choices=TYPE_CHOICES.items(), widget=RadioSelect,
|
||||||
# choice = ChoiceField(choices=TYPE_CHOICES.items(), widget=RadioSelect,
|
label='Welcher Prozess soll angestoßen werden?')
|
||||||
# label='Welcher Prozess soll angestoßen werden?')
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Employee
|
model = Employee
|
||||||
|
|
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -1,5 +1,5 @@
|
||||||
# temporary setting while change and exit is not yet fully implemented
|
# 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
|
# sender mail adress also used for MAILTEST mode
|
||||||
EVA_MAIL = 'it-support@wikimedia.de'
|
EVA_MAIL = 'it-support@wikimedia.de'
|
||||||
|
|
|
@ -55,6 +55,7 @@ class LoginTestCase(TestCase):
|
||||||
'0-firstname': 'Ara',
|
'0-firstname': 'Ara',
|
||||||
'0-lastname': 'Seva',
|
'0-lastname': 'Seva',
|
||||||
'0-department': 'CENT',
|
'0-department': 'CENT',
|
||||||
|
'0-choice': 'IN'
|
||||||
}, WorkingForm)
|
}, WorkingForm)
|
||||||
|
|
||||||
response = self._postform({
|
response = self._postform({
|
||||||
|
|
Loading…
Reference in New Issue