Exemple #1
0
def personnel_department(org_id):
    org = Organization.get_by_id(current_user, org_id)
    if org is None:
        return abort(403)
    if request.method == 'POST':
        Vacancy(org_id=org_id,
                salary=request.form['salary'],
                title=request.form['title']).save(add=True)

    organization_info = {
        'org': org,
        'personnel': org.personnels,
        'workers': org.get_workers(),
        'required_workers': org.get_required_workers(),
    }

    return render_template("personnel_department.html",
                           **organization_info,
                           len=len)
Exemple #2
0
def vacancies_organization(org_id):
    org = Organization.get_by_id(current_user, org_id)
    if org is None:
        abort(403)

    return render_template("organization/vacancies_organization.html", org=org)