From 5ed4787e33e258cc9afa7e9d2886a0b590d69715 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 9 May 2021 14:41:41 +0200 Subject: Returning validation errors and old values to `post` form. Made custom middleware for that purpose. --- views/new-post.handlebars | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/new-post.handlebars b/views/new-post.handlebars index 9e42ba9..2038326 100644 --- a/views/new-post.handlebars +++ b/views/new-post.handlebars @@ -3,11 +3,15 @@
- +
+ {{#if oldForm.errors.text}} +
{{oldForm.errors.text}}
+ {{/if}}
-- cgit v1.2.3