Commit b4d29d700aa70921839f6ad485112113b49d502f
1 parent
0a364762
Exists in
spb-stable
and in
3 other branches
twbs3 for broadcase messages page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
app/views/admin/broadcast_messages/index.html.haml
... | ... | @@ -6,34 +6,34 @@ |
6 | 6 | %i.icon-bullhorn |
7 | 7 | %span Your message here |
8 | 8 | |
9 | -= form_for [:admin, @broadcast_message] do |f| | |
9 | += form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal'} do |f| | |
10 | 10 | -if @broadcast_message.errors.any? |
11 | 11 | .alert.alert-danger |
12 | 12 | - @broadcast_message.errors.full_messages.each do |msg| |
13 | 13 | %p= msg |
14 | 14 | .form-group |
15 | - = f.label :message | |
15 | + = f.label :message, class: 'control-label' | |
16 | 16 | .col-sm-10 |
17 | 17 | = f.text_area :message, class: "form-control", rows: 2, required: true |
18 | 18 | %div |
19 | 19 | = link_to '#', class: 'js-toggle-colors-link' do |
20 | 20 | Customize colors |
21 | 21 | .form-group.js-toggle-colors-container.hide |
22 | - = f.label :color, "Background Color" | |
22 | + = f.label :color, "Background Color", class: 'control-label' | |
23 | 23 | .col-sm-10 |
24 | - = f.text_field :color, placeholder: "#AA33EE" | |
24 | + = f.text_field :color, placeholder: "#AA33EE", class: "form-control" | |
25 | 25 | .light Hex values as 3 double digit numbers, starting with a # sign. |
26 | 26 | .form-group.js-toggle-colors-container.hide |
27 | - = f.label :font, "Font Color" | |
27 | + = f.label :font, "Font Color", class: 'control-label' | |
28 | 28 | .col-sm-10 |
29 | - = f.text_field :font, placeholder: "#224466" | |
29 | + = f.text_field :font, placeholder: "#224466", class: "form-control" | |
30 | 30 | .light Hex values as 3 double digit numbers, starting with a # sign. |
31 | 31 | .form-group |
32 | - = f.label :starts_at | |
32 | + = f.label :starts_at, class: 'control-label' | |
33 | 33 | .col-sm-10.datetime-controls |
34 | 34 | = f.datetime_select :starts_at |
35 | 35 | .form-group |
36 | - = f.label :ends_at | |
36 | + = f.label :ends_at, class: 'control-label' | |
37 | 37 | .col-sm-10.datetime-controls |
38 | 38 | = f.datetime_select :ends_at |
39 | 39 | .form-actions | ... | ... |