Exemplo n.º 1
0
def add_user_phone(body_id, form_to_display):
    if forms.add_body_phone(body_id, "user"):
        return redirect(url_for("update_user", body_id=body_id,
                                 form_to_display="phone"))
    return redirect(url_for('list_users'))
Exemplo n.º 2
0
def add_patient_phone(body_id, form_to_display):
    if forms.add_body_phone(body_id, "patient"):
        return redirect(url_for("update_patient", body_id=body_id,
                                form_to_display="phone"))
    return redirect(url_for('list_patients'))
Exemplo n.º 3
0
def add_dental_office_phone(body_id, form_to_display):
    if forms.add_body_phone(body_id, "dental_office"):
        return redirect(url_for("update_dental_office", body_id=body_id,
                                 form_to_display="phone"))
    return redirect(url_for('list_dental_offices'))
Exemplo n.º 4
0
def add_md_phone(body_id, form_to_display):
    if forms.add_body_phone(body_id, "md"):
        return redirect(url_for("update_md", body_id=body_id, form_to_display="phone"))
    return redirect(url_for("list_md"))