# Path: app/models/submissions.py
# def submit_application(resume, d, simple=False):
# def clean_up_data(d):
# def is_email_available(email):
# def save_resume(resume, first_name, last_name):
# def add_applicant(d):
# def submit_reference(applicant, d):
# def get_by_secret_md5(secret_md5):
# def add_reference(secret_md5, d):


import web
import config
from app.models import submissions
from config import view
from web import form
        form.notnull,
        description='Affiliation (Department) *'),
    form.Textbox('interests', 
        form.notnull,
        description='Interests *',
        pre='<label class="help">Please provide 3-10 keywords/keyphrases, separated by commas.</label>'),
    form.Textbox('website', 
        vurl,
        description='Personal Website (optional)',
        pre='<label class="help">If you have a personal website, please provide its url with http.</label>'),
     
    form.Dropdown('degree', 
        ('', 'Highschool', 'Bachelors', 'Masters', 'PhD', 'Other'),
        form.notnull,
        description='Highest Degree Attained *'),
    form.Dropdown('occupation', 
        ('', 'Undergraduate student', 'PhD student', 'Postdoc', 'Faculty', 'Industry Researcher', 'Other'),
        form.notnull,
        description='Current Occupation *'),
    form.File('resume', 
        form.notnull,
        description='Upload your resume in pdf. *'),
    
    form.Radio('pascal_member', 
        ('Yes', 'No'),
        description='Pascal Member (optional)',
        pre='<label class="help">Are you a member of the PASCAL European network?</label>'),
    form.Textbox('poster_title', 
        description='Poster Title (optional)',
        pre='<label class="help">We will probably have a poster session for students to present their work. Tentative title of your poster if you were able to present at the MLSS.</label>'),

# Path: app/models/submissions.py
# def submit_application(resume, d, simple=False):
# def clean_up_data(d):
# def is_email_available(email):
# def save_resume(resume, first_name, last_name):
# def add_applicant(d):
# def submit_reference(applicant, d):
# def get_by_secret_md5(secret_md5):
# def add_reference(secret_md5, d):


# Path: app/controllers/submit_application.py
import web
import config
from app.models import submissions
from config import view
from web import form

        form.notnull,
        description='Affiliation (Department) *'),
    form.Textbox('interests', 
        form.notnull,
        description='Interests *',
        pre='<label class="help">Please provide 3-10 keywords/keyphrases, separated by commas.</label>'),
    form.Textbox('website', 
        vurl,
        description='Personal Website (optional)',
        pre='<label class="help">If you have a personal website, please provide its url with http.</label>'),
     
    form.Dropdown('degree', 
        ('', 'Highschool', 'Bachelors', 'Masters', 'PhD', 'Other'),
        form.notnull,
        description='Highest Degree Attained *'),
    form.Dropdown('occupation', 
        ('', 'Undergraduate student', 'PhD student', 'Postdoc', 'Faculty', 'Industry Researcher', 'Other'),
        form.notnull,
        description='Current Occupation *'),
    form.File('resume', 
        form.notnull,
        description='Upload your resume in pdf. *'),
    
    form.Radio('pascal_member', 
        ('Yes', 'No'),
        description='Pascal Member (optional)',
        pre='<label class="help">Are you a member of the PASCAL European network?</label>'),
    form.Textbox('poster_title', 
        description='Poster Title (optional)',
        pre='<label class="help">We will probably have a poster session for students to present their work. Tentative title of your poster if you were able to present at the MLSS.</label>'),

    form.Textarea('abstract', 