-<%= render partial: "paging", locals: {results: @collections, object: @object} %>
+<div class="selection-action-container" style="padding-left: 1em">
+ <div class="row">
+ <div class="pull-left">
+ <div class="btn-group btn-group-sm">
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
+ <ul class="dropdown-menu" role="menu">
+ <li><%= link_to "Create new collection with selected collections", '#',
+ method: :post,
+ 'data-href' => combine_selected_path,
+ 'data-selection-param-name' => 'selection[]',
+ 'data-selection-action' => 'combine-collections',
+ 'data-toggle' => 'dropdown'
+ %></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <p/>
+
+<%= render partial: "paging", locals: {results: @objects, object: @object} %>
<div style="padding-right: 1em">
<table id="collections-index" class="topalign table table-condensed table-fixedlayout"> <!-- table-fixed-header-row -->
<colgroup>
- <col width="8%" />
<col width="10%" />
- <col width="34%" />
- <col width="11%" />
- <col width="29%" />
+ <col width="10%" />
+ <col width="40%" />
+ <col width="10%" />
+ <col width="30%" />
</colgroup>
<thead>
<tr class="contain-align-left">
</div>
-<%= render partial: "paging", locals: {results: @collections, object: @object} %>
+<%= render partial: "paging", locals: {results: @objects, object: @object} %>
<% content_for :footer_js do %>
$(document).on('click', 'form[data-remote] input[type=submit]', function() {
return true;
});
<% end %>
+
+</div>