diff --git a/autoreply_editor/main.py b/autoreply_editor/main.py index 14e0205..d41cf36 100644 --- a/autoreply_editor/main.py +++ b/autoreply_editor/main.py @@ -20,4 +20,6 @@ def index_post(): if request.method == 'POST': with open(app.config.get("MESSAGE_FILE"), 'w') as f: f.write(str(input_message)) - return redirect("/") + result = "Success: The autoreply message has been updated!" + + return render_template("result.html", result=result) diff --git a/autoreply_editor/templates/index.html b/autoreply_editor/templates/index.html index 58e6f30..55f113f 100644 --- a/autoreply_editor/templates/index.html +++ b/autoreply_editor/templates/index.html @@ -1,13 +1,19 @@ -
-+ Below you can see the current text of your autoreply message. You + can edit and update it directly below: +
+ +