# reports/forms.py
from django import forms

class ReportGenerationForm(forms.Form):
    REPORT_TYPES = [
        ('academic', 'Academic Report'),
        ('attendance', 'Attendance Report'),
        ('financial', 'Financial Report'),
    ]
    
    report_type = forms.ChoiceField(choices=REPORT_TYPES, widget=forms.Select(attrs={'class': 'form-control'}))
    from_date = forms.DateField(widget=forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}))
    to_date = forms.DateField(widget=forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}))
    format = forms.ChoiceField(choices=[('pdf', 'PDF'), ('csv', 'CSV')], widget=forms.Select(attrs={'class': 'form-control'}))