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

77 lines
3.6 KiB
Plaintext
Raw 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>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.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>
<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>
<td class="venue_managementive-title-value"><%= @venue_management_inviting.royalty %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.house_tax_payer') %></th>
<td class="venue_managementive-title-value"><%= t("vm_inviting.enums.#{@venue_management_inviting.house_tax_payer}") %></td>
</tr>
<tr>
<th class="venue_managementive-title-field"><%= t('vm_inviting.land_tax_payer') %></th>
<td class="venue_managementive-title-value"><%= 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 %></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' %>