예제 #1
0
파일: forms.py 프로젝트: django500/RemoteRe
class EnquryForm(forms.Form):
    name = forms.CharField(label='Enter Your name',
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Your name'
                           }))
    email = forms.EmailField(
        label='Enter Your Email Id',
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Email'
        }))
    mobile = forms.IntegerField(
        label='Enter Your Mobile Number',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Mobile Number'
        }))
    GENDER_CHOICES = (('F', 'FEMALE'), ('M', 'MALE'))
    gender = forms.ChoiceField(label='Enter Your Gender',
                               widget=forms.RadioSelect(),
                               choices=GENDER_CHOICES)
    COURSES_CHOICES = (('PY', 'PTHON'), ('DJ', 'DJANGO'), ('RA', 'REST API'),
                       ('FL', 'FLASK'), ('J', 'JAVA'), ('UI', 'UI'))
    courses = MultiSelectFormField(choices=COURSES_CHOICES)
    SHIFTS_CHOISES = (('Morning', 'Morning Shift'), ('Afternoon',
                                                     'Afternoon Shift'),
                      ('Evening', 'Evening Shift'), ('Night', 'Night Shift'))
    shifts = MultiSelectFormField(choices=SHIFTS_CHOISES)
    y = range(1986, 2020)
    start_date = forms.DateTimeField(label='Select Date',
                                     widget=forms.SelectDateWidget(years=y))
예제 #2
0
class contactform(forms.Form):
    Name = forms.CharField(
        label='Enter your name',
        widget=forms.TextInput(attrs={
            'placeholder': 'Name',
            'class': 'form-control',
            'id': 'name1'
        }))
    Email = forms.EmailField(
        label='Enter your Email',
        widget=forms.EmailInput(attrs={
            'placeholder': 'Email',
            'class': 'form-control',
            'id': 'email'
        }))
    Mobile = forms.IntegerField(
        label='Enter your Number',
        widget=forms.NumberInput(attrs={
            'placeholder': 'Number',
            'class': 'form-control',
            'id': 'number'
        }))
    JOB_LOCATION = (('hyd', 'hyderabad'), ('che', 'chennai'),
                    ('mum', 'mumbai'), ('ban', 'bangalore'), ('pune', 'pune'))
    Location = MultiSelectFormField(max_length=30, choices=JOB_LOCATION)
    COURSES = (('PYTHON', 'PYTHON'), ('DJANGO', 'DJANGO'), ('UI', 'UI'),
               ('REST-API', 'REST-API'), ('JAVA', 'JAVA'))
    Course = MultiSelectFormField(max_length=20, choices=COURSES)
    GENDER = (('Male', 'Male'), ('Female', 'Female'))
    Gender = forms.ChoiceField(widget=forms.RadioSelect(), choices=GENDER)
    y = range(1947, 2019)
    Dob = forms.DateField(label='Enter your DOB',
                          widget=forms.SelectDateWidget(years=y))
예제 #3
0
class ContactForm(forms.Form):
    name = forms.CharField(label='Enter Your Name:',
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Your Name'
                           }))
    email = forms.EmailField(
        label='Enter Your Email:',
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Email'
        }))
    mobile = forms.IntegerField(
        label='Enter Your Mobile Number:',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Mobile Number'
        }))
    COURSES_CHOICES = (('python', 'python'), ('django', 'Django'),
                       ('api', 'API'), ('ui', 'UI'), ('flask', 'FLASK'))
    courses = MultiSelectFormField(max_length=200, choices=COURSES_CHOICES)

    LOCATION_CHOICES = (('hyd', 'Hyderabad'), ('bang', 'Bangalore'),
                        ('che', 'Chennai'))
    location = MultiSelectFormField(max_length=200, choices=LOCATION_CHOICES)

    SHIFT_CHOICES = (('morning', 'Morning'), ('afternoon', 'Afternoon'),
                     ('evening', 'Evening'), ('night', 'Night'))
    shift = MultiSelectFormField(max_length=200, choices=SHIFT_CHOICES)
예제 #4
0
class EnquiryForm(forms.Form):
    fname = forms.CharField(
        label='Enter Your Name',
        widget=forms.TextInput(attrs={
            'class': 'form_control',
            'placeholder': 'Your Name'
        }))
    femail = forms.EmailField(
        label='Enter Your Email',
        widget=forms.EmailInput(attrs={
            'class': 'form_control',
            'placeholder': 'Your Email'
        }))
    fmobile = forms.IntegerField(
        label='Enter Your Mobile Number',
        widget=forms.NumberInput(attrs={
            'class': 'form_control',
            'placeholder': 'Your Number'
        }))
    COURSES_CHOICES = (('py', 'PYTHON'), ('dj', 'DJANGO'), ('ui', 'UI'),
                       ('ra', 'RESTAPI'))
    fcourse = MultiSelectFormField(max_length=500, choices=COURSES_CHOICES)
    TRAINERS_CHOICES = (('RAMYA', 'ramya'), ('SAI', 'sai'), ('KESAV', 'kesav'))
    ftrainer = MultiSelectFormField(max_length=500, choices=TRAINERS_CHOICES)
    BRANCHES_CHOICES = (('srnagar', 'SRNAGAR'), ('madpur', 'MADHAPUR'),
                        ('kphb', 'KPHB'))
    fbranch = MultiSelectFormField(max_length=500, choices=BRANCHES_CHOICES)
    GENDER_CHOICES = (('Male', 'male'), ('Female', 'female'))
    fgender = forms.ChoiceField(widget=forms.RadioSelect(),
                                choices=GENDER_CHOICES)
    years = range(1960, 2021, 1)
    fdate = forms.DateField(widget=forms.SelectDateWidget(years=years))
예제 #5
0
class EnquryForm(forms.Form):
    name = forms.CharField(
        label="Enter Your Name:",
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Yours Name'
        }))
    email = forms.EmailField(
        label="Enter Your Email:",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Yours Email'
        }))
    mobile = forms.IntegerField(
        label="Enter Your Mobile Number:",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Yours Mobile Number'
        }))
    COURSES_CHOICES = (('PY', 'Python'), ('DJ', 'Django'), ('RA', 'Rest API'))
    course = MultiSelectFormField(choices=COURSES_CHOICES,
                                  label="Select your required courses")
    LOCATION_CHOICES = (('HYD', 'Hyderbad'), ('BANG', 'Bangalore'),
                        ('che', 'Chennai'))
    location = MultiSelectFormField(choices=LOCATION_CHOICES,
                                    label="select your required location")
    GENDER_CHOICES = (('M', 'Male'), ('F', 'Female'))
    gender = forms.ChoiceField(choices=GENDER_CHOICES,
                               widget=forms.RadioSelect,
                               label="Select your Gender")
    start_date = forms.DateField(widget=forms.SelectDateWidget(),
                                 label="select your date:")
예제 #6
0
class AddForm(forms.Form):
    company_name = forms.CharField(max_length=50,
                                   label="Company Name",
                                   widget=forms.TextInput(
                                       attrs={'class': 'com_name'}, ))
    formats = MultiSelectFormField(
        label="Formats",
        choices=MY_FORMATS,
        widget=forms.CheckboxSelectMultiple(attrs={'class': 'frmts'}))
    search_these = MultiSelectFormField(
        label="Searchable Sites",
        choices=SITES_TO_SEARCH,
        widget=forms.CheckboxSelectMultiple(attrs={'class': 'sites'}))
    username = forms.CharField(label="Username",
                               widget=forms.TextInput(),
                               required=True)
    contact_fname = forms.CharField(label="First Name",
                                    widget=forms.TextInput(),
                                    required=True)
    contact_lname = forms.CharField(label="Last Name",
                                    widget=forms.TextInput(),
                                    required=True)
    contact_email = forms.CharField(label="Email",
                                    widget=forms.TextInput(),
                                    required=True)
예제 #7
0
class ContactForm(forms.Form):
    name = forms.CharField(label="Enter your name",
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'your name'
                           }))
    email = forms.EmailField(
        label="Enter your email",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'your mobile'
        }))
    mobile = forms.IntegerField(
        label="enter your mobile",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'your mobile'
        }))
    COURSES_CHOICES = (('python', 'python'), ('django', 'django'),
                       ('ui', 'ui'), ('restapi', 'restapi'), ('flask',
                                                              'flask'))
    courses = MultiSelectFormField(max_length=100, choices=COURSES_CHOICES)
    LOCATION_CHOICES = (
        ('hyd', 'hyderabd'),
        ('bang', 'banglore'),
        ('che', 'chennai'),
    )
    locaions = MultiSelectFormField(max_length=100, choices=LOCATION_CHOICES)
    SHIFT_CHOICES = (('mrng', 'morning'), ('aftrn', 'afternoon'), ('evng',
                                                                   'evening'))
    shifts = MultiSelectFormField(max_length=100, choices=SHIFT_CHOICES)
예제 #8
0
class Contact_form(forms.Form):
    name = forms.CharField(label="Enter your name",
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'your name'
                           }))

    mobile = forms.IntegerField(
        label="enter mobile number",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'your mobile'
        }))

    email = forms.EmailField(
        label="enter your mail ID",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'your mail Id'
        }))

    COURSE_CHOICES = (('py', 'Python'), ('dj', 'django'), ('UI', 'UI'),
                      ('api', 'Rest API'))

    cource = MultiSelectFormField(max_length=100, choices=COURSE_CHOICES)

    LOCATION_CHOICES = (('hyd', 'Hyderabad'), ('bang', 'Bangalore'),
                        ('pune', 'Pune'), ('chenni', 'chenni'))

    locations = MultiSelectFormField(max_length=100, choices=LOCATION_CHOICES)

    SHIFT_CHOICES = (('mng', 'Morning'), ('aftnoon', 'AfterNoon'),
                     ('evng', 'Evining'), ('night', 'night'))

    shifts = MultiSelectFormField(max_length=100, choices=SHIFT_CHOICES)
예제 #9
0
class EnquiryForm(forms.Form):
    name = forms.CharField(
        label='Enter Your Name',
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Name'
        }))
    mobile = forms.IntegerField(
        label='Enter Your Mobile Number',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Mobile Number'
        }))
    email = forms.EmailField(
        label='Enter Your Email',
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Email'
        }))
    COURSES_CHOICES = (('py', 'Python'), ('dj', 'Djang'), ('ui', 'UI'),
                       ('ra', 'Rest Api'))
    courses = MultiSelectFormField(max_length=200, choices=COURSES_CHOICES)
    BRANCHES_CHOICES = (('hyd', 'Hyderabad'), ('bang', 'Bangalore'),
                        ('che', 'Chennai'), ('pune', 'Pune'))
    branches = MultiSelectFormField(max_length=200, choices=BRANCHES_CHOICES)

    GENDER_CHOICES = (('M', 'Male'), ('f', 'Fenale'))
    gender = forms.ChoiceField(widget=forms.RadioSelect(),
                               choices=GENDER_CHOICES)
    y = range(2019, 2022)
    startdate = forms.DateField(widget=forms.SelectDateWidget(years=y))
예제 #10
0
class ContactForm(forms.Form):
    name = forms.CharField(
        label="Enter your name :",
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter your name'
        }))
    email = forms.CharField(
        label="Enter your email :",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter your email'
        }))
    mobile = forms.IntegerField(
        label="Enter your mobile :",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter your mobile number'
        }))
    COURSES_CHOICE = (('python', 'Python'), ('django', 'Django'),
                      ('html', 'HTML'), ('css', 'CSS'))
    courses = MultiSelectFormField(max_length=30, choices=COURSES_CHOICE)

    SHIFT_CHOICE = (('morning', 'Morning'), ('evening', 'Evening'),
                    ('afternoon', 'Afternoon'), ('nght', 'Night'))
    shift = MultiSelectFormField(max_length=30, choices=SHIFT_CHOICE)

    LOCATION_CHOICE = (('hyderabad', 'Hyderabad'), ('bangalore', 'Bangalore'),
                       ('chennai', 'Chennai'), ('pune', 'Pune'))
    location = MultiSelectFormField(max_length=100, choices=LOCATION_CHOICE)

    GENDER_CHOICE = (('m', 'Male'), ('f', 'Female'))
    gender = forms.ChoiceField(widget=forms.RadioSelect(),
                               choices=GENDER_CHOICE)
    date = forms.DateField(widget=forms.SelectDateWidget())
class ContactForm(forms.Form):
    name = forms.CharField(label="Enter Your name",
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Your name'
                           }))

    email = forms.EmailField(
        label="Enter Your email",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your email'
        }))

    mobile = forms.IntegerField(
        label="Enter Your mobile",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your mobile'
        }))

    COURSE_CHOICES = (('python', 'Python'), ('django', 'Django'),
                      ('restapi', 'RestAPI'), ('ui', 'UI'))
    courses = MultiSelectFormField(max_length=50, choices=COURSE_CHOICES)

    LOCATION_CHOICES = (('hyd', 'Hyderabad'), ('bang', 'Bangalore'),
                        ('che', 'Chennai'))
    locations = MultiSelectFormField(max_length=50, choices=LOCATION_CHOICES)
    SHIFT_CHOICES = (('mrng', 'Morning'), ('aftn', 'Afternoon'),
                     ('eve', 'Evening'), ('nite', 'Night'))
    shift = MultiSelectFormField(max_length=50, choices=SHIFT_CHOICES)
예제 #12
0
class EnquiryForm(forms.Form):
    name = forms.CharField(label="Enter your Name:",
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Your Name'
                           }))
    mobile = forms.IntegerField(
        label="Enter your mobile number:",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Mobile Number'
        }))
    email = forms.EmailField(
        label="Enter your Email:",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'your Email'
        }))
    Gender_Choices = (('F', 'Female'), ('M', 'Male'))
    gender = forms.ChoiceField(widget=forms.RadioSelect,
                               choices=Gender_Choices)
    CORSESS_CHOISES = (('PY', "PYTHON"), ('DJ', 'Django'), ('RA', 'Rest  Api'))
    course = MultiSelectFormField(choices=CORSESS_CHOISES)
    SHIFTS_CHOISES = (('Morning', 'Morning shift'), ('Afternoon',
                                                     'Afternoon_shift'),
                      ('Evening', 'Evening_shift'), ('Night', 'Night_shift'))
    shifts = MultiSelectFormField(choices=SHIFTS_CHOISES)
    start_date = forms.DateField(widget=forms.SelectDateWidget())
예제 #13
0
class EnquiryForm(forms.Form):
    name = forms.CharField(label="Enter Your Name",
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Your Name'
                           }))
    email = forms.EmailField(
        label="Enter Your email",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Email'
        }))
    mobile = forms.IntegerField(
        label="Enter Your Mobile number ",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Mobile Number'
        }))
    Gender_Choices = (('F', 'Female'), ('M', 'Male'))
    gender = forms.ChoiceField(widget=forms.RadioSelect(),
                               choices=Gender_Choices)
    COURSES_CHOICES = (('py', 'Python'), ('dj', 'Django'), ('RA', 'Rest API'),
                       ('FI', 'Flask'), ('UI', 'UI'))
    courses = MultiSelectFormField(choices=COURSES_CHOICES)
    SHIFTS_CHOICES = (('Morning', 'Morning Shift'), ('Afternoon',
                                                     'Afternoon Shift'),
                      ('Evening', 'Evening Shift'), ('Night', 'Night Shift'))
    shifts = MultiSelectFormField(choices=SHIFTS_CHOICES)
    start_date = forms.DateTimeField(widget=forms.SelectDateWidget())
예제 #14
0
class EnquiryForm(forms.Form):
    name = forms.CharField(label="Enter your Name",
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Your Name'
                           }))
    email = forms.EmailField(
        label="Enter your Email",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Email'
        }))
    mobile = forms.IntegerField(
        label="Enter your mobile number",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Mobile number'
        }))
    GENDER_CHOICES = (('F', 'Female'), ('M', 'Male'))
    gender = forms.ChoiceField(widget=forms.RadioSelect,
                               choices=GENDER_CHOICES)
    COURSES_CHOICES = (('py', "python"), ('dj', "django"), ('py', "Rest Api"),
                       ('fl', "Flask"), ('UI', "Ui"))
    courses = MultiSelectFormField(choices=COURSES_CHOICES)

    SHIFTS_CHOICES = (('Moring', 'Moring Shift'), ('Afternoon',
                                                   'Afternoon shift'),
                      ('Evening', 'Evening Shift'), ('Night', 'Night Shift'))
    shifts = MultiSelectFormField(choices=SHIFTS_CHOICES)

    start_date = forms.DateTimeField(widget=forms.SelectDateWidget)
예제 #15
0
class ContactForm(forms.Form):
    name = forms.CharField(label='Enter Your Name',
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Your Name'
                           }))
    email = forms.EmailField(
        label="Enter your Email",
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Email'
        }))
    mobile = forms.IntegerField(
        label="Enter your Mobile",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Your Number'
        }))
    COURSES_CHOICES = (('py', 'Python'), ('dj', 'Django'), ('ui', 'UI'),
                       ('rest', 'REST API'))
    courses = MultiSelectFormField(max_length=200, choices=COURSES_CHOICES)
    SHIFT_CHOICES = (('mrg', 'Morning'), ('aft', 'Afternoon'),
                     ('evn', 'Evening'), ('ng', 'Night'))
    shifts = MultiSelectFormField(max_length=200, choices=SHIFT_CHOICES)

    LOCATION_CHOICES = (('hy', 'Hyderabad'), ('pn', 'Pune'), ('ch', 'Chennai'),
                        ('bg', 'Bangalore'))
    locations = MultiSelectFormField(max_length=200, choices=LOCATION_CHOICES)
    GENDER_CHOICES = (('m', 'male'), ('f', 'female'))
    gender = forms.ChoiceField(widget=forms.RadioSelect(),
                               choices=GENDER_CHOICES)
    start_date = forms.DateField(widget=forms.SelectDateWidget)
예제 #16
0
class StudentForm(forms.Form):
    name = forms.CharField(label='enter your name',
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'your name'
                           }))
    mobile = forms.IntegerField(
        label='enter your mobile number',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'enter Mobile number'
        }))
    email = forms.EmailField(
        label='enter your email',
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'enter email'
        }))
    COURSE_CHOICES = (('python', 'PYTHON'), ('django', 'DJANGO'),
                      ('rest API', 'REST API'), ('UI', 'UI'))
    courses = MultiSelectFormField(max_length=200, choices=COURSE_CHOICES)
    TRAINER_CHOICES = (('sai', 'SAI'), ('shiva', 'SHIVA'),
                       ('ganesh', 'GANESH'), ('mahesh', 'MAHESH'))
    trainer = MultiSelectFormField(max_length=200, choices=TRAINER_CHOICES)
    TIMING_CHOICES = (('morning', 'MORNING'), ('afternoon', 'AFTERNOON'),
                      ('evening', 'EVENINHG'))
    timings = MultiSelectFormField(max_length=200, choices=TIMING_CHOICES)
    start_date = forms.DateField(widget=forms.SelectDateWidget())
예제 #17
0
class EnquiryForm(forms.Form):
    name = forms.CharField(
        label="Enter your Name",
        widget=forms.TextInput(
            attrs={
                'class': 'form-control',
                'placeholder': 'Your Name'
            }
        )
    )

    email = forms.EmailField(
        label="Enter your e-Mail ID",
        widget=forms.EmailInput(
            attrs={
                'class': 'form-control',
                'placeholder': 'Your e-Mail ID'
            }
        )
    )

    mobile = forms.IntegerField(
        label="Enter your Mobile Number",
        widget=forms.NumberInput(
            attrs={
                'class': 'form-control',
                'placeholder': 'Your Mobile Number'
            }
        )
    )

    Gender_Choices = (
        ('F', 'Female'),
        ('M', 'Male'),
    )
    gender = forms.ChoiceField(
        widget=forms.RadioSelect, choices=Gender_Choices
    )

    COURSES_CHOICES = (
        ('Py', "Python"),
        ('Dj', "Django"),
        ('RA', "REST API"),
        ('Fl', "Flask"),
        ('UI', "UI")
    )
    courses = MultiSelectFormField(choices=COURSES_CHOICES)

    SHIFTS_CHOICES = (
        ('morning', 'Morning Shift'),
        ('Afternoon', 'Afternoon Shift'),
        ('Evening', 'Evening Shift'),
        ('Night', 'Night Shift'),
    )
    shifts = MultiSelectFormField(choices=SHIFTS_CHOICES)

    start_date = forms.DateField(
        widget=forms.SelectDateWidget()
    )
예제 #18
0
class Equairyform(forms.Form):
    name=forms.CharField(
        label="Enter your name",
        widget=forms.TextInput(
        attrs={
            'class':'form-control',
            'placeholder':'Your Name'
            }
        )
    )
    email = forms.EmailField(
        label="Enter your Email",
        widget=forms.TextInput(
        attrs={
            'class': 'form-control',
            'placeholder': 'Your Email'
            }
        )
    )
    mobile = forms.IntegerField(
        label="Enter your Moblie",
        widget=forms.TextInput(
        attrs={
            'class': 'form-control',
            'placeholder': 'Your Mobile'
            }
        )
    )

    Gender_choice=(
        ('M','Male'),
        ('F','Female')
    )

    gender=forms.ChoiceField(
        widget=forms.RadioSelect,choices=Gender_choice
    )


    COURSE_CHOICES = (
        ('PY', 'python'),
        ('DJ', 'django'),
        ('RA', 'restapi'),
        ('FL', 'flask'),
        ('UI', 'ui')
    )

    courses = MultiSelectFormField(choices=COURSE_CHOICES)

    SHIFTS_CHOICES = (
        ('Morning', 'Morning shift'),
        ('Afternoon', 'Afternoon shift'),
        ('Evening', 'Evening shift'),
        ('Night', 'Night shift'))
    shifts = MultiSelectFormField(choices=SHIFTS_CHOICES)

    start_date=forms.DateField(
        widget=forms.SelectDateWidget())
예제 #19
0
파일: forms.py 프로젝트: rajan96/durgasoft
class ContactForm(forms.Form):
    name = forms.CharField(
        label="Enter Your Name",
        widget=forms.TextInput(
            attrs={
                'class': 'form-control',
                'placeholder': 'Your Name'
            }
        )
    )
    mobile = forms.CharField(
        label="Enter Your MobileNumber",
        widget=forms.NumberInput(
            attrs={
                'placeholder': 'Mobile Number',
                'class': 'forms-control'
            }
        )
    )
    email = forms.EmailField(
        label="Enter Your EmailId",
        widget=forms.EmailInput(
            attrs={
                'placeholder': 'Email Id',
                'class': 'forms-control'
            }
        )
    )
    COURSES_CHOICES = (
        ('Python', 'PYTHON'),
        ('Django', 'DJANGO'),
        ('Rest Api', 'REST API'),
        ('Mysql', 'MYSQL')
    )
    courses =MultiSelectFormField(max_length=300, choices=COURSES_CHOICES,label="Select Required Coures:")
    TRAINER_CHOICES = (
        ('Ravi', 'RAVI'),
        ('Sai', 'SAI'),
        ('Hari', 'HARI')
    )
    trainer = MultiSelectFormField(max_length=300, choices=TRAINER_CHOICES,label="Select Required Trainer:")
    BRANCHES_CHOICES = (
        ('Hyd', 'HYDERABAD'),
        ('Pune', 'PUNE'),
        ('Chennai', 'CHENNAI')
    )
    branches = MultiSelectFormField(max_length=300, choices=BRANCHES_CHOICES,label="Select Required Branches:")

    date=forms.DateField(
        widget=forms.SelectDateWidget(),label="Enter Your Date:"
    )
    GENDER_CHOICES=(
        ('M','Male'),
        ('F','Female')
    )
    gender=forms.ChoiceField(
        widget=forms.RadioSelect,choices=GENDER_CHOICES,label="Select Your Gender:"
    )
예제 #20
0
class ContactForm(forms.Form):
    name = forms.CharField(
        label='Enter Name',
        widget=forms.TextInput(
            attrs={
                'class':'form-control',
                'placeholder':'Name'
            }
        )
    )

    email = forms.EmailField(
        label='Enter Email',
        widget=forms.EmailInput(
            attrs={
                'class':'form-control',
                'placeholder':'EmailId'
            }
        )
    )
    mobile = forms.IntegerField(
        label='Enter Number',
        widget=forms.NumberInput(
            attrs={
                'class':'form-control',
                'placeholder':'Mobile'
            }
        )
    )
    COURSES_CHOICES = (
        ('py', 'Python'),
        ('django', 'Django'),
        ('restapi', 'RestApi'),
        ('ui', 'UI')
    )

    course = MultiSelectFormField(max_length=100,choices=COURSES_CHOICES)

    LOCATION_CHOICES = (
        ('hyd', 'HYDERABAD'),
        ('bang', 'BANGLORE'),
        ('ind', 'INDORE'),
    )

    location = MultiSelectFormField(max_length=100, choices=LOCATION_CHOICES)

    SHIFT_CHOICES = (
        ('morning', 'MORNING'),
        ('afternoon', 'AFTERNOON'),
        ('night', 'NIGHT'),
    )

    shift = MultiSelectFormField(max_length=100, choices=SHIFT_CHOICES)
예제 #21
0
class InsertData(forms.Form):
    product_id = forms.IntegerField(
        label="Enter Your Product Id",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Product Id'
        }))
    product_choice = (
        ('l', 'lenovo'),
        ('d', 'dell'),
        ('h', 'hp'),
        ('s', 'sony'),
    )
    product_name = MultiSelectFormField(max_length=100, choices=product_choice)
    #     label="Enter Product Name",
    #     widget=forms.TextInput(
    #         attrs={
    #             'class': 'form-control',
    #             'placeholder': 'Product Name'
    #         }
    #     )
    # )
    product_cost = forms.CharField(
        label="Enter Product Cost",
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Product Cost'
        }))
    choice_class = (
        ('h', 'high'),
        ('f', 'first'),
        ('m', 'medium'),
        ('l', 'low'),
    )
    product_class = MultiSelectFormField(max_length=100, choices=choice_class)
    #     label="Enter Product Class",
    #     widget=forms.TextInput(
    #         attrs={
    #             'class': 'form-control',
    #             'placeholder': 'Product Class'
    #         }
    #     )
    # )
    color_choice = (
        ('b', 'black'),
        ('w', 'white'),
        ('g', 'grey'),
        ('r', 'red'),
    )
    product_color = MultiSelectFormField(max_length=100, choices=color_choice)
예제 #22
0
class enquary(forms.Form):
    name = forms.CharField(
        label='Enter Your Name ',
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your Name..'
        }))
    mobile = forms.IntegerField(
        label='Enter Your Mobile Number ',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your mobile number..'
        }))
    email = forms.EmailField(
        label='Enter Your Email ID ',
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your mail id..'
        }))
    COURCES_CHOICE = (
        ('python', 'PYTHON'),
        ('django', 'DJANGO'),
        ('ui', 'UI'),
        ('flask', 'FLASK'),
        ('java', 'JAVA'),
    )
    course = MultiSelectFormField(choices=COURCES_CHOICE,
                                  label='select required cources')

    TRAINER_CHOICE = (('narayana', 'NARAYANA'), ('srinivas', 'SRINIVAS'),
                      ('rubi', 'RUBI'), ('rachna', 'RACHNA'), ('mohit',
                                                               'MOHIT'))
    trainer = MultiSelectFormField(choices=TRAINER_CHOICE,
                                   label='select required trainer')

    SHIFT_CHOICE = (('morning', 'MORNING'), ('evening', 'EVENING'), ('night',
                                                                     'NIGHT'))
    shift = MultiSelectFormField(choices=SHIFT_CHOICE,
                                 label='select required shift')

    LOCATION = (('ameerpet', 'AMEERPET'), ('secundrabaad', 'SECANDRABAAD'),
                ('hyd', 'HYD'), ('begumpet', 'BEGUMPET'))
    location = MultiSelectFormField(choices=LOCATION,
                                    label='select required location')

    GENDER_CHOICE = (('male', 'MALE'), ('female', 'FEMAIL'))
    gender = forms.ChoiceField(widget=forms.RadioSelect,
                               choices=GENDER_CHOICE,
                               label='select your gender')
예제 #23
0
class BookingFloristForm(forms.ModelForm):
    booking_date = forms.DateField(widget=SelectDateWidget(),
                                   required=True,
                                   help_text='Required. Enter a valid date.',
                                   initial=timezone.now())
    time_slots = MultiSelectFormField(
        choices=TIME_SLOTS, help_text='Required. Enter valid time slots.')

    class Meta:
        model = FloristBooking
        fields = ('booking_date', 'time_slots')

    def __init__(self, *args, **kwargs):
        self.pk = kwargs.pop('pk', None)
        super(BookingFloristForm, self).__init__(*args, **kwargs)

    #called on validation of the form
    def clean_booking_date(self):
        booking_date = self.cleaned_data.get('booking_date')
        if FloristBooking.objects.all().filter(
                booking_date=booking_date).filter(florist_id=int(self.pk)):
            self.add_error(
                'booking_date',
                "Sorry Date is already booked. Please choose another.")
        return booking_date
예제 #24
0
    def __init__(self, data=None, *args, **kwargs):
        super(AnalysisForm, self).__init__(data, *args, **kwargs)
        td = TreeData.objects.get(pk=self.instance.tree_data.id)
        self.column_choices = tuple((str(_), str(_))
                                    for _ in pd.read_table(td.data.path, sep=td.data_sep, header=0).columns)

        self.fields['tip_id_column'] = forms.ChoiceField(required=True, choices=self.column_choices,
                                                         help_text=u'Column containing tip ids '
                                                                   u'(in the same format as in the tree).')

        multi_column = len(self.column_choices) > 2

        self.fields['character_column(s)' if multi_column else 'character_column'] = \
            MultiSelectFormField(choices=self.column_choices, max_choices=6, min_choices=1,
                                 help_text=u'Column(s) whose ancestral states are to be reconstructed '
                                           u'(to select multiple columns keep Shift pressed).',
                                 widget=widgets.SelectMultiple) \
                if multi_column else \
                forms.ChoiceField(required=True, choices=self.column_choices,
                                  help_text=u'Column whose ancestral states are to be reconstructed.',
                                  initial=self.column_choices[1])

        self.fields.keyOrder = ['tip_id_column', 'character_column{}'.format('(s)' if multi_column else ''),
                                'prediction_method', 'model', 'root_date', 'timeline_type', 'no_trimming',
                                'email', 'title']
        self.fields = OrderedDict((k, self.fields[k]) for k in self.fields.keyOrder)
class CustomerSignup(forms.Form):

    name = forms.CharField(label="Customer Name",widget=forms.TextInput(),required=True)
    phone = forms.CharField(widget=forms.NumberInput)
    address = forms.CharField(widget=forms.TextInput())
    time =forms.DateTimeField(label="Time of Arrival",initial=datetime.datetime.today)
    guests = forms.CharField(label="Number of Guests",widget=forms.NumberInput)
    orderList=[
        ('>Bacon wrapped wild gulf prawns','>Bacon wrapped wild gulf prawns'),
        ('Shawarma','Shawarma'),
        ('Kadahi Paneer','Kadahi Paneer'),
        ('Chicken Biryani','Chicken Biryani'),
        ('Special Thaali','Special Thaali'),
        ('Franky Roll','Franky Roll'),
        ('Lachcha Porotta','Lachcha Porotta'),
        ('chettinad chicken curry','chettinad chicken curry'),
        ('Egg Curry','Egg Curry'),
        ('Dal Makhani','Dal Makhani'),
        ('Aloo Matar Curry','Aloo Matar Curry'),
        
       
    ]
    orders = MultiSelectFormField(choices=orderList)

    password = forms.CharField(widget=forms.PasswordInput())

    confirm=forms.BooleanField()
예제 #26
0
class interestform(ModelForm):
    
    int_fields = MultiSelectFormField( choices=interests.int_choices )

    class Meta:
        model = interests
        fields = ['int_fields']
예제 #27
0
class EnquiryForm(forms.Form):
    name = forms.CharField(label='Enter your Name :',
                           widget=forms.TextInput(attrs={
                               'class': 'form-control',
                               'placeholder': 'Name'
                           }))

    email = forms.EmailField(label='Enter your email id :',
                             widget=forms.EmailInput(attrs={
                                 'class': 'form-control',
                                 'placeholder': 'Email'
                             }))
    mobile = forms.IntegerField(
        label='Enter your mobile number :',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Contact Number'
        }))

    COURSES_CHOICES = (
        ('Python', 'Python'),
        ('Django', 'Django'),
        ('REST-API', 'REST API'),
        ('Flask', 'Flask'),
    )
    course = MultiSelectFormField(choices=COURSES_CHOICES,
                                  label='Select required courses')

    Location_Choices = (
        ('Hyderabad', 'Hyderabad'),
        ('Bangalore', 'Bangalore'),
        ('Chennai', 'Chennai'),
    )
    location = MultiSelectFormField(choices=Location_Choices,
                                    label='Select Your required locations.')

    y = range(1980, 2030)
    start_date = forms.DateField(widget=SelectDateWidget(years=y),
                                 label='Enter requires date')

    GENDER_CHOICES = (
        ('Male', 'Male'),
        ('Female', 'Female'),
    )
    gender = forms.ChoiceField(choices=GENDER_CHOICES,
                               widget=forms.RadioSelect(),
                               label='Select your gender')
예제 #28
0
class entry_student(forms.Form):
    fname = forms.CharField(
        label='Enter Your First Name',
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your First Name...'
        }))

    lname = forms.CharField(
        label='Enter Your Last Name',
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your Last Name...'
        }))

    company = forms.CharField(
        label='Enter Your Company Name',
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your Name...'
        }))
    location = forms.CharField(
        label='Enter Your Location',
        widget=forms.TextInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your Name...'
        }))

    email = forms.EmailField(
        label='Enter Your Email ID',
        widget=forms.EmailInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your Email Address...'
        }))

    mobile = forms.IntegerField(
        label='Enter Your Mobile number ',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your Mobile Number...'
        }))

    salary = forms.IntegerField(
        label='Enter Your Salary',
        widget=forms.NumberInput(attrs={
            'class': 'form-control',
            'placeholder': 'Enter Your Salary...'
        }))

    QUALIFICATION = (
        ('ba', 'BA'),
        ('be', 'BE'),
        ('bsc', 'BSC'),
        ('bcom', 'BCOM'),
        ('c-cat', 'C-CAT'),
    )
    qualification = MultiSelectFormField(choices=QUALIFICATION,
                                         label='Select Required Cources')
예제 #29
0
class EnquiryForm(forms.Form):
    name = forms.CharField(label='Enter Your Name',
                           widget=forms.TextInput(attrs={
                               'placeholder': 'your name',
                               'class': 'form-control'
                           }))

    mobile = forms.IntegerField(
        label='Enter Your Mobile Number',
        widget=forms.NumberInput(attrs={
            'placeholder': 'your Mobile',
            'class': 'form-control'
        }))

    email = forms.EmailField(
        label='Enter Your Email',
        widget=forms.EmailInput(attrs={
            'placeholder': 'your Email',
            'class': 'form-control'
        }))

    COURSE_CHOICES = (('PYTHON', 'Python'), ('DJANGO', 'Django'), ('UI', 'ui'))

    courses = MultiSelectFormField(choices=COURSE_CHOICES,
                                   label='select required courses:')

    TRAINER_CHOICES = (('SAI', 'sai'), ('SATYA', 'Satya'), ('ROHIT', 'Rohit'))

    trainers = MultiSelectFormField(choices=TRAINER_CHOICES,
                                    label='select required Trainer:')

    BRANCH_CHOICES = (('HYD', 'Hyd'), ('BANG', 'Bang'))

    branches = MultiSelectFormField(choices=BRANCH_CHOICES,
                                    label='Select preferred branch')

    GENDER_CHOICES = (('MALE', 'Male'), ('FEMALE', 'Female'))

    gender = forms.ChoiceField(widget=forms.RadioSelect(),
                               choices=GENDER_CHOICES,
                               label='Select your Gender')
    y = range(2019, 2050)
    start_date = forms.DateField(widget=forms.SelectDateWidget(years=y))
예제 #30
0
class ContactData(models.Model):
    name = models.CharField(max_length=200)
    email = models.EmailField(max_length=200)
    mobile = models.BigIntegerField()

    COURSES_CHOICES = (('py', 'python'), ('dj', 'django'), ('ui', 'UI'),
                       ('rest', 'RESTAPI'))

    courses = MultiSelectFormField(max_length=200, choices=COURSES_CHOICES)

    SHIFTS_CHOICES = (('mrg', 'morning'), ('aftrn', 'afternoon'),
                      ('evng', 'evening'), ('night', 'night'))
    shifts = MultiSelectFormField(max_length=200, choices=SHIFTS_CHOICES)

    LOCATIONS_CHOICES = (('hyd', 'hyderabad'), ('bang', 'banglaore'),
                         ('chennai', 'chennai'), ('pune', 'pune'))
    locations = MultiSelectFormField(max_length=200, choices=LOCATIONS_CHOICES)

    gender = models.CharField(max_length=50)
    start_date = models.DateField(max_length=100)