45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
|
<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| %>
|
||
|
<%= thead(f) %>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @archive_exams.each do |archive_exam| %>
|
||
|
<tr>
|
||
|
<td><%= archive_exam.status_for_table %></td>
|
||
|
<td>
|
||
|
<%= archive_exam.category.title rescue "" %>
|
||
|
<% if (archive_exam.category.disable rescue false) %>
|
||
|
<span class='label'><%= t(:disabled) %></span>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
<td>
|
||
|
<a href="#" target="_blank"><%= archive_exam.title %></a>
|
||
|
<div class="quick-edit">
|
||
|
<ul class="nav nav-pills">
|
||
|
<% if can_edit_or_delete?(archive_exam) %>
|
||
|
<li><a href="/<%= I18n.locale.to_s %>/admin/archive_exam_files/<%= archive_exam.id.to_s %>/edit"><%= t(:edit) %></a></li>
|
||
|
<li><a href="/admin/archive_exam_files/<%= archive_exam.id.to_s %>" data-method="delete" data-confirm="Are you sure?"><%= t(:delete_) %></a></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td><%= format_value archive_exam.updated_at rescue nil %></td>
|
||
|
<td><%= User.find(archive_exam.update_user_id).user_name rescue nil %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<%=
|
||
|
content_tag :div, class: "bottomnav clearfix" do
|
||
|
content_tag :div, paginate(@archive_exams), class: "pagination pagination-centered"
|
||
|
end
|
||
|
%>
|