42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
|
<table class="table main-list">
|
||
|
<thead>
|
||
|
<tr class="sort-header">
|
||
|
<% @table_fields.each do |f| %>
|
||
|
<%= thead(f) %>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @marquees.each do |marquee| %>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<a href="<%= admin_text_marquee_path(marquee) %>"><%= marquee.title %></a>
|
||
|
<div class="quick-edit">
|
||
|
<ul class="nav nav-pills">
|
||
|
<% if can_edit_or_delete?(marquee) %>
|
||
|
<li><a href="#"
|
||
|
data-title="<%= t(:edit) %>"
|
||
|
data-id="<%= marquee.id.to_s %>"
|
||
|
data-form='<%= {"name" => marquee.title,"marquee_category_id" => marquee.category_id.to_s}.to_json %>'
|
||
|
class="open-slide edit-marquee">
|
||
|
<%= t(:edit) %>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li><a href="#" class="delete text-error" rel="/admin/text_marquees/<%=marquee.id.to_s%>"><%= t(:delete_) %></a></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td>
|
||
|
<%= marquee.category.title %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<%=
|
||
|
content_tag :div, class: "bottomnav clearfix" do
|
||
|
content_tag :div, paginate(@marquees), class: "pagination pagination-centered"
|
||
|
end
|
||
|
%>
|