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

44 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-06-29 06:57:45 +00:00
<span id="index_table">
<script>
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
</script>
<h4><%= @seminar.title %></h4>
<table class="table main-list">
<thead>
<tr class="sort-header">
<th class='span2'><%= t(:item)%></th>
</tr>
</thead>
<tbody>
<% @seminar_item_contents.each do |seminar_item_content| %>
<tr>
<td>
<%= seminar_item_content.seminar_item.title %>
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(seminar_item_content) %>
<li><a href="/admin/seminar_item_contents/<%=seminar_item_content.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="#" class="delete text-error" rel="/admin/seminar_item_contents/<%=seminar_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_seminar_item_content_path(:seminar_main_id=>params[:seminar_main_id]), :class => 'btn btn-primary' if @seminar_items.count > 0 %>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@seminar_item_contents), class: "pagination pagination-centered"
end
%>
</span>
<%= render 'layouts/delete_modal', delete_options: @delete_options %>