<% # encoding: utf-8 %> <% @@session = session %> <%= yield %> <% data = action_data @seminar = data["seminar"] @seminar_signup = data["seminar_signup"] @time_now = data["time_now"] data1 = @seminar.seminar_submission_field_sets.select{|v| v.field_name=='title'}[0] data2 = @seminar.seminar_submission_field_sets.select{|v| v.field_name=='description'}[0] data3 = @seminar.seminar_submission_field_sets.select{|v| v.field_name=='file'}[0] show1 = data1 ? !(data1.disabled) : false show2 = data2 ? !(data2.disabled) : false show3 = data3 ? !(data3.disabled) : false name1 = data1['name'][I18n.locale] name2 = data2['name'][I18n.locale] name3 = data3['name'][I18n.locale] seminar_submission_field = @seminar.seminar_submission_fields.where(:markup=>"seminar_preferred_session").first if data["prefix_url"] prefix_url = data["prefix_url"] else prefix_url = OrbitHelper.url_to_show(@seminar.to_param) end %>

<%= @seminar.title %>

<% if (@seminar.contribute_start_date.nil? || @seminar.contribute_start_date <= @time_now) && ( @seminar.contribute_end_date.nil? || @seminar.contribute_end_date+1 >= @time_now ) %> <% begin %> <% if !session[:seminar_signup_id].blank? %> <%= t('seminar_signup.serial_number') %>: <%=@seminar_signup.display_serial_number rescue ""%> <%= t('seminar_signup.logout') %> <%= t('seminar_signup.edit_form') %> <% if data["show"] %> <% if show1 %> <% end %> <% if show2 %> <% end %> <% if show3 %> <% end %> <% if seminar_submission_field %> <% end %> <% @seminar_signup.seminar_signup_contributes.each do |seminar_signup_contribute| %> <% if show1 %> <% end %> <% if show2 %> <% description = seminar_signup_contribute.description.to_s %> <% if @seminar.enable_summary_choice if (seminar_signup_contribute.description.to_s.to_i.to_s == seminar_signup_contribute.description) description = @seminar.summary_chioices[seminar_signup_contribute.description.to_i] rescue seminar_signup_contribute.description else description = seminar_signup_contribute.description.map{|i| @seminar.summary_chioices[i.to_i] rescue "" }.join("
") rescue seminar_signup_contribute.description end end %> <% end %> <% if show3 %> <% end %> <% if seminar_submission_field %> <% end %> <% end %>
<%= name1 %><%= name2 %><%= name3 %><%= seminar_submission_field.title %><%= t(:action) %>
<%= seminar_signup_contribute.title %><%= description.html_safe %><%= link_to seminar_signup_contribute.disp_filename, seminar_signup_contribute.file.url, {:target => '_blank', :title => Nokogiri::HTML(description.gsub("
"," , ")).text, :download=>seminar_signup_contribute.disp_filename} if seminar_signup_contribute.file.file %>
<%= seminar_signup_contribute.seminar_submission_values.where(:seminar_submission_field=>seminar_submission_field).first.get_value_by_locale(I18n.locale) %> <%= link_to t(:edit), prefix_url + '?method=edit_file&con_no=' + seminar_signup_contribute.id, :class => 'btn btn-primary' %> <%= form_tag(del_file_seminars_path, {method: "post"}) do |f| %> <%= submit_tag t(:delete_), class: "btn btn-primary" %> <%= hidden_field_tag "referer_url", request.original_url.split(request.env["HTTP_HOST"]).last.split('?').first %> <%= hidden_field_tag "con_no", seminar_signup_contribute.id %> <% end %>
<% if ( @seminar.contribute_file_count.blank? or @seminar_signup.seminar_signup_contributes.count < @seminar.contribute_file_count.to_i ) %> <%= link_to content_tag(:i, nil, :class => 'icon-plus') +' '+ t('seminar_signup.new_'), prefix_url + '?method=add_file', :class => 'btn btn-primary' %> <% end %> <% end %>

<% else %> <%= t("seminar.please_login_first") %>
<%=t("seminar.back")%> <% end %> <% rescue => e puts e end%> <% else %> <%= t("seminar.out_of_date") %> <% end %>