Skip to content

Commit

Permalink
Change submit label for locations
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed May 3, 2016
1 parent 198a27c commit b6a9c6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hasjob/views/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/<name>/edit', methods=['GET', 'POST'], subdomain='<subdomain>')
@app.route('/in/<name>/edit', methods=['GET', 'POST'])
def location_edit(name):
Expand All @@ -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/<name>/delete', methods=['GET', 'POST'], subdomain='<subdomain>')
@app.route('/in/<name>/delete', methods=['GET', 'POST'])
def location_delete(name):
Expand Down

0 comments on commit b6a9c6d

Please sign in to comment.