Commit 1c7febc3 authored by Robert Speicher's avatar Robert Speicher

Style the broadcast message form

parent 79361b20
...@@ -78,6 +78,10 @@ label { ...@@ -78,6 +78,10 @@ label {
padding: 8px $gl-padding; padding: 8px $gl-padding;
} }
.form-control-inline {
display: inline;
}
.wiki-content { .wiki-content {
margin-top: 35px; margin-top: 35px;
} }
......
- page_title "Broadcast Messages" - page_title "Broadcast Messages"
%h3.page-title %h3.page-title
Broadcast Messages Broadcast Messages
%p.light %p.light
Broadcast messages are displayed for every user and can be used to notify users about scheduled maintenance, recent upgrades and more. Broadcast messages are displayed for every user and can be used to notify
users about scheduled maintenance, recent upgrades and more.
.broadcast-message-preview .broadcast-message-preview
%i.fa.fa-bullhorn = icon('bullhorn')
%span Your message here %span Your message here
= form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal js-requires-input'} do |f| = form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal js-requires-input'} do |f|
...@@ -21,7 +24,7 @@ ...@@ -21,7 +24,7 @@
.form-group.js-toggle-colors-container.hide .form-group.js-toggle-colors-container.hide
= f.label :color, "Background Color", class: 'control-label' = f.label :color, "Background Color", class: 'control-label'
.col-sm-10 .col-sm-10
= f.color_field :color, value: "#eb9532", class: "form-control" = f.color_field :color, value: "#E75E40", class: "form-control"
.form-group.js-toggle-colors-container.hide .form-group.js-toggle-colors-container.hide
= f.label :font, "Font Color", class: 'control-label' = f.label :font, "Font Color", class: 'control-label'
.col-sm-10 .col-sm-10
...@@ -29,11 +32,11 @@ ...@@ -29,11 +32,11 @@
.form-group .form-group
= f.label :starts_at, class: 'control-label' = 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, {}, class: 'form-control form-control-inline'
.form-group .form-group
= f.label :ends_at, class: 'control-label' = 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, {}, class: 'form-control form-control-inline'
.form-actions .form-actions
= f.submit "Add broadcast message", class: "btn btn-create" = f.submit "Add broadcast message", class: "btn btn-create"
......
- if broadcast_message.present? - if broadcast_message.present?
.broadcast-message{ style: broadcast_styling(broadcast_message) } .broadcast-message{ style: broadcast_styling(broadcast_message) }
%i.fa.fa-bullhorn = icon('bullhorn')
= broadcast_message.message = broadcast_message.message
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