Bug : Affichages des conges
This commit is contained in:
17
gestion_conge/forms.py
Normal file
17
gestion_conge/forms.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from django import forms
|
||||
from .models import Conge
|
||||
|
||||
class CongeForm(forms.ModelForm):
|
||||
"""Formulaire de demande de congé."""
|
||||
class Meta:
|
||||
model = Conge
|
||||
fields =['type', 'date_debut', 'date_fin']
|
||||
widgets = {
|
||||
'date_debut': forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}),
|
||||
'date_fin': forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}),
|
||||
'type': forms.Select(attrs={'class': 'form-select'}),
|
||||
}
|
||||
|
||||
labels = {
|
||||
'nombre_jours':'Nombre de jours',
|
||||
}
|
||||
Reference in New Issue
Block a user