diff --git a/evapp/forms.py b/evapp/forms.py index 266b958..c63b58e 100644 --- a/evapp/forms.py +++ b/evapp/forms.py @@ -23,8 +23,9 @@ class EvaForm(ModelForm): TYPE_CHOICES = {'IN': 'Eintritt', 'CHANGE': 'Veränderung', 'OUT': 'Austritt'} class PersonalForm(EvaForm): - choice = ChoiceField(choices=TYPE_CHOICES.items(), widget=RadioSelect, - label='Welcher Prozess soll angestoßen werden?') + # 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?') class Meta: model = Employee @@ -34,7 +35,7 @@ class WorkingForm(EvaForm): def clean(self): data = self.cleaned_data - if not data['remote'] and data['desk'] is None: + if not data['remote'] and data['desk'] is None: raise ValidationError('Wer nicht remote arbeitet braucht einen Schreibtisch!') return data diff --git a/evapp/settings.py b/evapp/settings.py index 16d800e..ff4ac6a 100644 --- a/evapp/settings.py +++ b/evapp/settings.py @@ -1,3 +1,6 @@ +# temporary setting while change and exit is not yet fully implemented +ONLY_ONBOARDING = True + # sender mail adress EVA_MAIL = 'benni.baermann@wikimedia.de' diff --git a/evapp/templates/evapp/employee_form.html b/evapp/templates/evapp/employee_form.html index fa0c248..bbb5796 100644 --- a/evapp/templates/evapp/employee_form.html +++ b/evapp/templates/evapp/employee_form.html @@ -60,9 +60,12 @@