Exemplo n.º 1
0
def locationHTML(selectVal='Any'):
    locations = ('Bangalore','Chennai','Hyderabad','NCR','Kolkata','Pune','Mumbai','Andhra Pradesh','Arunachal Pradesh',
                'Assam','Bihar','Chhattisgarh','Goa','Gujarat','Haryana','Himachal Pradesh','Jammu and Kashmir',
                'Jharkhand','Karnataka','Kerala','Madhya Pradesh','Maharashtra','Manipur','Meghalaya','Mizoram','Nagaland',
                'Orissa','Punjab','Rajasthan','Sikkim','Tamil Nadu','Tripura','Uttar Pradesh','Uttarakhand','West Bengal')
    html = hotmetal.elemSelect([('Any','Any')], locations, lambda x:x, lambda x:x,
                                selectVal, 'name="location" id="location"')
    return html
Exemplo n.º 2
0
def locationHTML(selectVal='Any'):
    locations = ('Bangalore','Chennai','Hyderabad','NCR','Kolkata','Pune','Mumbai','Andhra Pradesh','Arunachal Pradesh',
                'Assam','Bihar','Chhattisgarh','Goa','Gujarat','Haryana','Himachal Pradesh','Jammu and Kashmir',
                'Jharkhand','Karnataka','Kerala','Madhya Pradesh','Maharashtra','Manipur','Meghalaya','Mizoram','Nagaland',
                'Orissa','Punjab','Rajasthan','Sikkim','Tamil Nadu','Tripura','Uttar Pradesh','Uttarakhand','West Bengal')
    html = hotmetal.elemSelect([('Any','Any')], locations, lambda x:x, lambda x:x,
                                selectVal, 'name="location" id="location"')
    return html
Exemplo n.º 3
0
def getEmployerSelectHtml(element_name, selection):
    return hotmetal.elemSelect([('Select','Select')], employer_types, lambda x:x[0], lambda x:x[1], selection, 'name="' + element_name + '" id="' + element_name + '"')
Exemplo n.º 4
0
def getLocationSelectHtml(element_name, selection):
    trimLocation = lambda x: (x, x[len('Anywhere in '):])[x.startswith('Anywhere in ')]
    return hotmetal.elemSelect([('Select','Select')], locations, lambda x:x, trimLocation, selection, 'name="' + element_name + '" id="' + element_name + '"')
Exemplo n.º 5
0
def getSalarySelectHtml(element_name, selection):
    return hotmetal.elemSelect([('Select','Select')], salary_levels, lambda x:str(x/100000) + ' Lakhs', lambda x:str(x), selection, 'name="' + element_name + '" id="' + element_name + '"')
Exemplo n.º 6
0
def getExperienceSelectHtml(element_name, selection):
    return hotmetal.elemSelect([('Select','Select')], range(0,21), lambda x:str(x), lambda x:str(x), selection, 'name="' + element_name + '" id="' + element_name + '"')
Exemplo n.º 7
0
def salaryHTML(selectVal=0):
    salary = (200000, 400000, 600000, 1000000, 2000000)
    html = hotmetal.elemSelect([('No Limit', '0')], salary,
                               lambda x: str(x)[:-5] + ' Lakhs', lambda x: x,
                               selectVal, 'name="maxSalary" id="maxSalary"')
    return html
Exemplo n.º 8
0
def experienceHTML(selectVal=0):
    html = hotmetal.elemSelect([('Any', '0')], (1, 2, 5, 10),
                               lambda x: str(x) + ' years', lambda x: x,
                               selectVal, 'name="experience" id="experience"')
    return html
Exemplo n.º 9
0
def salaryHTML(selectVal=0):
    salary = (200000, 400000, 600000, 1000000, 2000000)
    html = hotmetal.elemSelect([('No Limit','0')], salary, lambda x: str(x)[:-5] + ' Lakhs', lambda x: x,
                                selectVal, 'name="maxSalary" id="maxSalary"')
    return html
Exemplo n.º 10
0
def experienceHTML(selectVal=0):
    html = hotmetal.elemSelect([('Any','0')], (1,2,5,10), lambda x: str(x) + ' years', lambda x: x,
                                selectVal, 'name="experience" id="experience"')
    return html
Exemplo n.º 11
0
def getIsResumeVisibleSelectHtml(element_name, selection):
    is_jobhunting_options = [('Yes','yes'), ('No', 'no')]
    return hotmetal.elemSelect([], is_jobhunting_options, lambda x:x[0], lambda x:x[1], selection, 'name="' + element_name + '" id="' + element_name + '"')