Commit b4d29d70 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

twbs3 for broadcase messages page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 0a364762
...@@ -6,34 +6,34 @@ ...@@ -6,34 +6,34 @@
%i.icon-bullhorn %i.icon-bullhorn
%span Your message here %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? -if @broadcast_message.errors.any?
.alert.alert-danger .alert.alert-danger
- @broadcast_message.errors.full_messages.each do |msg| - @broadcast_message.errors.full_messages.each do |msg|
%p= msg %p= msg
.form-group .form-group
= f.label :message = f.label :message, class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_area :message, class: "form-control", rows: 2, required: true = f.text_area :message, class: "form-control", rows: 2, required: true
%div %div
= link_to '#', class: 'js-toggle-colors-link' do = link_to '#', class: 'js-toggle-colors-link' do
Customize colors Customize colors
.form-group.js-toggle-colors-container.hide .form-group.js-toggle-colors-container.hide
= f.label :color, "Background Color" = f.label :color, "Background Color", class: 'control-label'
.col-sm-10 .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. .light Hex values as 3 double digit numbers, starting with a # sign.
.form-group.js-toggle-colors-container.hide .form-group.js-toggle-colors-container.hide
= f.label :font, "Font Color" = f.label :font, "Font Color", class: 'control-label'
.col-sm-10 .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. .light Hex values as 3 double digit numbers, starting with a # sign.
.form-group .form-group
= f.label :starts_at = f.label :starts_at, class: 'control-label'
.col-sm-10.datetime-controls .col-sm-10.datetime-controls
= f.datetime_select :starts_at = f.datetime_select :starts_at
.form-group .form-group
= f.label :ends_at = f.label :ends_at, class: 'control-label'
.col-sm-10.datetime-controls .col-sm-10.datetime-controls
= f.datetime_select :ends_at = f.datetime_select :ends_at
.form-actions .form-actions
......
Markdown is supported
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