class ConfigForm(ModelForm): nick = forms.Charfield(label='Nick', max_length=20, required=True, widget=forms.TextInput(attrs={ 'class': 'form-control', 'id': 'Digite seu nick' })) senha = forms.CharField( label='Senha', max_length=30, required=True, widget=forms.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'Digite sua senha' })) email = forms.Charfield( label='Email', required=True, widget=forms.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'Digite seu email' })) class Meta: model = ConfigModal fields = ['nick', 'senha', 'email']
class MovieForm(forms.Form): movie = forms.Charfield(label='Movie name:', max_length=100) director = forms.Charfield(label='Director:', max_length=100) class Meta: model = Movie fields = ['movie', 'director']
class OsirixForm(forms.Form) subject = forms.Charfield() directory = forms.Charfield() def get_data(self): pass
class registration(forms.Form): fistname = forms.CharField() lastname = forms.CharField() email = forms.EmailField() degree = forms.Charfield() education = forms.CharField() address = forms.CharField()
class Signup(forms.Form): UserName = forms.Charfield(max_length=100) Name = forms.CharField(max_length=100) Email = forms.EmailField() Password = forms.CharField(max_length=100) pass1 = forms.CharField(max_length=100) Phoneno = forms.IntegerField(default=0)
class SignUpForm(UserCreationForm): email = forms.EmailField() first_name = forms.Charfield(max_length=100) last_name = forms.CharField(max_length=100) class Meta: model = User fields = {'username', 'first_name', 'last_name', 'email', 'password1', 'password2',}
class RegistrationForm(forms.Form): addr1 = forms.CharField( max_length=40, required=True, ) addr2 = forms.CharField( max_length=40, required=True, ) addr3 = forms.CharField( max_length=40, required=False, ) addr4 = forms.CharField( max_length=40, required=False, ) pri_phone_number = forms.IntegerField( max_length=40, required=False, ) sec_phone_numer = forms.IntegerField( max_length=40, required=False, ) email = forms.Emailfield( max_length=40, required=True, ) charity_description = forms.Charfield( max_length=1000, required=False, ) def __init__(self, *args, **kwargs): super(ExampleForm, self).__init__(*args, **kwargs) self.helper = FormHelper() self.helper.form_id = 'id-exampleForm' self.helper.form_class = 'blueForms' self.helper.form_method = 'post' self.helper.form_action = 'submit_survey' self.helper.add_input(Submit('submit', 'Submit'))
class ContactForm(forms.Form): name = forms.CharField() family = forms.Charfield() email = forms.EmailField() message = forms.CharField()
class RegFrom(forms.Form): nombre = forms.Charfield(max_length=100) email = forms.EmailField()
class SearchForm(forms): word = forms.Charfield(label='Search Word')
class PostForm(forms.Form): content = forms.Charfield(max_length=500, widget=forms.Textarea)
class ContactForm(forms.Form): fullname = forms.Charfield() email = forms.EmailField() content = forms.CharField()
class LoginForm(forms.ModelForm): password2 = forms.Charfield(max_legth=255, required=True) class Meta: model = User fields = ('username', 'email', 'password', 'password2')
class SearchForm(forms): word = forms.Charfield(label='증상입력')
class UserForm(forms.ModelForm): password = forms.Charfield(widget=forms.PasswordInput()) class Meta: model = User fields = ("username", "first_name", "last_name", "password", "email")
class contactForm(forms.Form): name = forms.Charfield(required=False, max_length=100, help_text="not more than 100 characters only") email = forms.EmailField(required=True) comment = forms.Charfield(required=True, widget=forms.Textarea) captcha = ReCaptchaField(widget=ReCaptchaWidget())
class TwofaForm(forms.Form): code = forms.Charfield(label='2fa', max_length=5)
class UserFor(forms.ModelForm): password = forms.Charfield(widget=forms.PasswordInput()) class Meta(): model = User fields = ('username', 'email', 'password') #tuple, car unique value
class TweetForm(forms.Form): text = forms.Charfield(max_length=140, widget=forms.Textarea)
class NewsLetterForm(forms.Form): your_name = forms.Charfield(label='First Name', max_length=30) email = forms.EmailField(label='Email')
class SinupForm(form.ModelForm): username=forms.Charfield(max_length=128)
class BiographyForm(forms.Form): ''' Form to edit someones biography ''' content = forms.Charfield()
class ProjectForm(forms.Form): title = forms.Charfield(label='Project Title') founder
class MyForm(forms.Form): title = forms.Charfield(max_length=20) content = forms.TextField(widget=forms.Textarea) #параметр validators
class UserLogin(forms.Form): username = forms.Charfield(required=True) password = forms.Charfield(required=True, widget=forms.PasswordInput())