"""Form for submitting suggestions."""

from django import forms

from suggestions import models

class SuggestionForm(forms.ModelForm):
    name = forms.CharField(max_length=100, label="Name",
            widget=forms.TextInput(attrs={'placeholder': 'Name'}))
    email = forms.EmailField(label="Email", required=False,
            widget=forms.TextInput(attrs={'placeholder': 'Email (Optional)'}))
    types = forms.ModelMultipleChoiceField(
                required=False,
                queryset=models.SuggestionType.objects.all().order_by("name"))
    text = forms.CharField(widget=forms.Textarea(
                attrs={'rows':5, 'placeholder': "Comments"}))

    class Meta:
        model = models.Suggestion
        fields = ("name", "email", "types", "text",)

"""Form for submitting suggestions."""

from django import forms
from django.utils.translation import ugettext as _

from suggestions import models

class SuggestionForm(forms.ModelForm):
    name = forms.CharField(max_length=100, label=_("Name"),
            widget=forms.TextInput(attrs={'placeholder': _('Name')}))
    email = forms.EmailField(label=_("Email"), required=False,
            widget=forms.TextInput(attrs={'placeholder': _('Email (Optional)')}))
    types = forms.ModelMultipleChoiceField(
                required=False,
                queryset=models.SuggestionType.objects.all().order_by(_("name")))
    text = forms.CharField(widget=forms.Textarea(
                attrs={'rows':5, 'placeholder': _("Let us know what you think...")}))

    class Meta:
        model = models.Suggestion
        fields = ("name", "email", "types", "text",)

Add some translation stuff on the suggestion form
Add some translation stuff on the suggestion form
