Commit b4d29d700aa70921839f6ad485112113b49d502f

Authored by Dmitriy Zaporozhets
1 parent 0a364762

twbs3 for broadcase messages page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/admin/broadcast_messages/index.html.haml
@@ -6,34 +6,34 @@ @@ -6,34 +6,34 @@
6 %i.icon-bullhorn 6 %i.icon-bullhorn
7 %span Your message here 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 -if @broadcast_message.errors.any? 10 -if @broadcast_message.errors.any?
11 .alert.alert-danger 11 .alert.alert-danger
12 - @broadcast_message.errors.full_messages.each do |msg| 12 - @broadcast_message.errors.full_messages.each do |msg|
13 %p= msg 13 %p= msg
14 .form-group 14 .form-group
15 - = f.label :message 15 + = f.label :message, class: 'control-label'
16 .col-sm-10 16 .col-sm-10
17 = f.text_area :message, class: "form-control", rows: 2, required: true 17 = f.text_area :message, class: "form-control", rows: 2, required: true
18 %div 18 %div
19 = link_to '#', class: 'js-toggle-colors-link' do 19 = link_to '#', class: 'js-toggle-colors-link' do
20 Customize colors 20 Customize colors
21 .form-group.js-toggle-colors-container.hide 21 .form-group.js-toggle-colors-container.hide
22 - = f.label :color, "Background Color" 22 + = f.label :color, "Background Color", class: 'control-label'
23 .col-sm-10 23 .col-sm-10
24 - = f.text_field :color, placeholder: "#AA33EE" 24 + = f.text_field :color, placeholder: "#AA33EE", class: "form-control"
25 .light Hex values as 3 double digit numbers, starting with a # sign. 25 .light Hex values as 3 double digit numbers, starting with a # sign.
26 .form-group.js-toggle-colors-container.hide 26 .form-group.js-toggle-colors-container.hide
27 - = f.label :font, "Font Color" 27 + = f.label :font, "Font Color", class: 'control-label'
28 .col-sm-10 28 .col-sm-10
29 - = f.text_field :font, placeholder: "#224466" 29 + = f.text_field :font, placeholder: "#224466", class: "form-control"
30 .light Hex values as 3 double digit numbers, starting with a # sign. 30 .light Hex values as 3 double digit numbers, starting with a # sign.
31 .form-group 31 .form-group
32 - = f.label :starts_at 32 + = f.label :starts_at, class: 'control-label'
33 .col-sm-10.datetime-controls 33 .col-sm-10.datetime-controls
34 = f.datetime_select :starts_at 34 = f.datetime_select :starts_at
35 .form-group 35 .form-group
36 - = f.label :ends_at 36 + = f.label :ends_at, class: 'control-label'
37 .col-sm-10.datetime-controls 37 .col-sm-10.datetime-controls
38 = f.datetime_select :ends_at 38 = f.datetime_select :ends_at
39 .form-actions 39 .form-actions