speaker is only ask to register when registrations are open and speaker haven't registered yet
This commit is contained in:
parent
01abbfecc4
commit
b1f32caf7c
2 changed files with 27 additions and 22 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
- progress_status = event.progress_status
|
- progress_status = event.progress_status
|
||||||
%ul.list-unstyled
|
%ul.list-unstyled
|
||||||
|
- if @conference.registration_open? || (@conference.user_registered? current_user)
|
||||||
%li{'class'=>class_for_todo(progress_status['registered'])}
|
%li{'class'=>class_for_todo(progress_status['registered'])}
|
||||||
%span{'class'=>icon_for_todo(progress_status['registered'])}
|
%span{'class'=>icon_for_todo(progress_status['registered'])}
|
||||||
- if progress_status['registered']
|
- if progress_status['registered']
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,7 @@
|
||||||
The more information you add to your proposal, the more likely it is that the conference organizers accept your proposal.
|
The more information you add to your proposal, the more likely it is that the conference organizers accept your proposal.
|
||||||
%br
|
%br
|
||||||
It will also be more likely that visitors find your proposal interesting enough to attend.
|
It will also be more likely that visitors find your proposal interesting enough to attend.
|
||||||
|
- if (@conference.registration_open?) && !(@conference.user_registered? current_user)
|
||||||
- if Conference.where(short_title: params[:conference_id]).first.registration_period
|
|
||||||
%p
|
%p
|
||||||
%strong
|
%strong
|
||||||
Why do I need to register to the conference?
|
Why do I need to register to the conference?
|
||||||
|
|
@ -74,15 +73,20 @@
|
||||||
= link_to registered_text(event), registrations_conference_program_proposal_path(@conference.short_title, event), class: 'btn btn-xs btn-danger'
|
= 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;"}
|
%td.col-md-2{style: "padding:20px 8px 20px 8px;"}
|
||||||
- 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} }"
|
= 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.registration_open?) || (@conference.user_registered? current_user)
|
||||||
- progress_percentage = event.calculate_progress
|
- progress_percentage = event.calculate_progress
|
||||||
.progress
|
.progress
|
||||||
%div{class: "progress-bar #{event_progress_color(progress_percentage)}", style: "width:#{progress_percentage}%;"}
|
%div{class: "progress-bar #{event_progress_color(progress_percentage)}", style: "width:#{progress_percentage}%;"}
|
||||||
= event.progress_status.reject{ |_key, value| value || value.nil? }.length
|
= event.progress_status.reject{ |_key, value| value || value.nil? }.length
|
||||||
left
|
left
|
||||||
|
- else
|
||||||
|
- progress_list = event.progress_status
|
||||||
|
- progress_percentage = (100 * progress_list.values.count(true) / (progress_list.values.compact.count-1)).to_s
|
||||||
|
.progress
|
||||||
|
%div{class: "progress-bar #{event_progress_color(progress_percentage)}", style: "width:#{progress_percentage}%;"}
|
||||||
|
= event.progress_status.reject{ |_key, value| value || value.nil? }.length-1
|
||||||
|
left
|
||||||
%td.col-md-3{style: "padding:20px 0px 20px 0px;"}
|
%td.col-md-3{style: "padding:20px 0px 20px 0px;"}
|
||||||
.pull-right
|
.pull-right
|
||||||
- if event.transition_possible? :confirm
|
- if event.transition_possible? :confirm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue