<gh_stars>1-10
from django import forms
from Alumni_Portal.utils import password_validator,db

from django.core.validators import validate_email


class EditForm(forms.Form):
    fullname = forms.CharField(label=('Full Name'))
    nickname = forms.CharField(label=('<NAME>'),required=False)
    email = forms.EmailField(label=('Email'),widget=forms.EmailInput)
    mobile = forms.IntegerField(label='Cell No',required=False)
    birthdate = forms.DateTimeField(label=('Date of Birth'),widget=forms.widgets.DateInput(attrs={'type': 'date'}),required=False)
    dept =forms.CharField(label=('dept'),required=False)
    hall =forms.CharField(label=('hall'),required=False)
    level = forms.IntegerField(label=('level'),required=False)
    term = forms.IntegerField(label=('term'),required=False)
    msc =forms.CharField(label=('msc'),required=False)
    phd = forms.CharField(label=('phd'),required=False)
    house = forms.IntegerField(label=('house'),required=False)
    road =forms.IntegerField(label=('road'),required=False)
    zipcode = forms.IntegerField(label=('zip'),required=False)
    city = forms.CharField(label=('city'),required=False)
    country = forms.CharField(label=('country'),required=False)
    hometown = forms.CharField(label=('home'),required=False)
    fb = forms.CharField(required=False)
    twitter = forms.CharField(required=False)
    linkedin = forms.CharField(required=False)
    rg = forms.CharField(required=False)
    google = forms.CharField(required=False)
    about = forms.CharField(required=False,max_length=512)

class DPForm(forms.Form):
     file = forms.FileField()

class ExpertForm(forms.Form):
    topic = forms.CharField(required=True)



class JobForm(forms.Form):
    name = forms.CharField(required=True)
    from_= forms.DateTimeField(widget=forms.widgets.DateInput(attrs={'type': 'date'}),required=True)
    to_ = forms.DateTimeField(widget=forms.widgets.DateInput(attrs={'type': 'date'}),required=False)
    designation = forms.CharField(required=True)

        