2020-07-30 17:30:14 +00:00
|
|
|
<script>
|
|
|
|
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
|
|
|
|
</script>
|
|
|
|
<% if 'venue_management_contracts' == params[:action] %>
|
|
|
|
<h4><%= @venue_management.title %></h4>
|
|
|
|
<% end %>
|
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr class="sort-header">
|
|
|
|
<% @table_fields.each do |f| %>
|
|
|
|
<%= thead(f) %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @contracts.each do |contract| %>
|
|
|
|
<tr>
|
|
|
|
<% if 'venue_management_contracts' != params[:action] %>
|
|
|
|
<td><%= contract.venue_management_main.title %></td>
|
|
|
|
<% end %>
|
|
|
|
<td>
|
2020-08-09 02:50:11 +00:00
|
|
|
<%= link_to contract.case_no, (@venue_management_page_url.blank? ? "#" : "/#{I18n.locale}"+@venue_management_page_url+"/#{contract.case_no.strip}-#{contract.id}?method=show_contract"), :target => '_self' %>
|
2020-07-30 17:30:14 +00:00
|
|
|
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<% if can_edit_or_delete?(contract) %>
|
|
|
|
<li><%= link_to t(:edit), edit_admin_venue_management_contract_path(contract.id) %></li>
|
|
|
|
<li><a href="#" class="delete text-error" rel="/admin/venue_management_contracts/<%=contract.id.to_s%>"><%= t(:delete_) %></a></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
2020-08-09 13:47:41 +00:00
|
|
|
<td><%= contract.display_tags %></td>
|
|
|
|
<td><%= contract.display_contractors %></td>
|
|
|
|
|
|
|
|
<td><%= "#{contract.early_rent} / #{contract.operation_rent}" %></td>
|
|
|
|
|
|
|
|
<td><%= contract.royalty %></td>
|
|
|
|
|
2020-07-30 17:30:14 +00:00
|
|
|
<td><%= "#{contract.contract_start_date} / #{contract.contract_end_date}" %></td>
|
2020-08-09 02:50:11 +00:00
|
|
|
<td><%= contract.renewal_permission.present? ? t("vm_contract.renewal.#{contract.renewal_permission}") : t("vm_contract.renewal.false") %></td>
|
2020-07-30 17:30:14 +00:00
|
|
|
<td><%= contract.note %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<%=
|
|
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
|
|
content_tag :div, paginate(@contracts), class: "pagination pagination-centered"
|
|
|
|
end
|
|
|
|
%>
|
|
|
|
<% if @venue_management.present? %>
|
|
|
|
<!-- footer -->
|
|
|
|
<div class="bottomnav clearfix">
|
|
|
|
<div class="action pull-right">
|
|
|
|
<%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), new_admin_venue_management_contract_path(id: @venue_management.id), class: "btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- footer:end -->
|
|
|
|
<% end %>
|