diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-12-31 22:49:02 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 19:34:19 +0300 |
commit | 79361b207ed70e1b954ca85c97a86e459e3e3976 (patch) | |
tree | 1eff35b39346687d50c9d2fc0ec07e8ca6927b9c /app/views/admin/broadcast_messages | |
parent | b7f49aa0f0cbcd699396799fd746fa4f5735a250 (diff) |
Add js-requires-input to form
Diffstat (limited to 'app/views/admin/broadcast_messages')
-rw-r--r-- | app/views/admin/broadcast_messages/index.html.haml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/admin/broadcast_messages/index.html.haml b/app/views/admin/broadcast_messages/index.html.haml index 17dffebd360..5d8250f787f 100644 --- a/app/views/admin/broadcast_messages/index.html.haml +++ b/app/views/admin/broadcast_messages/index.html.haml @@ -7,7 +7,7 @@ %i.fa.fa-bullhorn %span Your message here -= form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal'} do |f| += form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal js-requires-input'} do |f| -if @broadcast_message.errors.any? .alert.alert-danger - @broadcast_message.errors.full_messages.each do |msg| @@ -17,8 +17,7 @@ .col-sm-10 = f.text_area :message, class: "form-control", rows: 2, required: true %div - = link_to '#', class: 'js-toggle-colors-link' do - Customize colors + = link_to 'Customize colors', '#', class: 'js-toggle-colors-link' .form-group.js-toggle-colors-container.hide = f.label :color, "Background Color", class: 'control-label' .col-sm-10 |