summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-12-31 15:08:42 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-01-13 11:34:19 -0500
commit1c7febc3e38053e8d01cf7a30d3da23b95f30808 (patch)
treed80b433ab16c6381194fdee93d8b60b92c3c13c6
parent79361b207ed70e1b954ca85c97a86e459e3e3976 (diff)
downloadgitlab-ce-1c7febc3e38053e8d01cf7a30d3da23b95f30808.tar.gz
Style the broadcast message form
-rw-r--r--app/assets/stylesheets/framework/forms.scss4
-rw-r--r--app/views/admin/broadcast_messages/index.html.haml13
-rw-r--r--app/views/layouts/_broadcast.html.haml2
3 files changed, 13 insertions, 6 deletions
diff --git a/app/assets/stylesheets/framework/forms.scss b/app/assets/stylesheets/framework/forms.scss
index 032d343df44..d0cb91a5b64 100644
--- a/app/assets/stylesheets/framework/forms.scss
+++ b/app/assets/stylesheets/framework/forms.scss
@@ -78,6 +78,10 @@ label {
padding: 8px $gl-padding;
}
+.form-control-inline {
+ display: inline;
+}
+
.wiki-content {
margin-top: 35px;
}
diff --git a/app/views/admin/broadcast_messages/index.html.haml b/app/views/admin/broadcast_messages/index.html.haml
index 5d8250f787f..6e8122a5137 100644
--- a/app/views/admin/broadcast_messages/index.html.haml
+++ b/app/views/admin/broadcast_messages/index.html.haml
@@ -1,10 +1,13 @@
- page_title "Broadcast Messages"
+
%h3.page-title
Broadcast Messages
%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
- %i.fa.fa-bullhorn
+ = icon('bullhorn')
%span Your message here
= form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal js-requires-input'} do |f|
@@ -21,7 +24,7 @@
.form-group.js-toggle-colors-container.hide
= f.label :color, "Background Color", class: 'control-label'
.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
= f.label :font, "Font Color", class: 'control-label'
.col-sm-10
@@ -29,11 +32,11 @@
.form-group
= f.label :starts_at, class: 'control-label'
.col-sm-10.datetime-controls
- = f.datetime_select :starts_at
+ = f.datetime_select :starts_at, {}, class: 'form-control form-control-inline'
.form-group
= f.label :ends_at, class: 'control-label'
.col-sm-10.datetime-controls
- = f.datetime_select :ends_at
+ = f.datetime_select :ends_at, {}, class: 'form-control form-control-inline'
.form-actions
= f.submit "Add broadcast message", class: "btn btn-create"
diff --git a/app/views/layouts/_broadcast.html.haml b/app/views/layouts/_broadcast.html.haml
index e7d477c225e..ad7851c0aa3 100644
--- a/app/views/layouts/_broadcast.html.haml
+++ b/app/views/layouts/_broadcast.html.haml
@@ -1,4 +1,4 @@
- if broadcast_message.present?
.broadcast-message{ style: broadcast_styling(broadcast_message) }
- %i.fa.fa-bullhorn
+ = icon('bullhorn')
= broadcast_message.message