<% if 'venue_management_contracts' == params[:action] %>

<%= @venue_management.title %>

<% end %> <% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @contracts.each do |contract| %> <% if 'venue_management_contracts' != params[:action] %> <% end %> <% end %>
<%= contract.venue_management_main.title %> <%= link_to contract.case_no, admin_venue_management_contract_path(contract.id), :target => '_blank' %>
<%= contract.vendor %> <%= "#{contract.contract_start_date} / #{contract.contract_end_date}" %> <%= t("vm_contract.renewal.#{contract.renewal_permission}") if contract.renewal_permission.present? %> <%= contract.note %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(@contracts), class: "pagination pagination-centered" end %> <% if @venue_management.present? %>
<%= 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" %>
<% end %>