from django import forms
from .models import StudentProfile

class StudentProfileForm(forms.ModelForm):
    class Meta:
        model = StudentProfile
        fields = ['education', 'interests', 'aptitude_scores', 'skills',
                  'resume_id', 'digilocker_id', 'languages',
                  'consent_for_portfolio', 'career_preferences']
        widgets = {
            'interests': forms.Textarea(attrs={'rows': 3}),
            'aptitude_scores': forms.Textarea(attrs={'rows': 3}),
            'skills': forms.Textarea(attrs={'rows': 3}),
            'languages': forms.Textarea(attrs={'rows': 3}),
            'career_preferences': forms.Textarea(attrs={'rows': 3}),
        }