From b6a9c6d2038621a6a42cae7a4c4b698db61404cc Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Tue, 3 May 2016 16:36:25 +0530 Subject: [PATCH] Change submit label for locations --- hasjob/views/location.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hasjob/views/location.py b/hasjob/views/location.py index 3fc16e29c..6ebc6e890 100644 --- a/hasjob/views/location.py +++ b/hasjob/views/location.py @@ -38,9 +38,11 @@ def location_new(): db.session.commit() return redirect(location.url_for('edit'), code=303) - return render_form(form=form, title=_("Add a location")) + return render_form(form=form, title=_("Add a location"), submit=_("Next")) +# This view does not use load_model because of the dependency on g.board, which +# load_model does not currently support @app.route('/in//edit', methods=['GET', 'POST'], subdomain='') @app.route('/in//edit', methods=['GET', 'POST']) def location_edit(name): @@ -58,6 +60,8 @@ def location_edit(name): return render_form(form=form, title=_("Edit location")) +# This view does not use load_model because of the dependency on g.board, which +# load_model does not currently support @app.route('/in//delete', methods=['GET', 'POST'], subdomain='') @app.route('/in//delete', methods=['GET', 'POST']) def location_delete(name):