venue_management/app/views/venue_managements/show_inviting.html.erb

89 lines
4.4 KiB
Plaintext
Raw Permalink Normal View History

<% # encoding: utf-8 %>
<% @@session = session %>
<%= yield %>
<%
data = action_data
@venue_management_inviting = data["venue_management_inviting"]
@params = data['params']
%>
<table class="table table-striped venue_managementive-show-table">
<tbody>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.type') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.tags.map{|t| t.name}.join(" , ") %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.case_no') %></th>
2020-09-14 14:55:39 +00:00
<td class="venue_managementive-title-value"><%= @venue_management_inviting.display_case_no %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.publish_times') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.publish_times %></td>
</tr>
2020-09-22 15:19:59 +00:00
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.start_end') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.start_date.to_s + "/" + @venue_management_inviting.end_date.to_s %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.close_date') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.display_close_date %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.bid_date') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.display_bid_date %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.evaluation_date') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.display_evaluation_date %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.rents') %></th>
<td class="venue_managementive-title-value"><%= "#{@venue_management_inviting.early_rent} / #{@venue_management_inviting.operation_rent}" %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.royalty') %></th>
2020-09-22 15:19:59 +00:00
<td class="venue_managementive-title-value"><%= @venue_management_inviting.display_royalty %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.house_land_tax_payer') %></th>
<td class="venue_managementive-title-value"><%= t("vm_inviting.enums.#{@venue_management_inviting.house_tax_payer}")+"/"+t("vm_inviting.enums.#{@venue_management_inviting.land_tax_payer}") %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.contractor_manager') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.contractor_manager %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.bid_result') %></th>
<td class="venue_managementive-title-value"><%= t("vm_inviting.enums.bid_result.#{@venue_management_inviting.bid_result}") %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.details') %></th>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.details.to_s.html_safe %></td>
</tr>
<% if !@venue_management_inviting.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_inviting.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_inviting.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_inviting.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>
<br />
<%= link_to t(:close), 'javascript:window.close();', :class => 'btn btn-primary' %>