Multiple fixes for prod
This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
= columns(large: 8, push: { large: 2}) do
|
||||
%h3=_'articles.admin.info.headings.External_Administrators'
|
||||
%p=_'articles.admin.info.descriptions.External_Administrators'
|
||||
- if @this_conference.administrators.present?
|
||||
.details.org-members
|
||||
- @this_conference.administrators.each do | user |
|
||||
= raw_data_set(:h5, user.name) do
|
||||
= user.email
|
||||
- unless user.id == current_user.id && !current_user.administrator?
|
||||
= admin_update_form class: [:inline, :right] do
|
||||
= hidden_field_tag :user_id, user.id
|
||||
= button :remove_member, value: :remove_administrator, class: [:small, :delete]
|
||||
= admin_update_form class: 'mini-flex-form' do
|
||||
= userfield :email, nil, required: true
|
||||
= button :add_member, value: :add_administrator, class: :small
|
||||
|
||||
%h3=_'articles.admin.info.headings.Host_Organizations'
|
||||
%p=_'articles.admin.info.descriptions.Host_Organizations', vars: { city_name: @this_conference.city.city }
|
||||
= admin_update_form do
|
||||
@@ -22,20 +37,5 @@
|
||||
= emailfield :email, nil, required: true
|
||||
= button :add_member, value: :add_org_member, class: :small
|
||||
|
||||
%h3=_'articles.admin.info.headings.External_Administrators'
|
||||
%p=_'articles.admin.info.descriptions.External_Administrators'
|
||||
- if @this_conference.administrators.present?
|
||||
.details.org-members
|
||||
- @this_conference.administrators.each do | user |
|
||||
= raw_data_set(:h5, user.name) do
|
||||
= user.email
|
||||
- unless user.id == current_user.id && !current_user.administrator?
|
||||
= admin_update_form class: [:inline, :right] do
|
||||
= hidden_field_tag :user_id, user.id
|
||||
= button :remove_member, value: :remove_administrator, class: [:small, :delete]
|
||||
= admin_update_form class: 'mini-flex-form' do
|
||||
= userfield :email, nil, required: true
|
||||
-#= emailfield :email, nil, required: true
|
||||
= button :add_member, value: :add_administrator, class: :small
|
||||
= columns(large: 2) do
|
||||
|
||||
|
||||
@@ -1,23 +1,26 @@
|
||||
= 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
|
||||
= 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
|
||||
%p= _'articles.conference_registration.paragraphs.admin.broadcast.test', vars: { send_to_count: "<strong>#{(@send_to_count || 0)}</strong>".html_safe }
|
||||
%p= (_'articles.conference_registration.paragraphs.admin.broadcast.test', vars: { send_to_count: "<strong>#{(@send_to_count || 0)}</strong>".html_safe }).html_safe
|
||||
- else
|
||||
.warning-info.make-room= _'articles.conference_registration.paragraphs.admin.broadcast.preview', vars: { send_to_count: "<strong>#{(@send_to_count || 0)}</strong>".html_safe }
|
||||
.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
|
||||
.actions.right
|
||||
= button :test, value: :test, class: :secondary if @broadcast_step == :preview
|
||||
= button_with_confirmation :send, (_'modals.admin.broadcast.confirm', vars: { number: "<strong>#{(@send_to_count || 0)}</strong>".html_safe }), value: :send, class: :delete if @broadcast_step == :test
|
||||
= 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
|
||||
= button :edit, value: :edit
|
||||
- else
|
||||
- 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
|
||||
.actions.right
|
||||
.actions.center
|
||||
= button :preview, value: :preview
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
= form_tag administration_update_path(@this_conference.slug, @admin_step) do
|
||||
- if @this_conference.workshop_schedule_published
|
||||
%p=_'articles.conference_registration.paragraphs.admin.schedule.published', :p
|
||||
.actions= button :un_publish, value: :publish, class: :delete
|
||||
.actions.center= button :un_publish, value: :publish, class: :delete
|
||||
- else
|
||||
%p=_'articles.conference_registration.paragraphs.admin.schedule.un_published', :p
|
||||
.actions= button :publish, value: :publish
|
||||
.actions.center= button :publish, value: :publish
|
||||
|
||||
Reference in New Issue
Block a user