9587: test /trash page
[arvados.git] / apps / workbench / app / views / trash_items / _show_trash_items.html.erb
1 <div class="container selection-action-container" style="width: 100%">
2   <div class="col-md-2 pull-left">
3     <div class="btn-group btn-group-sm">
4       <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
5       <ul class="dropdown-menu" role="menu">
6         <li><%= link_to "Un-trash selected items", '#',
7                 method: :post,
8                 remote: true,
9                 'id' => 'untrash_selected_items',
10                 'data-href' => untrash_items_trash_items_path,
11                 'data-selection-param-name' => 'selection[]',
12                 'data-selection-action' => 'untrash-selected-items',
13                 'data-toggle' => 'dropdown'
14           %></li>
15       </ul>
16     </div>
17   </div>
18   <div class="col-md-4 pull-right">
19     <input type="text" class="form-control filterable-control recent-trash-items"
20            placeholder="Search trash"
21            data-filterable-target="#recent-trash-items"
22            value="<%= params[:search] %>" />
23   </div>
24
25   <div>
26     <table id="trash-index" class="topalign table table-condensed table-fixedlayout">
27       <colgroup>
28         <col width="5%" />
29         <col width="20%" />
30         <col width="15%" />
31         <col width="15%" />
32         <col width="40%" />
33         <col width="5%" />
34       </colgroup>
35
36       <thead>
37         <tr class="contain-align-left">
38           <th></th>
39           <th>Name</th>
40           <th>Created at</th>
41           <th>Trashed at</th>
42           <th>Contents</th>
43           <th></th>
44         </tr>
45       </thead>
46
47       <tbody data-infinite-scroller="#recent-trash-items" id="recent-trash-items"
48         data-infinite-content-href="<%= url_for partial: :trash_rows %>" >
49       </tbody>
50     </table>
51   </div>
52 </div>