Speaker is ask to register only when registration_period is set

This commit is contained in:
namangupta01 2017-08-04 01:29:30 +05:30 committed by Naman Gupta
parent 09941c76c3
commit 01abbfecc4

View file

@ -49,6 +49,7 @@
%br
It will also be more likely that visitors find your proposal interesting enough to attend.
- if Conference.where(short_title: params[:conference_id]).first.registration_period
%p
%strong
Why do I need to register to the conference?
@ -73,7 +74,8 @@
= link_to registered_text(event), registrations_conference_program_proposal_path(@conference.short_title, event), class: 'btn btn-xs btn-danger'
%td.col-md-2{style: "padding:20px 8px 20px 8px;"}
= link_to 'Complete your proposal', 'javascript: void(0)', "type"=>"button", "data-trigger"=>"focus", "data-toggle"=>"popover", "title"=>"Your todo list", "data-content"=>"#{render partial: 'tooltip', locals: { event: event} }"
- if Conference.where(short_title: params[:conference_id]).first.registration_period
= link_to 'Complete your proposal', 'javascript: void(0)', "type"=>"button", "data-trigger"=>"focus", "data-toggle"=>"popover", "title"=>"Your todo list", "data-content"=>"#{render partial: 'tooltip', locals: { event: event} }"
- progress_percentage = event.calculate_progress
.progress