- Added 'Register ...' functionality to overviews. ==> No more separate menu items...
This commit is contained in:
@@ -294,9 +294,12 @@ def specialists():
|
||||
@interaction_bp.route('/handle_specialist_selection', methods=['POST'])
|
||||
@roles_accepted('Super User', 'Tenant Admin')
|
||||
def handle_specialist_selection():
|
||||
action = request.form.get('action')
|
||||
if action == 'create_specialist':
|
||||
return redirect(prefixed_url_for('interaction_bp.specialist'))
|
||||
|
||||
specialist_identification = request.form.get('selected_row')
|
||||
specialist_id = ast.literal_eval(specialist_identification).get('value')
|
||||
action = request.form.get('action')
|
||||
|
||||
if action == "edit_specialist":
|
||||
return redirect(prefixed_url_for('interaction_bp.edit_specialist', specialist_id=specialist_id))
|
||||
|
||||
Reference in New Issue
Block a user