Allow message to be prefilled on feedback page

So that people don’t have to remember what they are supposed to be
asking for and go to the effort of typing out the message.
This commit is contained in:
Chris Hill-Scott
2018-03-14 14:42:25 +00:00
parent 6c47375d9f
commit 1ce4c874ad
2 changed files with 28 additions and 0 deletions

View File

@@ -134,6 +134,9 @@ def feedback(ticket_type):
abort(500, "Feedback submission failed")
return redirect(url_for('.thanks', urgent=urgent, anonymous=anonymous))
if not form.feedback.data:
form.feedback.data = request.args.get('body', '')
return render_template(
'views/support/{}.html'.format(ticket_type),
form=form,