from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import ScamReport

class ScamReportForm(forms.ModelForm):
    class Meta:
        model = ScamReport
        fields = ['description', 'source']
        widgets = {
            'description': forms.Textarea(attrs={
                'class': 'form-control', 
                'placeholder': 'Describe the scam in detail...',
                'rows': 4
            }),
            'source': forms.TextInput(attrs={
                'class': 'form-control', 
                'placeholder': 'e.g., suspicious.com or scammer@example.com'
            }),
        }

class SignUpForm(UserCreationForm):
    class Meta:
        model = User
        fields = ('username', 'email')
