% 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.field_name') %> | <%= t('seminar.name') %> | <%= t('seminar.placeholder') %> | <%= t('seminar.disable') %> | <%= t('seminar.hidden') %> | <% @signup_sets.each_with_index do |attr_signup,signup_index| %>
---|---|---|---|---|
<%= t("seminar_signup.#{attr_signup.field_name}") %> | <%= show_set_field(attr_signup,'seminar_signup_field_sets_attributes',signup_index,'name') %> | <%= show_set_field(attr_signup,'seminar_signup_field_sets_attributes',signup_index,'placeholder') %> | <%= check_box_tag("seminar_main[seminar_signup_field_sets_attributes][#{signup_index}][disabled]", true ,attr_signup.disabled) %> | <% if attr_signup.field_name != 'recaptcha' %> <%= check_box_tag("seminar_main[seminar_signup_field_sets_attributes][#{signup_index}][hidden]", true ,attr_signup.hidden) %> <% end %> |
<%= t('seminar.field_name') %> | <%= t('seminar.name') %> | <%= t('seminar.placeholder') %> | <%= t('seminar.disable') %> | <%= t('seminar.hidden') %> | <% @submission_set.each_with_index do |attr_signup,submission_index| %>
---|---|---|---|---|
<%= t("seminar_signup.#{attr_signup.field_name}") %> | <%= show_set_field(attr_signup,'seminar_submission_field_sets_attributes',submission_index,'name') %> | <%= show_set_field(attr_signup,'seminar_submission_field_sets_attributes',submission_index,'placeholder') %> | <%= check_box_tag("seminar_main[seminar_submission_field_sets_attributes][#{submission_index}][disabled]", true ,attr_signup.disabled) %> | <%= check_box_tag("seminar_main[seminar_submission_field_sets_attributes][#{submission_index}][hidden]", true ,attr_signup.hidden) %> |
<%= t('seminar.field_name') %> | <%= t('seminar.hidden') %> | <% @custom_set.each_with_index do |attr_custom,custom_index| %> <% seminar_signup_field = SeminarSignupField.where(id:attr_custom.seminar_signup_field_id).first next if seminar_signup_field.nil? %>
---|---|
<%= seminar_signup_field.title rescue '' %> | <%= check_box_tag("seminar_main[seminar_signup_field_customs_attributes][#{custom_index}][hidden]", true ,attr_custom.hidden) %> | <% if !attr_custom.new_record? %> <% elsif f.object.copy_id.present? %> <% end %>
<%= t('seminar.disable') %> | <%= check_box_tag("seminar_main[seminar_email_sets_attributes][#{index1}][disabled]", true ,@email_set[index1].disabled) %> |
<%= t('seminar.email_title') %> | <%= show_set_field(@email_set[index1],'seminar_email_sets_attributes',index1,'title','text_field') %> |
<%= t('seminar.email_content') %> |
<%= show_set_field(@email_set[index1],'seminar_email_sets_attributes',index1,'content','text_area') %>
|
<%= hidden_field_tag 'seminar_link_field_count', @seminar.seminar_links.count %> <%= t(:add) %>
<%= hidden_field_tag 'seminar_file_field_count', @seminar.seminar_files.to_a.count %> <%= t(:add) %>