514 lines
26 KiB
Plaintext
514 lines
26 KiB
Plaintext
<%
|
|
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 %>
|
|
<style type="text/css">
|
|
.col-sm-10.controls{
|
|
margin-left:0px;
|
|
}
|
|
.input-append input{
|
|
width: 150px;
|
|
}
|
|
.display_infos{
|
|
padding-top: 0.3em;
|
|
}
|
|
.venue_managementive-title-field{
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
}
|
|
.venue_managementive-title-value{
|
|
display: block;
|
|
}
|
|
tr.control-group{
|
|
display: block;
|
|
}
|
|
</style>
|
|
<!-- Input Area -->
|
|
<div class="input-area">
|
|
|
|
<!-- Module Tabs -->
|
|
<% flash.each do |type, msg| %>
|
|
<div class="alert alert-danger">
|
|
<%= msg %>
|
|
</div>
|
|
<% end %>
|
|
<div class="nav-name"><strong><%= t(:module) %></strong></div>
|
|
|
|
<ul class="nav nav-pills module-nav">
|
|
<li class="active"><a href="#basic" data-toggle="tab"><%= t(:basic) %></a></li>
|
|
<!--
|
|
<li><a href="#review" data-toggle="tab"><%# t('venue_management.review') %></a></li>
|
|
-->
|
|
<!--
|
|
<li><a href="#signup_set" data-toggle="tab"><%# t('venue_management.signup_set') %></a></li>
|
|
<li><a href="#submission_set" data-toggle="tab"><%# t('venue_management.submission_set') %></a></li>
|
|
-->
|
|
<!--
|
|
<li><a href="#custom_set" data-toggle="tab"><%= t('venue_management.custom_set') %></a></li>
|
|
<li><a href="#auto_send_email_set" data-toggle="tab"><%= t('venue_management.auto_send_email_set') %></a></li>
|
|
-->
|
|
</ul>
|
|
|
|
<!-- Module -->
|
|
<div class="tab-content module-area">
|
|
|
|
<!-- Basic Module -->
|
|
<div class="tab-pane fade in active" id="basic">
|
|
|
|
<!-- Category -->
|
|
<div class="control-group">
|
|
<label class="control-label muted"><%= t(:category) %></label>
|
|
<div class="controls">
|
|
<%= select_category(f, @module_app) %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label muted"><%= t('venue_management.manager') %></label>
|
|
<div class="controls">
|
|
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'venue_management_main[manager_ids][]', email_members:Array(@managers), index:'1',select_name:'managers'} %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label muted"><%= t('venue_management.event_during') %></label>
|
|
<div class="controls display_infos">
|
|
<%= f.object.display_event_during %>
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label muted"><%= t('venue_management.signup_during') %></label>
|
|
<div class="controls display_infos">
|
|
<%= f.object.display_signup_during %>
|
|
</div>
|
|
</div>
|
|
<% @venue_management_contract = f.object.venue_management_contracts.desc(:id).first %>
|
|
<% if !@venue_management_contract.nil? %>
|
|
<table>
|
|
<tbody>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_contract.case_no') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.venue_management_inviting.case_no %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_inviting.type') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.display_tags %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('venue_management.contractor') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.display_contractors %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_inviting.rents') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= "#{@venue_management_contract.early_rent} / #{@venue_management_contract.operation_rent}" %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_inviting.royalty') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.royalty %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_inviting.house_land_tax_payer') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= t("vm_inviting.enums.#{@venue_management_contract.house_tax_payer}")+"/"+t("vm_inviting.enums.#{@venue_management_contract.land_tax_payer}") %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_contract.renewal_permission') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.renewal_permission.present? ? t("vm_contract.renewal.#{@venue_management_contract.renewal_permission}") : t("vm_contract.renewal.false") %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.start_end') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= "#{@venue_management_contract.contract_start_date} ~ #{@venue_management_contract.contract_end_date}" %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.construction_start_end') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= "#{@venue_management_contract.construction_start_date} ~ #{@venue_management_contract.construction_end_date}" %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.operation_start_end') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= "#{@venue_management_contract.operation_start_date} ~ #{@venue_management_contract.operation_end_date}" %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.free_period_start_end') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= "#{@venue_management_contract.free_period_start_date} ~ #{@venue_management_contract.free_period_end_date}" %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.sign_date') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.sign_date %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.handover_date') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.handover_date %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.deposit_payment_date') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.deposit_payment_date %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_contract.deposit_type') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.deposit_type %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.deposit_exp_date') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.deposit_exp_date %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_contract.insurance_type') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.insurance_type %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.insurance_payment_deadline') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.insurance_payment_deadline %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-calendar fa-fw"></i><%= t('vm_contract.insurance_payment_date') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.insurance_payment_date %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_contract.other_commitment') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.other_commitment %></td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><%= t('vm_contract.note') %></th>
|
|
<td class="venue_managementive-title-value controls display_infos"><%= @venue_management_contract.note %></td>
|
|
</tr>
|
|
<% if !@venue_management_contract.venue_management_files.blank? %>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-fw fa-paperclip"></i><%= t(:file_) %></th>
|
|
<td class="venue_managementive-title-value controls display_infos">
|
|
<% @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 %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@venue_management_contract.venue_management_links.blank? %>
|
|
<tr class="control-group">
|
|
<th class="venue_managementive-title-field control-label muted"><i class="fa fa-fw fa-link"></i><%= t(:link) %></th>
|
|
<td class="venue_managementive-title-value controls display_infos">
|
|
<% @venue_management_contract.venue_management_links.map do |link| %>
|
|
<%= link_to (link.title.blank? ? link.url : link.title), link.url, :target => '_blank' %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<% end %>
|
|
</div>
|
|
<!-- Review Module -->
|
|
<!--
|
|
<div class="tab-pane fade in " id="review">
|
|
<%# f.fields_for :venue_management_reviews,@review do |venue_management_reviews_form| %>
|
|
<div class="control-group big-group">
|
|
<label class="control-label muted"><%= t("venue_management.reviewer") %></label>
|
|
<div class="controls">
|
|
<%# if !@member.nil? %>
|
|
<%# render partial: 'admin/member_selects/email_selection_box', locals: {field: 'venue_management_main[venue_management_reviews_attributes][0][reviewer_id][]', email_members:@member} %>
|
|
<%# else %>
|
|
<%# render partial: 'admin/member_selects/email_selection_box', locals: {field: 'venue_management_main[venue_management_reviews_attributes][0][reviewer_id][]', email_members:[]} %>
|
|
<%# end %>
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label muted"><%= t('venue_management.review_start_date') %></label>
|
|
<div class="controls">
|
|
<%# venue_management_reviews_form.datetime_picker :review_start_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @venue_management.new_record? %>
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label muted"><%= t('venue_management.review_end_date') %></label>
|
|
<div class="controls">
|
|
<%# venue_management_reviews_form.datetime_picker :review_end_date, :no_label => true, :format=>"yyyy/MM/dd", :new_record => @venue_management.new_record? %>
|
|
</div>
|
|
</div>
|
|
<%# end %>
|
|
</div>
|
|
-->
|
|
<!-- Signup Set Module -->
|
|
<!--
|
|
<div class="tab-pane fade in " id="signup_set" style="padding: 1.2em;">
|
|
<table>
|
|
<thead>
|
|
<th><%#= t('venue_management.field_name') %></th>
|
|
<th><%#= t('venue_management.name') %></th>
|
|
<th><%#= t('venue_management.placeholder') %></th>
|
|
<th><%#= t('venue_management.disable') %></th>
|
|
<th><%#= t('venue_management.hidden') %></th>
|
|
</thead>
|
|
<tbody>
|
|
<%# @signup_sets.each_with_index do |attr_signup,signup_index| %>
|
|
<tr class="control-group">
|
|
<td>
|
|
<%#= t("venue_management_signup.#{attr_signup.field_name}") %>
|
|
</td>
|
|
<td>
|
|
<%#= venue_method.show_set_field(attr_signup,'venue_management_signup_field_sets',signup_index,'name') %>
|
|
</td>
|
|
<td>
|
|
<%#= venue_method.show_set_field(attr_signup,'venue_management_signup_field_sets',signup_index,'placeholder') %>
|
|
</td>
|
|
<td>
|
|
<input type="hidden" class="field_name" name='<%#= "venue_management_main[venue_management_signup_field_sets][#{signup_index}][field_name]" %>' value="<%# attr_signup.field_name %>">
|
|
<input type="hidden" class="field_set" name='<%#= "venue_management_main[venue_management_signup_field_sets][#{signup_index}][disabled]" %>' value="false">
|
|
<%#= check_box_tag("venue_management_main[venue_management_signup_field_sets][#{signup_index}][disabled]", true ,attr_signup.disabled) %>
|
|
</td>
|
|
<td>
|
|
<%# if attr_signup.field_name != 'recaptcha' %>
|
|
<input type="hidden" class="field_set" name='<%#= "venue_management_main[venue_management_signup_field_sets][#{signup_index}][hidden]" %>' value="false">
|
|
<%#= check_box_tag("venue_management_main[venue_management_signup_field_sets][#{signup_index}][hidden]", true ,attr_signup.hidden) %>
|
|
<%# end %>
|
|
</td>
|
|
</tr>
|
|
<%# end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
-->
|
|
<!-- Submission Set Module -->
|
|
<!--
|
|
<div class="tab-pane fade in " id="submission_set" style="padding: 1.2em;">
|
|
<table>
|
|
<thead>
|
|
<th><%#= t('venue_management.field_name') %></th>
|
|
<th><%#= t('venue_management.name') %></th>
|
|
<th><%#= t('venue_management.placeholder') %></th>
|
|
<th><%#= t('venue_management.disable') %></th>
|
|
<th><%#= t('venue_management.hidden') %></th>
|
|
</thead>
|
|
<tbody>
|
|
<%# @submission_set.each_with_index do |attr_signup,submission_index| %>
|
|
<tr class="control-group">
|
|
<td>
|
|
<%#= t("venue_management_signup.#{attr_signup.field_name}") %>
|
|
</td>
|
|
<td>
|
|
<%#= venue_method.show_set_field(attr_signup,'venue_management_submission_field_sets',submission_index,'name') %>
|
|
</td>
|
|
<td>
|
|
<%#= venue_method.show_set_field(attr_signup,'venue_management_submission_field_sets',submission_index,'placeholder') %>
|
|
</td>
|
|
<td>
|
|
<input type="hidden" class="field_name" name='<%#= "venue_management_main[venue_management_submission_field_sets][#{submission_index}][field_name]" %>' value="<%#= attr_signup.field_name %>">
|
|
<input type="hidden" class="field_set" name='<%#= "venue_management_main[venue_management_submission_field_sets][#{submission_index}][disabled]" %>' value="false">
|
|
<%#= check_box_tag("venue_management_main[venue_management_submission_field_sets][#{submission_index}][disabled]", true ,attr_signup.disabled) %>
|
|
</td>
|
|
<td>
|
|
<input type="hidden" class="field_set" name='<%#= "venue_management_main[venue_management_submission_field_sets][#{submission_index}][hidden]" %>' value="false">
|
|
<%#= check_box_tag("venue_management_main[venue_management_submission_field_sets][#{submission_index}][hidden]", true ,attr_signup.hidden) %>
|
|
</td>
|
|
</tr>
|
|
<%# end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
-->
|
|
<!-- Custom Set Module -->
|
|
<div class="tab-pane fade in " id="custom_set" style="padding: 1.2em;">
|
|
<table>
|
|
<thead>
|
|
<th style="padding-right: 2em;"><%= t('venue_management.field_name') %></th>
|
|
<th><%= t('venue_management.hidden') %></th>
|
|
</thead>
|
|
<tbody>
|
|
<% @custom_set.each_with_index do |attr_custom,custom_index| %>
|
|
<tr class="control-group">
|
|
<td>
|
|
<%= VenueManagementSignupField.where(id:attr_custom.venue_management_signup_field_id).first.title rescue '' %>
|
|
</td>
|
|
<td>
|
|
<input type="hidden" class="field_set" name='<%= "venue_management_main[venue_management_signup_field_customs][#{custom_index}][hidden]" %>' value="false">
|
|
<%= check_box_tag("venue_management_main[venue_management_signup_field_customs][#{custom_index}][hidden]", true ,attr_custom.hidden) %>
|
|
</td>
|
|
<input for="field_0" id="venue_management_main_venue_management_signup_field_customs_<%= custom_index.to_s %>_id" name="venue_management_main[venue_management_signup_field_customs][<%= custom_index.to_s %>][id]" type="hidden" value="<%= attr_custom.id.to_s %>">
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- Email Set Module -->
|
|
<div class="tab-pane fade in " id="auto_send_email_set" style="padding: 1.2em;">
|
|
<ul class="nav nav-pills module-nav">
|
|
<li class="active">
|
|
<a href="#email_set0" data-toggle="tab">
|
|
<%= t('venue_management.email_signup') %>
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#email_set1" data-toggle="tab">
|
|
<%= t('venue_management.email_submission') %>
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#email_set2" data-toggle="tab">
|
|
<%= t('venue_management.email_add_file') %>
|
|
</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="#email_set3" data-toggle="tab">
|
|
<%= t('venue_management.email_edit_file') %>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<% (0..3).each do |index1| %>
|
|
<% active_email_set = index1==0 ? ' active' : '' %>
|
|
<div class="tab-pane<%= active_email_set %>" id="email_set<%= index1 %>" style="padding: 1.2em;">
|
|
<table style="width:100%;">
|
|
<tbody>
|
|
<tr class="control-group">
|
|
<td>
|
|
<%= t('venue_management.disable') %>
|
|
</td>
|
|
<td>
|
|
<input type="hidden" class="field_set" name='<%= "venue_management_main[venue_management_email_sets][#{index1}][disabled]" %>' value="false">
|
|
<%= check_box_tag("venue_management_main[venue_management_email_sets][#{index1}][disabled]", true ,@email_set[index1].disabled) %>
|
|
</td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<td>
|
|
<%= t('venue_management.email_title') %>
|
|
</td>
|
|
<td>
|
|
<%= venue_method.show_set_field(@email_set[index1],'venue_management_email_sets',index1,'title','text_field') %>
|
|
</td>
|
|
</tr>
|
|
<tr class="control-group">
|
|
<td>
|
|
<%= t('venue_management.email_content') %>
|
|
</td>
|
|
<td>
|
|
<div class="form-group">
|
|
<%= venue_method.show_set_field(@email_set[index1],'venue_management_email_sets',index1,'content','text_area') %>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Language Tabs -->
|
|
<div class="nav-name"><strong><%= t(:language) %></strong></div>
|
|
<ul class="nav nav-pills language-nav">
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
|
<li class="<%= 'active' if i == 0 %>">
|
|
<a data-toggle="tab" href=".<%= locale %>"><%= t(locale) %></a>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
<!-- Language -->
|
|
<div class="tab-content language-area">
|
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
|
|
|
<div class="<%= locale %> tab-pane fade <%= ( i == 0 ) ? "in active" : '' %>">
|
|
|
|
<!-- Title-->
|
|
<div class="control-group input-title">
|
|
<label class="control-label muted"><%= t('venue_management.title') %></label>
|
|
<div class="controls">
|
|
<%= 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 %>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Speaker -->
|
|
<div class="control-group input-title">
|
|
<label class="control-label muted"><%= t('venue_management.speaker') %></label>
|
|
<div class="controls">
|
|
<%= 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 %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group input-content">
|
|
<label class="control-label muted"><%= t('venue_management.land_number') %></label>
|
|
<div class="controls">
|
|
<div class="textarea">
|
|
<%= 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 %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group input-content">
|
|
<label class="control-label muted"><%= t('venue_management.area') %></label>
|
|
<div class="controls">
|
|
<div class="textarea">
|
|
<%= 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 %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group input-content">
|
|
<label class="control-label muted"><%= t('venue_management.land_zoning') %></label>
|
|
<div class="controls">
|
|
<div class="textarea">
|
|
<%= 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 %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Content -->
|
|
<div class="control-group input-content">
|
|
<label class="control-label muted"><%= t('venue_management.content') %></label>
|
|
<div class="controls">
|
|
<div class="textarea">
|
|
<%= 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 %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Place-->
|
|
<div class="control-group input-title">
|
|
<label class="control-label muted"><%= t('venue_management.act_place') %></label>
|
|
<div class="controls">
|
|
<%= 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 %>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
<%= render partial: 'admin/venue_shared/venue_file_link',locals: {venue: @venue_management,f: f} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Form Actions -->
|
|
<div class="form-actions">
|
|
<%= get_referer_url[:venue_managemention] rescue "" %>
|
|
<%= f.submit t('submit'), class: 'btn btn-primary' %>
|
|
<input type="hidden" name="referer_url" value="<%= get_referer_url %>">
|
|
<%= link_to t('cancel'), admin_venue_managements_path, :class=>"btn" %>
|
|
</div> |