예제 #1
0
def competency(comp_id: int):
    work_id = request.args.get('work', 0, type=int)
    work = get_work_info(work_id, load_comps=False) if work_id else None
    return render_template("competency.html",
                           user=get_current_user(),
                           competency=get_competency(comp_id),
                           work=work)
예제 #2
0
def get_current_work(from_args: bool = False):
    if from_args:
        work_id = request.args.get('work', 0, type=int)
        if not work_id:
            return None
    else:
        work_id = request.form.get('work_id', 0, type=int)
    return get_work_info(work_id)
def manage_competencies(work_id: int):
    return render_template("manage_competencies.html",
                           user=get_current_user(),
                           work=get_work_info(work_id),
                           professions=get_professions(),
                           areas=get_areas())
예제 #4
0
def change_competency(work_id: int):
    return get_work_info(work_id)['competencies']
예제 #5
0
def work(work_id: int):
    return render_template("work.html",
                           user=get_current_user(),
                           work=get_work_info(work_id))