Correction sur l'afficha de la liste de departement pour la modification des informations de l'employer
All checks were successful
Organisation/sirh/pipeline/head This commit looks good
All checks were successful
Organisation/sirh/pipeline/head This commit looks good
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from django import forms
|
||||
from .models import Contrat, Departement, Employe,Affectation,Formation
|
||||
|
||||
class EmployeForm(forms.ModelForm):
|
||||
"""Formulaire pour modifier les informations de profil d'un employé"""
|
||||
class Meta:
|
||||
model = Employe
|
||||
fields = (
|
||||
'departement',
|
||||
'fonction',
|
||||
'adresse',
|
||||
'telephone',
|
||||
'CV',
|
||||
@@ -13,7 +14,18 @@ class EmployeForm(forms.ModelForm):
|
||||
'rib',
|
||||
'photo',
|
||||
'casier_judiciaire'
|
||||
)
|
||||
)
|
||||
widgets = {
|
||||
'departement': forms.Select(attrs={'class': 'form-select'}),
|
||||
'fonction': forms.Select(attrs={'class': 'form-select'}),
|
||||
'adresse': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'telephone': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'CV': forms.FileInput(attrs={'class': 'form-control'}),
|
||||
'diplome': forms.FileInput(attrs={'class': 'form-control'}),
|
||||
'rib': forms.FileInput(attrs={'class': 'form-control'}),
|
||||
'photo': forms.FileInput(attrs={'class': 'form-control'}),
|
||||
'casier_judiciaire': forms.FileInput(attrs={'class': 'form-control'}),
|
||||
}
|
||||
|
||||
class AffectationForm(forms.ModelForm):
|
||||
class Meta:
|
||||
|
||||
Reference in New Issue
Block a user