<% 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? %>
<% ['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 %> (空白無限制)
<% @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 %>