<% venue_method = Admin::VenueManagementsFieldHelper::VenueMethod %> <% 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 %>
<% flash.each do |type, msg| %>
<%= msg %>
<% end %>
<%= select_category(f, @module_app) %>
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'venue_management_main[manager_ids][]', email_members:Array(@managers), index:'1',select_name:'managers'} %>
<%= f.object.display_event_during %>
<%= f.object.display_signup_during %>
<% @venue_management_contract = f.object.venue_management_contracts.desc(:id).first %> <% if !@venue_management_contract.nil? %> <% if !@venue_management_contract.venue_management_files.blank? %> <% end %> <% if !@venue_management_contract.venue_management_links.blank? %> <% end %>
<%= t('vm_contract.case_no') %> <%= @venue_management_contract.venue_management_inviting.case_no %>
<%= t('vm_inviting.type') %> <%= @venue_management_contract.display_tags %>
<%= t('venue_management.contractor') %> <%= @venue_management_contract.display_contractors %>
<%= t('vm_inviting.rents') %> <%= "#{@venue_management_contract.early_rent} / #{@venue_management_contract.operation_rent}" %>
<%= t('vm_inviting.royalty') %> <%= @venue_management_contract.royalty %>
<%= t('vm_inviting.house_land_tax_payer') %> <%= t("vm_inviting.enums.#{@venue_management_contract.house_tax_payer}")+"/"+t("vm_inviting.enums.#{@venue_management_contract.land_tax_payer}") %>
<%= t('vm_contract.renewal_permission') %> <%= @venue_management_contract.renewal_permission.present? ? t("vm_contract.renewal.#{@venue_management_contract.renewal_permission}") : t("vm_contract.renewal.false") %>
<%= t('vm_contract.start_end') %> <%= "#{@venue_management_contract.contract_start_date} ~ #{@venue_management_contract.contract_end_date}" %>
<%= t('vm_contract.construction_start_end') %> <%= "#{@venue_management_contract.construction_start_date} ~ #{@venue_management_contract.construction_end_date}" %>
<%= t('vm_contract.operation_start_end') %> <%= "#{@venue_management_contract.operation_start_date} ~ #{@venue_management_contract.operation_end_date}" %>
<%= t('vm_contract.free_period_start_end') %> <%= "#{@venue_management_contract.free_period_start_date} ~ #{@venue_management_contract.free_period_end_date}" %>
<%= t('vm_contract.sign_date') %> <%= @venue_management_contract.sign_date %>
<%= t('vm_contract.handover_date') %> <%= @venue_management_contract.handover_date %>
<%= t('vm_contract.deposit_payment_date') %> <%= @venue_management_contract.deposit_payment_date %>
<%= t('vm_contract.deposit_type') %> <%= @venue_management_contract.deposit_type %>
<%= t('vm_contract.deposit_exp_date') %> <%= @venue_management_contract.deposit_exp_date %>
<%= t('vm_contract.insurance_type') %> <%= @venue_management_contract.insurance_type %>
<%= t('vm_contract.insurance_payment_deadline') %> <%= @venue_management_contract.insurance_payment_deadline %>
<%= t('vm_contract.insurance_payment_date') %> <%= @venue_management_contract.insurance_payment_date %>
<%= t('vm_contract.other_commitment') %> <%= @venue_management_contract.other_commitment %>
<%= t('vm_contract.note') %> <%= @venue_management_contract.note %>
<%= t(:file_) %> <% @venue_management_contract.venue_management_files.map do |file| %> <%= link_to (file.title.blank? ? File.basename(file.file.path) : file.title) , file.file.url, {:target => '_blank', :title => file.description} if file.file.file %> <% end %>
<%= t(:link) %> <% @venue_management_contract.venue_management_links.map do |link| %> <%= link_to (link.title.blank? ? link.url : link.title), link.url, :target => '_blank' %> <% end %>
<% end %>
<% @custom_set.each_with_index do |attr_custom,custom_index| %> <% end %>
<%= t('venue_management.field_name') %> <%= t('venue_management.hidden') %>
<%= VenueManagementSignupField.where(id:attr_custom.venue_management_signup_field_id).first.title rescue '' %> <%= check_box_tag("venue_management_main[venue_management_signup_field_customs][#{custom_index}][hidden]", true ,attr_custom.hidden) %>
<% (0..3).each do |index1| %> <% active_email_set = index1==0 ? ' active' : '' %>
<%= t('venue_management.disable') %> <%= check_box_tag("venue_management_main[venue_management_email_sets][#{index1}][disabled]", true ,@email_set[index1].disabled) %>
<%= t('venue_management.email_title') %> <%= venue_method.show_set_field(@email_set[index1],'venue_management_email_sets',index1,'title','text_field') %>
<%= t('venue_management.email_content') %>
<%= venue_method.show_set_field(@email_set[index1],'venue_management_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: (@venue_management.title_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :speaker_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t('venue_management.speaker'), value: (@venue_management.speaker_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :land_number_translations do |f| %> <%= f.text_field locale, class: "input-block-level", :value => (@venue_management.land_number_translations[locale] rescue nil),placeholder: t('venue_management.land_number') %> <% end %>
<%= f.fields_for :area_translations do |f| %> <%= f.text_field locale, class: "input-block-level", :value => (@venue_management.area_translations[locale] rescue nil),placeholder: t('venue_management.area') %> <% end %>
<%= f.fields_for :land_zoning_translations do |f| %> <%= f.text_field locale, class: "input-block-level", :value => (@venue_management.land_zoning_translations[locale] rescue nil),placeholder: t('venue_management.land_zoning') %> <% end %>
<%= f.fields_for :content_translations do |f| %> <%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@venue_management.content_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :act_place_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t('venue_management.act_place'), value: (@venue_management.act_place_translations[locale] rescue nil) %> <% end %>
<% end %> <%= render partial: 'admin/venue_shared/venue_file_link',locals: {venue: @venue_management,f: f} %>
<%= get_referer_url[:venue_managemention] rescue "" %> <%= f.submit t('submit'), class: 'btn btn-primary' %> <%= link_to t('cancel'), admin_venue_managements_path, :class=>"btn" %>