<%= form_for :assets, :url => delete_admin_assets_path(:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]), :html => {:id => 'delete_all'}, :remote => true do %>
	<%= render 'filter' %>
	<table id="asset_sort_list" class="table main-list">
		<thead>
			<tr>
        <th class="span1"></th>
        <th class="span4"></th>
        <th class="span1-2"></th>
        <th class="span1-2"></th>
        <th class="span1-2"></th>
        <th class="span1-2"></th>
        <th class="span1-2"></th>
			</tr>
		</thead>
		<tbody id="tbody_assets" class="sort-holder">
			<%= render :partial => 'asset', :collection => @assets %>
		</tbody>
	</table>
<% end %>

<div class="form-actions form-fixed pagination-right">
	<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('admin.add'), new_admin_asset_path, :remote => true, :class => 'btn btn-primary pull-right' %>
	<div id="asset_pagination" class="paginationFixed">
		<%= paginate @assets, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]}, :remote => true %>
	</div>
</div>

<% content_for :page_specific_javascript do %>
	<%= javascript_include_tag "/static/jquery.cycle.all.latest.js" %>
	<%= javascript_include_tag "inc/modal-preview" %>
<% end %>