<% multi_helper = Admin::SeminarsHelper::MultiLang %> <% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/file-type" %> <%= javascript_include_tag "lib/module-area" %> <% end %>
<%= select_category(f, @module_app) %>
<%= f.datetime_picker :seminar_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<%= f.datetime_picker :seminar_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'seminar_main[organizer_id]', email_members:Array(f.object.organizer), index: "1", select_name: 'organizer_id'} %>
<% ['G','C'].each do |t| %> <% end %>
<%= f.datetime_picker :signup_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<%= f.datetime_picker :signup_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<%= f.datetime_picker :contribute_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<%= f.datetime_picker :contribute_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<%= f.text_field :contribute_file_count %> (<%= t('seminar.blank_no_limit') %>)
<%= multi_helper.multiple_lang_tag(nil,'text_area','signup_note_translations',(@seminar.signup_note_translations rescue {}),{rows: 5, class: "input-block-level ckeditor"},'',{},true) %>
<% if !@member.nil? %> <%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'seminar_main[reviewer_ids][]', email_members:@member, index: "2", select_name: 'reviewer_ids'} %> <% else %> <%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'seminar_main[reviewer_ids][]', email_members:[], index: "2", select_name: 'reviewer_ids'} %> <% end %>
<%= f.datetime_picker :review_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<%= f.datetime_picker :review_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @seminar.new_record? %>
<% @signup_sets.each_with_index do |attr_signup,signup_index| %> <% end %>
<%= t('seminar.field_name') %> <%= t('seminar.name') %> <%= t('seminar.placeholder') %> <%= t('seminar.disable') %> <%= t('seminar.hidden') %>
<%= t("seminar_signup.#{attr_signup.field_name}") %> <%= show_set_field(attr_signup,'seminar_signup_field_sets',signup_index,'name') %> <%= show_set_field(attr_signup,'seminar_signup_field_sets',signup_index,'placeholder') %> <%= check_box_tag("seminar_main[seminar_signup_field_sets][#{signup_index}][disabled]", true ,attr_signup.disabled) %> <% if attr_signup.field_name != 'recaptcha' %> <%= check_box_tag("seminar_main[seminar_signup_field_sets][#{signup_index}][hidden]", true ,attr_signup.hidden) %> <% end %>
<% @submission_set.each_with_index do |attr_signup,submission_index| %> <% end %>
<%= t('seminar.field_name') %> <%= t('seminar.name') %> <%= t('seminar.placeholder') %> <%= t('seminar.disable') %> <%= t('seminar.hidden') %>
<%= t("seminar_signup.#{attr_signup.field_name}") %> <%= show_set_field(attr_signup,'seminar_submission_field_sets',submission_index,'name') %> <%= show_set_field(attr_signup,'seminar_submission_field_sets',submission_index,'placeholder') %> <%= check_box_tag("seminar_main[seminar_submission_field_sets][#{submission_index}][disabled]", true ,attr_signup.disabled) %> <%= check_box_tag("seminar_main[seminar_submission_field_sets][#{submission_index}][hidden]", true ,attr_signup.hidden) %>
<% @custom_set.each_with_index do |attr_custom,custom_index| %> <% end %>
<%= t('seminar.field_name') %> <%= t('seminar.hidden') %>
<%= SeminarSignupField.where(id:attr_custom.seminar_signup_field_id).first.title rescue '' %> <%= check_box_tag("seminar_main[seminar_signup_field_customs][#{custom_index}][hidden]", true ,attr_custom.hidden) %>
<% (0..3).each do |index1| %> <% active_email_set = index1==0 ? ' active' : '' %>
<%= t('seminar.disable') %> <%= check_box_tag("seminar_main[seminar_email_sets][#{index1}][disabled]", true ,@email_set[index1].disabled) %>
<%= t('seminar.email_title') %> <%= show_set_field(@email_set[index1],'seminar_email_sets',index1,'title','text_field') %>
<%= t('seminar.email_content') %>
<%= show_set_field(@email_set[index1],'seminar_email_sets',index1,'content','text_area') %>
<% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t(:title), value: (@seminar.title_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :speaker_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t('seminar.speaker'), value: (@seminar.speaker_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :content_translations do |f| %> <%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@seminar.content_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :act_place_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t('seminar.act_place'), value: (@seminar.act_place_translations[locale] rescue nil) %> <% end %>
<% end %>
<% if @seminar && !@seminar.seminar_links.blank? %>
<% @seminar.seminar_links.each_with_index do |seminar_link, i| %> <%= f.fields_for :seminar_links, seminar_link do |f| %> <%= render :partial => 'form_link', :object => seminar_link, :locals => {:f => f, :i => i} %> <% end %> <% end %>
<% end %>

<%= hidden_field_tag 'seminar_link_field_count', @seminar.seminar_links.count %> <%= t(:add) %>

<% if @seminar && !@seminar.seminar_files.blank? %>
<% @seminar.seminar_files.each_with_index do |seminar_file, i| %> <%= f.fields_for :seminar_files, seminar_file do |f| %> <%= render :partial => 'form_file', :object => seminar_file, :locals => {:f => f, :i => i} %> <% end %> <% end %>
<% end %>

<%= hidden_field_tag 'seminar_file_field_count', @seminar.seminar_files.count %> <%= t(:add) %>

<%= get_referer_url[:seminarion] rescue "" %> <%= f.submit t('submit'), class: 'btn btn-primary' %> <%= link_to t('cancel'), admin_seminars_path, :class=>"btn" %>
<% content_for :page_specific_javascript do %> <% end %>