<%= t("seminar.reviewer") %>
<% reviewer_show_ids = @seminar.reviewer_show_ids %>
<% if reviewer_show_ids.nil?
reviewer_show_ids = @seminar.reviewer_ids[0..1]
@seminar.update(:reviewer_show_ids=>reviewer_show_ids)
end
%>
<% count = 0 %>
<% reviewer_show_ids.each do |reviewer_id| %>
<% seminar_review = @seminar.seminar_reviews.where(:reviewer_id => reviewer_id.to_s).first %>
<% next if seminar_review.nil? %>
<% count += 1 %>
<%= MemberProfile.find(reviewer_id).name rescue "" %>
-
<% @seminar_signups = SeminarSignup.where(:id.in=>seminar_review.get_all_seminar_signup_ids).sort_ordered %>
<% @seminar_signups = @seminar_signups.page(params["page_no#{count}"]).per(5) %>
<% @seminar_signups = @seminar_signups.page(0) if @seminar_signups.to_a.count == 0 %>
<% org_seminar_signups = org_seminar_signups.where(:id.nin=>@seminar_signups.map{|ss| ss.id})%>
<% @append_contribute_ids = seminar_review.seminar_signup_contribute_ids %>
<% @remove_contribute_ids = seminar_review.remove_seminar_signup_contribute_ids %>
<%= render :partial => "seminar_signup_render_table",:locals=>{:@seminar_signups=>@seminar_signups,:@drag => true,:@include_blank=>true,:@reviewer_id=>seminar_review.id.to_s,:@preferred_sessions=>seminar_review.session_ids} %>
<%
pagination_html = content_tag :div, class: "bottomnav clearfix", style: "position: static;" do
content_tag :div, paginate(@seminar_signups), class: "pagination pagination-centered"
end
%>
<%= pagination_html.gsub(/page_no#{count}=\d*/,"").gsub('&&','&').gsub(/page=(\d*)/m){|ff| ff.gsub("page=#{$1}","page=#{params[:page]}&page_no#{count}=#{$1}")}.html_safe %>
<% end %>
<% if count != 2 && @seminar.seminar_reviews.count >= 2 %>
<% (0...(2-count)).each do |i| %>
<% end %>
<% end %>
<% @seminar_signups = org_seminar_signups
@include_blank = false
@reviewer_id = nil
@append_contribute_ids = nil
@remove_contribute_ids = nil
@preferred_sessions = nil
%>
<%= t('seminar.submitter_without_reviewer') %>
<%= render :partial => "seminar_signup_render_table" %>
<%=
content_tag :div, class: "bottomnav clearfix", style: "position: static;" do
content_tag :div, paginate(@seminar_signups), class: "pagination pagination-centered"
end
%>
<% unless request.xhr? %>
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t("seminar.field_display_setting"), seminar_signup_admin_setting_admin_seminar_path(params[:id]), :class => 'btn btn-primary' %>
<% end %>