Skip to content

Commit

Permalink
ui/forms - make the dynamic template on select a bit more interesting
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Nov 7, 2017
1 parent dfb7407 commit 55a4e4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ end
##### app/views/foo/_dynamic.html.haml

```haml
= @edit[:current][:choice]
- if @edit[:current][:choice] === "foo"
= _("This could be a few more inputs")
- if @edit[:current][:choice] === "bar"
= _("Or just a harmless message")
```


Expand Down

0 comments on commit 55a4e4a

Please sign in to comment.