27 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-07-01 16:02:38 -07:00
= admin_update_form do
- if @broadcast_step == :preview || @broadcast_step == :test
= hidden_field_tag :subject, @subject
= hidden_field_tag :body, @body
= hidden_field_tag :send_to, @send_to
= columns(medium: 12) do
- if @broadcast_step == :preview
2017-07-01 16:02:38 -07:00
%p= (_'articles.conference_registration.paragraphs.admin.broadcast.test', vars: { send_to_count: "<strong>#{(@send_to_count || 0)}</strong>".html_safe }).html_safe
- else
2017-07-01 16:02:38 -07:00
.warning-info.make-room=(_'articles.conference_registration.paragraphs.admin.broadcast.preview', vars: { send_to_count: "<strong>#{(@send_to_count || 0)}</strong>".html_safe }).html_safe
= columns(medium: 10, push: { medium: 1 }) do
.test-preview
%h3=@subject
= richtext @body, 4
2017-07-01 16:02:38 -07:00
= columns(medium: 12) do
.actions.center
= button :test, value: :test, class: :warning if @broadcast_step == :preview
= button_with_confirmation :send, (_'modals.admin.broadcast.confirm', vars: { number: "<strong>#{(@send_to_count || 0)}</strong>".html_safe }).html_safe, value: :send, class: :delete if @broadcast_step == :test
2017-04-09 11:37:16 -07:00
= button :edit, value: :edit
2017-07-01 16:02:38 -07:00
- else
= columns(medium: 12) do
= selectfield :send_to, nil, broadcast_options, full: true
= textfield :subject, @subject, required: true, big: true
= textarea :body, @body, lang: @this_conference.locale, edit_on: :focus
2017-07-01 16:02:38 -07:00
.actions.center
2017-04-09 11:37:16 -07:00
= button :preview, value: :preview