venue_management/app/views/admin/venue_managements/_index.html.erb

66 lines
3.2 KiB
Plaintext
Raw Normal View History

2020-05-07 15:26:34 +00:00
<script>
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
</script>
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<% if f == 'venue_management.title' %>
<th class='span4'><%= t(f)%></th>
<% else %>
<%= thead(f) %>
<% end %>
<% end %>
</tr>
</thead>
<tbody>
<% @venue_managements.each do |venue_management| %>
<tr>
2020-11-12 13:51:31 +00:00
2020-05-07 15:26:34 +00:00
<td><%= venue_management.category.title %></td>
2020-11-12 13:51:31 +00:00
<td><%= venue_management.display_tags %></td>
2020-05-07 15:26:34 +00:00
<td>
<a href="<%= page_for_venue_management(venue_management) %>?method=show_data" target="_blank"><%= venue_management.title %></a>
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(venue_management) %>
<li><a href="/admin/venue_managements/<%=venue_management.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="<%= admin_venue_management_item_contents_path(:venue_management_main_id=>venue_management.id.to_s) %>"><%= t('venue_management.set_venue_management_item_content') %></a></li>
2020-11-12 13:51:31 +00:00
<!--
2020-05-07 15:26:34 +00:00
<li><a href="/admin/venue_managements/<%=venue_management.id.to_s%>/venue_management_signup_field"><%= t('venue_management.set_venue_management_signup_field') %></a></li>
<li><a href="/admin/venue_managements/<%=venue_management.id.to_s%>/venue_management_submission_field"><%= t('venue_management.set_venue_management_submission_field') %></a></li>
2020-11-12 13:51:31 +00:00
-->
2020-05-07 15:26:34 +00:00
<li><a href="#" class="delete text-error" rel="/admin/venue_managements/<%=venue_management.id.to_s%>"><%= t(:delete_) %></a></li>
<% end %>
2020-11-12 13:51:31 +00:00
<li><a href="/admin/venue_managements/<%=venue_management.id.to_s%>/print_pdf"><%= t("venue_management.print_pdf") %></a></li>
2020-05-07 15:26:34 +00:00
</ul>
</div>
</td>
2020-11-12 13:51:31 +00:00
<td><%= venue_management.display_contractors %></td>
<td><%= venue_management.display_event_during %></td>
<td><%= venue_management.display_signup_during %></td>
<td>
<%= link_to venue_management.venue_management_invitings.count, venue_management_invitings_admin_venue_management_path(venue_management.id) %>
</td>
<td>
<%= link_to venue_management.venue_management_contracts.count, venue_management_contracts_admin_venue_management_path(venue_management.id) %>
</td>
<td>
<%= link_to venue_management.venue_management_memorabilias.count, venue_management_memorabilias_admin_venue_management_path(venue_management.id) %>
</td>
<td>
<%= link_to venue_management.venue_management_bills.count, venue_management_bills_admin_venue_management_path(venue_management.id) %>
</td>
2020-05-07 15:26:34 +00:00
<td><a href="/admin/venue_managements/<%=venue_management.id.to_s%>/export?format=xlsx" target="_blank"><%= t('venue_management.export') %></a></td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@venue_managements), class: "pagination pagination-centered"
end
2020-11-12 13:51:31 +00:00
%>