예제 #1
0
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']
예제 #2
0
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']
예제 #3
0
class OsirixForm(forms.Form)
    subject = forms.Charfield()
    directory = forms.Charfield()


    def get_data(self):

        pass
예제 #4
0
class registration(forms.Form):
    fistname = forms.CharField()
    lastname = forms.CharField()
    email = forms.EmailField()
    degree = forms.Charfield()
    education = forms.CharField()
    address = forms.CharField()
예제 #5
0
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)
예제 #6
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',}
예제 #7
0
파일: forms.py 프로젝트: doyin/cs3305group5
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'))
예제 #8
0
class ContactForm(forms.Form):
    name = forms.CharField()
    family = forms.Charfield()
    email = forms.EmailField()
    message = forms.CharField()
예제 #9
0
class RegFrom(forms.Form):
    nombre = forms.Charfield(max_length=100)
    email = forms.EmailField()
예제 #10
0
class SearchForm(forms):
    word = forms.Charfield(label='Search Word')
예제 #11
0
class PostForm(forms.Form):
    content = forms.Charfield(max_length=500, widget=forms.Textarea)
예제 #12
0
class ContactForm(forms.Form):
    fullname = forms.Charfield()
    email = forms.EmailField()
    content = forms.CharField()
예제 #13
0
class LoginForm(forms.ModelForm):
    password2 = forms.Charfield(max_legth=255, required=True)

    class Meta:
        model = User
        fields = ('username', 'email', 'password', 'password2')
예제 #14
0
파일: forms.py 프로젝트: lre12/medihelper
class SearchForm(forms):
    word = forms.Charfield(label='증상입력')
예제 #15
0
class UserForm(forms.ModelForm):
    password = forms.Charfield(widget=forms.PasswordInput())

    class Meta:
        model = User
        fields = ("username", "first_name", "last_name", "password", "email")
예제 #16
0
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())
예제 #17
0
class TwofaForm(forms.Form):
    code = forms.Charfield(label='2fa', max_length=5)
예제 #18
0
class UserFor(forms.ModelForm):
    password = forms.Charfield(widget=forms.PasswordInput())

    class Meta():
        model = User
        fields = ('username', 'email', 'password')  #tuple, car unique value
예제 #19
0
class TweetForm(forms.Form):
    text = forms.Charfield(max_length=140, widget=forms.Textarea)
예제 #20
0
파일: forms.py 프로젝트: wilbrone/Django1
class NewsLetterForm(forms.Form):
    your_name = forms.Charfield(label='First Name', max_length=30)
    email = forms.EmailField(label='Email')
예제 #21
0
 class SinupForm(form.ModelForm):
     username=forms.Charfield(max_length=128)
예제 #22
0
class BiographyForm(forms.Form):
    '''
    Form to edit someones biography
    '''
    content = forms.Charfield()
예제 #23
0
class ProjectForm(forms.Form):
    title = forms.Charfield(label='Project Title')
    founder
예제 #24
0
파일: forms.py 프로젝트: Liomeli/dj_pr
class MyForm(forms.Form):
    title = forms.Charfield(max_length=20)
    content = forms.TextField(widget=forms.Textarea)  #параметр validators
예제 #25
0
class UserLogin(forms.Form):
    username = forms.Charfield(required=True)
    password = forms.Charfield(required=True, widget=forms.PasswordInput())