2020-05-07 15:26:34 +00:00
|
|
|
<% # encoding: utf-8 %>
|
|
|
|
<% @@session = session %>
|
|
|
|
<%= yield %>
|
|
|
|
<%
|
|
|
|
data = action_data
|
|
|
|
@venue_management = data["venue_management"]
|
|
|
|
@sign_up = data["sign_up"]
|
|
|
|
@sign_up_time_range = data["sign_up_time_range"]
|
|
|
|
@venue_management_time_range = data["venue_management_time_range"]
|
|
|
|
@contribute_time_range = data["contribute_time_range"]
|
|
|
|
@contribute_action = data["contribute_action"]
|
2020-08-09 02:50:11 +00:00
|
|
|
@params = data['params']
|
2020-05-07 15:26:34 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
|
|
<table class="table table-striped venue_managementive-show-table">
|
|
|
|
<tbody >
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t(:category) %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management.category.title %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="fa fa-calendar fa-fw"></i><%= t('venue_management.event_during') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management_time_range %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('venue_management.title') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management.title %></td>
|
|
|
|
</tr>
|
|
|
|
<% if !@venue_management.speaker.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('venue_management.speaker') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management.speaker %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% if !@venue_management.content.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('venue_management.content') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= nl2br(@venue_management.content) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="fa fa-calendar fa-fw"></i><%= t('venue_management.signup_during') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @sign_up_time_range %></td>
|
|
|
|
</tr>
|
|
|
|
<% if !@contribute_time_range.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="fa fa-calendar fa-fw"></i><%= t('venue_management.contribute_during') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @contribute_time_range %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= t('venue_management.signup') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @sign_up %><br /><%= @contribute_action %></td>
|
|
|
|
</tr>
|
|
|
|
<% if !@venue_management.act_place.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="icon-flag"></i><%= t('venue_management.act_place') %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= @venue_management.act_place %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% if !@venue_management.venue_management_files.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="fa fa-fw fa-paperclip"></i><%= t(:file_) %></th>
|
|
|
|
<td class="venue_managementive-title-value">
|
|
|
|
<% @venue_management.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.venue_management_links.blank? %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><i class="fa fa-fw fa-link"></i><%= t(:link) %></th>
|
|
|
|
<td class="venue_managementive-title-value">
|
|
|
|
<% @venue_management.venue_management_links.map do |link| %>
|
|
|
|
<%= link_to (link.title.blank? ? link.url : link.title), link.url, :target => '_blank' %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% @venue_management.venue_management_item_contents.asc(:_id).each do |item_content| %>
|
|
|
|
<tr>
|
|
|
|
<th class="venue_managementive-title-field"><%= item_content.venue_management_item.title %></th>
|
|
|
|
<td class="venue_managementive-title-value"><%= item_content.content.html_safe %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
2020-08-09 02:50:11 +00:00
|
|
|
<ul class="venue_management-plugins nav nav-pills" role="tablist" data-list="plugins" data-level="0">
|
|
|
|
<li class="active"><a href="#signup_count" role="tab" data-toggle="tab" title="<%=t('venue_management.signup_count')%>" aria-expanded="true"><%=t('venue_management.signup_count')%></a></li>
|
|
|
|
<li class=""><a href="#inviting_history" role="tab" data-toggle="tab" title="<%=t('venue_management.inviting_history')%>" aria-expanded="false"><%=t('venue_management.inviting_history')%></a></li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content" data-list="plugins" data-level="0">
|
|
|
|
<div class="tab-pane active" id="signup_count">
|
2020-05-07 15:26:34 +00:00
|
|
|
|
2020-08-09 02:50:11 +00:00
|
|
|
<div class="info" data-list="plugin_data_intro" data-level="1">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-hover table-striped dt-responsive nowrap dataTable" id="table0">
|
|
|
|
<thead>
|
|
|
|
<tr data-list="pd_title" data-level="1">
|
|
|
|
<% @table_fields = [
|
|
|
|
'vm_contract.case_no',
|
|
|
|
'vm_contract.vendor',
|
|
|
|
'vm_contract.start_end',
|
|
|
|
'vm_contract.renewal_permission',
|
|
|
|
'vm_contract.note',
|
|
|
|
] %>
|
|
|
|
<% @table_fields.each do |th| %>
|
|
|
|
<th><%=t(th)%></th>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody data-level="1" data-list="plugin_datas">
|
|
|
|
<% @contracts = @venue_management.venue_management_contracts.to_a %>
|
|
|
|
<% @contracts.each do |contract| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<%= link_to contract.case_no, "/#{I18n.locale}"+@params[:url]+"/#{contract.case_no.strip}-#{contract.id}?method=show_contract" , :target => '_blank' %>
|
|
|
|
</td>
|
|
|
|
<td><%= contract.vendor %></td>
|
|
|
|
<td><%= "#{contract.contract_start_date} / #{contract.contract_end_date}" %></td>
|
|
|
|
<td><%= contract.renewal_permission.present? ? t("vm_contract.renewal.#{contract.renewal_permission}") : t("vm_contract.renewal.false") %></td>
|
|
|
|
<td><%= contract.note %></td>
|
|
|
|
</tr>
|
|
|
|
<% end%>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="inviting_history">
|
|
|
|
|
|
|
|
<div class="info" data-list="plugin_data_intro" data-level="1">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<%
|
|
|
|
@table_fields = [
|
|
|
|
'vm_inviting.case_no',
|
|
|
|
'vm_inviting.publish_times',
|
|
|
|
'vm_inviting.rents',
|
|
|
|
'vm_inviting.royalty',
|
|
|
|
'vm_inviting.house_tax_payer',
|
|
|
|
'vm_inviting.land_tax_payer',
|
|
|
|
'vm_inviting.contractor_manager',
|
|
|
|
'vm_inviting.bid_result',
|
|
|
|
]
|
|
|
|
@invitings = @venue_management.venue_management_invitings.to_a
|
|
|
|
%>
|
|
|
|
<table class="table table-hover table-striped dt-responsive nowrap dataTable" id="table0">
|
|
|
|
<thead>
|
|
|
|
<tr data-list="pd_title" data-level="1">
|
|
|
|
<% @table_fields.each do |th| %>
|
|
|
|
<th><%=t(th)%></th>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody data-level="1" data-list="plugin_datas">
|
|
|
|
<% @invitings.each do |inviting| %>
|
|
|
|
<tr data-level="2" data-list="pd_datas">
|
|
|
|
<td>
|
|
|
|
<%= link_to inviting.case_no, "/#{I18n.locale}"+@params[:url]+"/#{inviting.case_no.strip}-#{inviting.id}?method=show_inviting", :target => '_blank' %>
|
|
|
|
</td>
|
|
|
|
<td><%= inviting.publish_times %></td>
|
|
|
|
<td><%= "#{inviting.early_rent} / #{inviting.operation_rent}" %></td>
|
|
|
|
<td><%= inviting.royalty %></td>
|
|
|
|
<td><%= t("vm_inviting.enums.#{inviting.house_tax_payer}") %></td>
|
|
|
|
<td><%= t("vm_inviting.enums.#{inviting.land_tax_payer}") %></td>
|
|
|
|
<td><%= inviting.contractor_manager %></td>
|
|
|
|
<td><%= t("vm_inviting.enums.bid_result.#{inviting.bid_result}") %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-07 15:26:34 +00:00
|
|
|
<%= link_to t(:close), 'javascript:window.close();', :class => 'btn btn-primary' %>
|