seminar2/app/views/admin/seminars/seminar_item_content.html.erb

45 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('seminar_item_content.name')%></th>
</tr>
</thead>
<tbody>
<% @seminar_item_contents.each do |seminar_item_content| %>
<tr>
<td>
<%= seminar_item_content.content %>
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(act_signup) %>
<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_'),
'/admin/seminar_item_contents/'+@member.to_param+'/journal_papers/new', :class => 'btn btn-primary' %>
<%=
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 %>