from django import forms
from .models import SongRequest

class SongRequestForm(forms.ModelForm):
    class Meta:
        model = SongRequest
        fields = ['listener_name', 'song_title', 'artist_name', 'message']
        widgets = {
            'listener_name': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Tu Nombre'}),
            'song_title': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Título de la Canción'}),
            'artist_name': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Nombre del Artista'}),
            'message': forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'Mensaje opcional', 'rows': 3}),
        }