Пример #1
0
def show_employees():
    employees = Employee.query().filter(Employee.is_public == True)
    return render_template(
        'about/employees.html',
        html_class='about_page',
        employees=employees
    )
Пример #2
0
def tenancy_list():
    regions = Tenancy.query(Tenancy.is_public == True)
    employees = Employee.query(Employee.is_tenancy == True)
    return render_template(
        'tenancy/tenancy_regions.html',
        html_class='services_page',
        active_element="tenancy_regions",
        regions=regions,
        employees=employees
    )
Пример #3
0
def index():
    tenancy_info = TenancyInfo.get_master_db()
    if not tenancy_info.is_public:
        return redirect('/')
    employees = Employee.query(Employee.is_tenancy == True)
    return render_template(
        'tenancy/index.html',
        html_class='services_page',
        tenancy_info=tenancy_info,
        employees=employees
    )
Пример #4
0
def index():
    coach_info = CoachInfo.get_master_db()
    coaches = Coach.query(Coach.is_public == True).order(-Coach.order_id)
    employees = Employee.query(Employee.is_investment == True)
    return render_template(
        'coach/index.html',
        html_class='services_page',
        coach_info=coach_info,
        coaches=coaches,
        employees=employees,
        active_element='coach'
    )
Пример #5
0
def index():
    exhibition_info = ExhibitionInfo.get_master_db()
    if not exhibition_info.is_public:
        return redirect('main_page.index')
    employees = Employee.query(Employee.is_exhibition == True)
    return render_template(
        'exhibition/index.html',
        html_class='services_page',
        exhibition_info=exhibition_info,
        employees=employees,
        active_element='exhibition'
    )
Пример #6
0
def index():
    investment_info = InvestmentInfo.get_master_db()
    investments = Investment.query(Investment.is_public == True).order(Investment.order_id)
    tenancy_info = TenancyInfo.get_master_db()
    tenancies = Tenancy.query(Tenancy.is_public == True).order(Tenancy.order_id)
    employees = Employee.query(Employee.is_investment == True)
    return render_template(
        'investment/index.html',
        html_class='services_page',
        investment_info=investment_info,
        investments=investments,
        tenancy_info=tenancy_info,
        tenancies=tenancies,
        employees=employees,
        active_element='investment'
    )
Пример #7
0
def employee_index():
    employees = Employee.query().order(-Employee.created)
    return render_template(
        'about/admins/employee/index.html',
        employees=employees
    )