Add call for booths in cfp section in conference splashpage(conferences#show),modified after the design changes

This commit is contained in:
kostino 2018-03-17 18:05:06 +02:00 committed by James Mason
parent 7d2afc623d
commit 69de418ccd
7 changed files with 38 additions and 6 deletions

View file

@ -0,0 +1,19 @@
- cache [conference_id, call, '#splash#callforbooths'] do
.col-md-4.col-sm-4.text-center
%h2
Call for Booths
%p.lead
We are now accepting custom booth requests!
%p
Would you like to request a new booth?
The submission period for booth requests is open
%em
= date_string(call.start_date, call.end_date) + '.'
%b
You have
= pluralize(call.remaining_days, 'day')
left!
%p.cta-button
= link_to("Submit your request for booth",
new_conference_booth_path(conference_id),
class: 'btn btn-success btn-lg text-center')

View file

@ -5,12 +5,18 @@
%section#call
.container
.row
- if one_call_open(call_for_events, call_for_tracks)
.col-md-3.col-sm-3.hidden-xs  
- if one_call_open(call_for_events, call_for_tracks, call_for_booths)
.col-md-4.col-sm-4.hidden-xs  
- if two_calls_open(call_for_events, call_for_tracks, call_for_booths)
.col-md-2.col-sm-2.hidden-xs  
- if call_for_events.try(:open?)
= render 'call_for_papers', conference_id: conference.short_title,
call: call_for_events, event_types: event_types, tracks: tracks
.col-md-2.col-sm-2  
- if call_for_tracks.try(:open?)
= render 'call_for_tracks', conference_id: conference.short_title,
call: call_for_tracks
- if call_for_booths.try(:open?)
= render 'call_for_booths', conference_id: conference.short_title,
call: call_for_booths
- if two_calls_open(call_for_events, call_for_tracks, call_for_booths)
.col-md-2.col-sm-2.hidden-xs  

View file

@ -1,5 +1,5 @@
- cache [conference_id, call, event_types, tracks, '#splash#callforpapers'] do
.col-md-5.col-sm-5.text-center
.col-md-4.col-sm-4.text-center
%h2
Call for Papers
%p.lead

View file

@ -1,5 +1,5 @@
- cache [conference_id, call, '#splash#callfortracks'] do
.col-md-5.col-sm-5.text-center
.col-md-4.col-sm-4.text-center
%h2
Call for Tracks
%p.lead

View file

@ -18,6 +18,7 @@
- if @conference.splashpage.include_cfp
= render 'call_for_content', conference: @conference,
call_for_events: @call_for_events, call_for_tracks: @call_for_tracks,
call_for_booths: @call_for_booths,
event_types: @event_types, tracks: @track_names
- if @conference.splashpage.include_program