Commit e4c036df authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

twbs3 for broadcase messages page


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 24a04dad2377
......@@ -6,9 +6,9 @@
%i.icon-bullhorn
%span Your message here
= form_for [:admin, @broadcast_message] do |f|
= form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal'} do |f|
-if @broadcast_message.errors.any?
.alert.alert-danger
- @broadcast_message.errors.full_messages.each do |msg|
%p= msg
.form-group
......@@ -10,12 +10,12 @@
-if @broadcast_message.errors.any?
.alert.alert-danger
- @broadcast_message.errors.full_messages.each do |msg|
%p= msg
.form-group
= f.label :message
= f.label :message, class: 'control-label'
.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
.form-group.js-toggle-colors-container.hide
......@@ -16,8 +16,8 @@
.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
.form-group.js-toggle-colors-container.hide
= f.label :color, "Background Color"
= f.label :color, "Background Color", class: 'control-label'
.col-sm-10
......@@ -23,4 +23,4 @@
.col-sm-10
= f.text_field :color, placeholder: "#AA33EE"
= f.text_field :color, placeholder: "#AA33EE", class: "form-control"
.light Hex values as 3 double digit numbers, starting with a # sign.
.form-group.js-toggle-colors-container.hide
......@@ -25,4 +25,4 @@
.light Hex values as 3 double digit numbers, starting with a # sign.
.form-group.js-toggle-colors-container.hide
= f.label :font, "Font Color"
= f.label :font, "Font Color", class: 'control-label'
.col-sm-10
......@@ -28,4 +28,4 @@
.col-sm-10
= f.text_field :font, placeholder: "#224466"
= f.text_field :font, placeholder: "#224466", class: "form-control"
.light Hex values as 3 double digit numbers, starting with a # sign.
.form-group
......@@ -30,6 +30,6 @@
.light Hex values as 3 double digit numbers, starting with a # sign.
.form-group
= f.label :starts_at
= f.label :starts_at, class: 'control-label'
.col-sm-10.datetime-controls
= f.datetime_select :starts_at
.form-group
......@@ -33,7 +33,7 @@
.col-sm-10.datetime-controls
= f.datetime_select :starts_at
.form-group
= f.label :ends_at
= f.label :ends_at, class: 'control-label'
.col-sm-10.datetime-controls
= f.datetime_select :ends_at
.form-actions
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment