diff --git a/sourcing/view.py b/sourcing/view.py index 1b16e79..b50d58e 100644 --- a/sourcing/view.py +++ b/sourcing/view.py @@ -199,6 +199,14 @@ def fulfil(username, hashid): item=item, doc=fulfil_edl_with_sources(item.text)) +@bp.route('///add_title', methods=['POST']) +def add_title(username, hashid): + item = get_item(username, hashid) + title = request.form['title'] + item.add_title(title, current_user) + flash('title added') + return redirect(item.url) + @bp.route('//') def view_item(username, hashid, raw=False): if ',' in hashid: