Add call for booths section in conference splashpage(conferences#show)

This commit is contained in:
evris99 2017-12-07 19:53:52 +02:00
parent b97122097f
commit fd24530965
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,30 @@
= content_for :splash_nav do
%li
%a.smoothscroll{ href: '#callforbooths' } Call For Booths
.container
.row
.col-md-12.text-center
%h2
Call for Booths
%p.lead
We are ready to accept requests for booths!
.row
.col-md-6.col-md-offset-3.col-sm-10.col-sm-offset-1
%p
The submission period for booth requests has begun
%em.notranslate
= @conference.program.cfps.for_booths.start_date.strftime('%A, %B %-d. %Y')
and closes
%em.notranslate
= @conference.program.cfps.for_booths.end_date.strftime('%A, %B %-d. %Y.')
- if @conference.program.cfps.for_booths.try(:open?)
That means you have only
%b.notranslate= pluralize(@conference.program.cfps.for_booths.remaining_days, 'day')
left!
- else
The submission period for booth requests is closed.
.row
.col-md-12.text-center
%p.cta-button
= link_to "Submit your request for booth", conference_booths_path(@conference.short_title), class: 'btn btn-success btn-lg text-center'

View file

@ -53,6 +53,10 @@
%section#callfortracks %section#callfortracks
= render 'call_for_tracks' = render 'call_for_tracks'
- if @conference.program.cfps.for_booths.try(:open?) && @conference.splashpage.include_cfp
%section#callforbooths
= render 'call_for_booths'
- if @conference.venue and @conference.splashpage.include_venue - if @conference.venue and @conference.splashpage.include_venue
%section#venue %section#venue
= render 'venue' = render 'venue'