12125: 404 page searches owners to find actual trashed object.
[arvados.git] / apps / workbench / app / views / trash_items / _show_trashed_collections.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <div class="container selection-action-container" style="width: 100%">
6   <div class="col-md-2 pull-left">
7     <div class="btn-group btn-group-sm">
8       <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
9       <ul class="dropdown-menu" role="menu">
10         <li><%= link_to "Un-trash selected items", '#',
11                 method: :post,
12                 remote: true,
13                 'id' => 'untrash_selected_items',
14                 'data-href' => untrash_items_trash_items_path,
15                 'data-selection-param-name' => 'selection[]',
16                 'data-selection-action' => 'untrash-selected-items',
17                 'data-toggle' => 'dropdown'
18           %></li>
19       </ul>
20     </div>
21   </div>
22   <div class="col-md-4 pull-right">
23     <input type="text" class="form-control filterable-control recent-trash-items"
24            placeholder="Search trash"
25            data-filterable-target="#recent-collection-trash-items"
26            value="<%= params[:search] %>" />
27   </div>
28
29   <div>
30     <table id="trash-index" class="topalign table table-condensed table-fixedlayout">
31       <colgroup>
32         <col width="5%" />
33         <col width="16%" />
34         <col width="25%" />
35         <col width="20%" />
36         <col width="29%" />
37         <col width="5%" />
38       </colgroup>
39
40       <thead>
41         <tr class="contain-align-left">
42           <th></th>
43           <th>Name</th>
44           <th>Parent project</th>
45           <th>Date&nbsp;trashed&nbsp;/<br />to&nbsp;be&nbsp;deleted</th>
46           <th>UUID&nbsp;/<br />Content&nbsp;address&nbsp;(PDH)</th>
47           <th></th>
48         </tr>
49       </thead>
50
51       <tbody data-infinite-scroller="#recent-collection-trash-items" id="recent-collection-trash-items"
52         data-infinite-content-href="<%= url_for partial: :trashed_collection_rows %>" >
53       </tbody>
54     </table>
55   </div>
56 </div>