3235: Move filter-by-project to left side.
[arvados.git] / apps / workbench / app / views / application / _choose.html.erb
index 213890c2b3786f516896b54c07fab7398ef4af5f..4ee96df29f3fd93a52acf97954474f64fef8038d 100644 (file)
@@ -8,8 +8,7 @@
 
       <div class="modal-body">
         <div class="input-group">
-          <input type="text" class="form-control filterable-control" placeholder="Search" data-filterable-target=".modal.arv-choose .selectable-container"/>
-          <% if params[:by_project] %>
+          <% if params[:by_project] != false %>
             <div class="input-group-btn" data-filterable-target=".modal.arv-choose .selectable-container">
               <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                 Filter by project <span class="caret"></span>
               </ul>
             </div>
           <% end %>
+          <input type="text" class="form-control filterable-control focus-on-display" placeholder="Search" data-filterable-target=".modal.arv-choose .selectable-container"/>
         </div>
         <div style="height: 1em" />
+
+        <% preview_pane = (params[:preview_pane] != "false")
+           pane_col_class = preview_pane ? "col-sm-6" : "" %>
         <div class="row" style="height: 20em">
          <div class="col-sm-6 container arv-filterable-list selectable-container <%= 'multiple' if multiple %>"
               style="height: 100%; overflow-y: scroll"