65 lines
2.4 KiB
Plaintext
65 lines
2.4 KiB
Plaintext
<script>
|
|
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
|
|
</script>
|
|
<% if 'venue_management_bills' == params[:action] %>
|
|
<h4><%= @venue_management.title %></h4>
|
|
<% end %>
|
|
<table class="table main-list">
|
|
<thead>
|
|
<tr class="sort-header">
|
|
<% @table_fields.each do |f| %>
|
|
<%= Admin::VenueManagementBillsHelper.thead(f) %>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @bills.each do |bill| %>
|
|
<tr>
|
|
<% if 'venue_management_bills' != params[:action] %>
|
|
<td><%= bill.venue_management_main.title %></td>
|
|
<% end %>
|
|
<td>
|
|
<% contractors = bill.contractor.display_contractors rescue "" %>
|
|
<% contractors = t(:empty) if contractors.blank? %>
|
|
<%= link_to contractors, (@venue_management_page_url.blank? ? "#" : "/#{I18n.locale}"+@venue_management_page_url+"/#{contractors.to_s.strip}-#{bill.id}?method=show_bill"), :target => '_self' %>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills">
|
|
<% if can_edit_or_delete?(bill) %>
|
|
<li><%= link_to t(:edit), edit_admin_venue_management_bill_path(bill.id) %></li>
|
|
<li><a href="#" class="delete text-error" rel="/admin/venue_management_bills/<%=bill.id.to_s%>"><%= t(:delete_) %></a></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td><%= bill.display_accounting_month %></td>
|
|
<td><%= "#{t("vm_bill.#{bill.bill_typeA}")}/#{t("vm_bill.#{bill.bill_typeB}")}" %>
|
|
<% if bill.bill_typeB == 'other' && bill.bill_other.present? %>
|
|
-<%=bill.bill_other%>
|
|
<% end %>
|
|
</td>
|
|
<td><%= "#{t("vm_bill.#{bill.caculation_basis_type}")}: #{bill.caculation_basis}" %></td>
|
|
<td><%= bill.reason %></td>
|
|
<td><%= bill.amount %></td>
|
|
<td><%= bill.pay_date %></td>
|
|
<td><%= bill.pay_method %></td>
|
|
<td><%= bill.note %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%=
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
content_tag :div, paginate(@bills), 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_bill_path(id: @venue_management.id), class: "btn btn-primary" %>
|
|
</div>
|
|
</div>
|
|
<!-- footer:end -->
|
|
<% end %>
|