diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-12-31 17:55:14 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 11:42:15 -0500 |
commit | 00e8700433b3b1ad11252448af5be58913539d85 (patch) | |
tree | b506bc61c351ecbfa3a0c4c468911cf6374b1ba3 /app/views/admin/broadcast_messages/_form.html.haml | |
parent | 540ae3c3658d051f852b2c10fa61c557521196e1 (diff) | |
download | gitlab-ce-00e8700433b3b1ad11252448af5be58913539d85.tar.gz |
Broadcast Messages can now be edited
Closes #3046
Diffstat (limited to 'app/views/admin/broadcast_messages/_form.html.haml')
-rw-r--r-- | app/views/admin/broadcast_messages/_form.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/admin/broadcast_messages/_form.html.haml b/app/views/admin/broadcast_messages/_form.html.haml index 0ca3be0bd54..953b8b69368 100644 --- a/app/views/admin/broadcast_messages/_form.html.haml +++ b/app/views/admin/broadcast_messages/_form.html.haml @@ -1,6 +1,6 @@ -.broadcast-message-preview +.broadcast-message-preview{ style: broadcast_message_style(@broadcast_message) } = icon('bullhorn') - %span Your message here + %span= @broadcast_message.message || "Your message here" = form_for [:admin, @broadcast_message], html: { class: 'broadcast-message-form form-horizontal js-requires-input'} do |f| -if @broadcast_message.errors.any? @@ -10,18 +10,18 @@ .form-group = f.label :message, class: 'control-label' .col-sm-10 - = f.text_area :message, class: "form-control", rows: 2, required: true + = f.text_area :message, class: "form-control js-quick-submit", rows: 2, required: true .form-group.js-toggle-colors-container .col-sm-10.col-sm-offset-2 = link_to 'Customize colors', '#', class: 'js-toggle-colors-link' .form-group.js-toggle-colors-container.hide = f.label :color, "Background Color", class: 'control-label' .col-sm-10 - = f.color_field :color, value: "#E75E40", class: "form-control" + = f.color_field :color, class: "form-control" .form-group.js-toggle-colors-container.hide = f.label :font, "Font Color", class: 'control-label' .col-sm-10 - = f.color_field :font, value: "#FFFFFF", class: "form-control" + = f.color_field :font, class: "form-control" .form-group = f.label :starts_at, class: 'control-label' .col-sm-10.datetime-controls |