Skip to content

Commit

Permalink
changed width of contact form image
Browse files Browse the repository at this point in the history
  • Loading branch information
dschien committed Feb 7, 2018
1 parent 8be6229 commit e4225eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/form_flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -263,8 +265,6 @@ The form html does become a bit hard to read, I admit, but it looks good to the
</form>
```
<a href="url"><img src="https://github.com/dschien/santas-grotto/raw/master/doc/validation.png" align="left" width="348"></a>
<a href="url"><img src="https://github.com/dschien/santas-grotto/raw/master/doc/validation.png" width="348"></a>
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.

0 comments on commit e4225eb

Please sign in to comment.