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',
        }  