Added conference copy to admin
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
= @conference.poster.full.url || image_path('default_poster.jpg')
|
||||
- if @conferences
|
||||
- @conferences.each do | conference |
|
||||
= render 'conferences/conference', conference: conference, links: [ :read_more, :register ]
|
||||
= render 'conferences/conference', conference: conference, links: [ :read_more, :register ], sections: @conference.front_page_details
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :additional_details
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :city_info
|
||||
@@ -1,5 +1,5 @@
|
||||
= columns(medium: 12) do
|
||||
= admin_update_form do
|
||||
= translate_textarea :group_ride_info, @this_conference, label: 'articles.conference_registration.headings.admin.edit.group_ride', help: 'articles.conference_registration.paragraphs.admin.edit.group_ride', edit_on: :focus
|
||||
= translate_textarea :group_ride_info, @this_conference, label: 'articles.conference_registration.headings.admin.edit.group_ride', help: 'articles.conference_registration.paragraphs.admin.edit.group_ride'
|
||||
.actions.right
|
||||
= button :save, value: :save
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :housing_info
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :schedule_info
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :travel_info
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :volunteering_info
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :what_to_bring
|
||||
@@ -0,0 +1 @@
|
||||
= copy_form :workshop_info
|
||||
@@ -16,6 +16,11 @@
|
||||
= columns(medium: 10, push: {medium: 1}) do
|
||||
%h2=_!conference.title if conference.poster.present?
|
||||
= richtext conference.info
|
||||
- conference.extended_details.each do |section|
|
||||
- if sections.include?(section) && conference.copy_data[section][:show]
|
||||
%h3=(_ conference.copy_data[section][:heading], vars: conference.copy_data[section][:vars]) unless conference.copy_data[section][:heading] == false
|
||||
= richtext conference.copy_data[section][:value]
|
||||
|
||||
- if conference.registration_status == :open && sections.include?(:workshops)
|
||||
- if conference.workshop_schedule_published
|
||||
- add_inline_script :home_schedule
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
- location = @conference.organizations.first.locations.first
|
||||
- location_name = location.city + ', ' + (location.territory ? Carmen::Country.coded(location.country).subregions.coded(location.territory).name : location.country)
|
||||
|
||||
- title @conference.title
|
||||
- description "#{@conference.title} conference in #{location_name} for DIY bicycle collectives, co-ops, and advocacy groups"
|
||||
= render 'header'
|
||||
%article.row
|
||||
.columns.large-10
|
||||
- if @register_step
|
||||
%h2='Conference Registration'
|
||||
- if @actions
|
||||
= form_tag (@conference.url + '/register/').gsub(/\/\/+/, '/'), :method => :post, :multipart => @multipart do
|
||||
= hidden_field_tag :step, @register_step
|
||||
- if @error_message
|
||||
.columns.medium-8.medium-centered
|
||||
%p.error=@error_message
|
||||
= render @register_template
|
||||
.columns= form_actions @actions
|
||||
- else
|
||||
= render @register_template
|
||||
- else
|
||||
%h2=('About '+@conference.title)
|
||||
=p @conference, :info
|
||||
- if @conference.registration_open
|
||||
.columns.small-12.centered
|
||||
%a.button.register-now{href: @conference.url(:register)}
|
||||
=_'conference.Register_Now'
|
||||
|
||||
|
||||
- content_for :side_bar do
|
||||
%h5= @conference.title+' is hosted by:'
|
||||
%ul.preview-list.org-list.small-block-grid-2.large-block-grid-1
|
||||
- @conference.organizations.each do |organization|
|
||||
%li=render 'organizations/preview', :organization => organization
|
||||
@@ -2,4 +2,4 @@
|
||||
= @this_conference.poster.full.url || image_path('default_poster.jpg')
|
||||
- content_for :title do
|
||||
=@this_conference.title
|
||||
= render 'conferences/conference', conference: @this_conference, links: @links, sections: [:info, :workshops]
|
||||
= render 'conferences/conference', conference: @this_conference, links: @links, sections: [:info] + @this_conference.extended_details + [:workshops]
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
%td{style: 'width: 50%; text-align: left'}
|
||||
%img.image_fix{:src => ((Rails.env.development? || Rails.env.test? ? 'https://preview-en.bikebike.org' : @host) + image_url('bblogo-paypal'))}
|
||||
%td{style: 'width: 50%; text-align: left'}
|
||||
%a{href: @host}=_!("© Bike!Bike! #{Date.today.year}")
|
||||
%a{href: @host}=_!("© Bike!Bike! #{Date.today.year}").html_safe
|
||||
%tr
|
||||
%td{colspan: 2, style: 'height: 16px'}=' '.html_safe
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.external
|
||||
.facebook
|
||||
=_'links.footer.help_text.facebook', 'Join our facebook group' do |title|
|
||||
%a{href: 'https://www.facebook.com/groups/648758205249998/', target: :_blank, title: title}
|
||||
%a{href: "https://www.facebook.com/groups/648758205249998/", target: :_blank, title: title}
|
||||
= svg 'facebook', 'facebook logo'
|
||||
.github
|
||||
=_'links.footer.text.Help_contribute' do |title|
|
||||
|
||||
Reference in New Issue
Block a user