From e4225eb114fad82b9ef98b31aad8b17dda0b875e Mon Sep 17 00:00:00 2001 From: dschien Date: Wed, 7 Feb 2018 00:19:54 +0000 Subject: [PATCH] changed width of contact form image --- doc/form_flow.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/form_flow.md b/doc/form_flow.md index 8f3fa73..18e29b4 100644 --- a/doc/form_flow.md +++ b/doc/form_flow.md @@ -234,8 +234,10 @@ public String submitContact(@Valid ContactRequest contact, BindingResult binding The final bit of sugar is to highlight errors with a bit of colour. Bootstrap does that for us nicely. -The form html does become a bit hard to read, I admit, but it looks good to the user. +The main elements here are the thymeleaf classappend command (with an inline elvis operator ?:) `th:classappend="${#fields.hasErrors('name')} ? has-error : blu-margin">` +and a bunch of bootstrap classes. +The form html does become a bit hard to read, I admit, but it looks good to the user. ```html @@ -263,8 +265,6 @@ The form html does become a bit hard to read, I admit, but it looks good to the ``` - + -The main elements here are the thymeleaf classappend command (with an inline elvis operator ?:) `th:classappend="${#fields.hasErrors('name')} ? has-error : blu-margin">` -and a bunch of bootstrap classes. \ No newline at end of file