">
<%= form_for @seminar_template_setting, url: update_template_setting_admin_seminar_path(@seminar_template_setting), html: {class: "form-horizontal main-forms"} do |f| %>
<% multi_helper = Admin::SeminarsHelper::MultiLang new_record = @seminar.new_record? && @seminar.copy_id.nil? %> <% 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 %>

<%=t("seminar.background_style")%>

<% last_idx = SeminarTemplateSetting.background_style_infos.count - 1 %> <% SeminarTemplateSetting.background_style_infos.each_with_index do |(key,info),i| %> <%= "
".html_safe if i % 5 == 0 %>
"> " alt="<%=key%>">
<%= "
".html_safe if i % 5 == 4 || i == last_idx %> <% end %>

<%=t("seminar.content_style")%>

<% last_idx = SeminarTemplateSetting.content_style_infos.count - 1 %> <% SeminarTemplateSetting.content_style_infos.each_with_index do |(key,info),i| %> <%= "
".html_safe if i % 5 == 0 %>
"> " alt="<%=key%>">
<%= "
".html_safe if i % 5 == 4 || i == last_idx %> <% end %>
<%= f.number_field :announcement_limit,{min: 0,max: 30} %>
<%= f.number_field :album_limit,{min: 0,max: 30} %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :website_title_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t('seminar.website_title'), value: (@seminar_template_setting.website_title_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :footer_info_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t('seminar.footer_info'), value: (@seminar_template_setting.footer_info_translations[locale] rescue nil) %> <% end %>
<% end %>
<% if @seminar_template_setting && !@seminar_template_setting.seminar_banner_images.blank? %>
<% @seminar_template_setting.seminar_banner_images.each_with_index do |seminar_banner_image, i| %> <%= f.fields_for :seminar_banner_images, seminar_banner_image do |f| %> <%= render :partial => 'form_image', :object => seminar_banner_image, :locals => {:f => f, :i => i} %> <% end %> <% end %>
<% end %>

<%= hidden_field_tag 'seminar_banner_image_count', @seminar_template_setting.seminar_banner_images.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" %>
<% end %>