osem-fcy/app/views/conferences/_registration.html.haml

34 lines
1.2 KiB
Text
Raw Normal View History

= content_for :splash_nav do
%li
2014-06-26 15:13:23 +05:30
%a.smoothscroll{ href: '#registration' } Registration
2017-11-21 09:54:27 -08:00
- cache [@conference.registration_period, @conference.tickets, '#splash#registration'] do
%section#registration
.container
.row
.col-md-12.text-center
%h1 Registration
2017-11-21 09:54:27 -08:00
- if @conference.registration_limit_exceeded?
%p
Sorry, the conference registration limit has exceeded
- else
- if @conference.tickets.empty?
%p.lead
Going to
= @conference.short_title
is free of charge.
%p
We only ask you to register yourself before
= date_string(@conference.registration_period.end_date)
2017-11-21 09:54:27 -08:00
so we can plan for the right amount of people.
%p.cta-button
- else
%p
The registration period ends on
= date_string(@conference.registration_period.end_date)
2017-11-21 09:54:27 -08:00
%p.cta-button
= link_to(new_conference_conference_registration_path(@conference.short_title),
class: 'btn btn-lg btn-success') do
2017-11-21 09:54:27 -08:00
Register Now