- if @warning_message = columns(medium: 12) do .warning-info=_"articles.admin.registrations.#{@warning_message}" - else = columns(medium: 12) do = 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 - if @broadcast_step == :preview %p= _'articles.conference_registration.paragraphs.admin.broadcast.test', vars: { send_to_count: "#{(@send_to_count || 0)}".html_safe } - else .warning-info.make-room= _'articles.conference_registration.paragraphs.admin.broadcast.preview', vars: { send_to_count: "#{(@send_to_count || 0)}".html_safe } .test-preview %h3=@subject = richtext @body, 4 .actions.right = button_tag :test, value: :test, class: :secondary if @broadcast_step == :preview = button_with_confirmation :send, (_'modals.admin.broadcast.confirm', vars: { number: "#{(@send_to_count || 0)}".html_safe }), value: :send, class: :delete if @broadcast_step == :test = button_tag :edit, value: :edit - else <<<<<<< HEAD = 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 .actions.right = button_tag :preview, value: :preview ======= .warning-info.make-room= _'articles.conference_registration.paragraphs.admin.broadcast.preview', vars: { send_to_count: "#{(@send_to_count || 0)}".html_safe } .test-preview %h3=@subject = richtext @body, 4 .actions.right = button :test, value: :test, class: :secondary if @broadcast_step == :preview = button_with_confirmation :send, (_'modals.admin.broadcast.confirm', vars: { number: "#{(@send_to_count || 0)}".html_safe }), value: :send, class: :delete if @broadcast_step == :test = button :edit, value: :edit - else = 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 .actions.right = button :preview, value: :preview >>>>>>> d1db46f... 2017 refactor