venue_management/app/views/admin/venue_management_item_contents/index.html.erb

44 lines
1.5 KiB
Plaintext

<span id="index_table">
<script>
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
</script>
<h4><%= @venue_management.title %></h4>
<table class="table main-list">
<thead>
<tr class="sort-header">
<th class='span2'><%= t(:item)%></th>
</tr>
</thead>
<tbody>
<% @venue_management_item_contents.each do |venue_management_item_content| %>
<tr>
<td>
<%= venue_management_item_content.venue_management_item.title %>
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(venue_management_item_content) %>
<li><a href="/admin/venue_management_item_contents/<%=venue_management_item_content.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="#" class="delete text-error" rel="/admin/venue_management_item_contents/<%=venue_management_item_content.id.to_s%>"><%= t(:delete_) %></a></li>
<% end %>
</ul>
</div>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= link_to content_tag(:i, nil, :class => 'icon-plus') +' '+ t('new_'), new_admin_venue_management_item_content_path(:venue_management_main_id=>params[:venue_management_main_id]), :class => 'btn btn-primary' if @venue_management_items.count > 0 %>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@venue_management_item_contents), class: "pagination pagination-centered"
end
%>
</span>
<%= render 'layouts/delete_modal', delete_options: @delete_options %>