Skip to content

Commit

Permalink
Correct index name after refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
srh-sloan committed Sep 19, 2024
1 parent eb01a23 commit c77e5d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/blueprints/fund_builder/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def fund():
)
)
flash(f"Saved fund {form.name_en.data}")
return redirect(url_for("self_serve_bp.index"))
return redirect(url_for("build_fund_bp.index"))

return render_template("fund.html", form=form)

Expand Down Expand Up @@ -235,7 +235,7 @@ def round():
)

flash(f"Saved round {form.title_en.data}")
return redirect(url_for("self_serve_bp.index"))
return redirect(url_for("build_fund_bp.index"))

return render_template(
"round.html",
Expand Down
8 changes: 4 additions & 4 deletions app/blueprints/self_serve/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def section():
if request.method == "POST" and form.validate_on_submit():
save_template_section(form.as_dict())
flash(message=f"Section '{form['builder_display_name'].data}' was saved")
return redirect(url_for("self_serve_bp.index"))
return redirect(url_for("build_fund_bp.index"))

saved_forms = get_saved_forms()
available_forms = []
Expand Down Expand Up @@ -149,7 +149,7 @@ def form():
}
save_template_form(new_form)
flash(message=f'Form {new_form["form_display_name"]} was saved')
return redirect(url_for("self_serve_bp.index"))
return redirect(url_for("build_fund_bp.index"))

available_pages = []
pages = get_pages_to_display_in_builder()
Expand Down Expand Up @@ -187,7 +187,7 @@ def page():
}
save_template_page(new_page)
flash(message=f"Page '{form.builder_display_name.data}' was saved")
return redirect(url_for("self_serve_bp.index"))
return redirect(url_for("build_fund_bp.index"))
components = get_all_components()
available_questions = [
{
Expand All @@ -213,5 +213,5 @@ def question():
if request.method == "POST" and form.validate_on_submit():
save_template_component(question)
flash(message=f"Question '{question['title']}' was saved")
return redirect(url_for("self_serve_bp.index"))
return redirect(url_for("build_fund_bp.index"))
return render_template("create_question.html", form=form)

0 comments on commit c77e5d5

Please sign in to comment.