Merge branch '3123-pipeline-report-job-submit-errors' closes #3123
[arvados.git] / apps / workbench / app / views / application / _choose.html.erb
1 <div class="modal arv-choose">
2   <div class="modal-dialog" style="width:80%">
3     <div class="modal-content">
4       <div class="modal-header">
5         <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">&times;</button>
6         <h4 class="modal-title"><%= params[:title] || "Choose #{@objects.first.andand.class_for_display}" %></h4>
7       </div>
8       <div class="modal-body">
9         <nav class="navbar navbar-default breadcrumbs" role="navigation">
10           <ul class="nav navbar-nav navbar-left">
11             <li class="dropdown">
12             <%= render partial: "projects_tree_menu", locals: {
13                   :project_link_to => Proc.new do |pnode, &block|
14                     link_to "#", {"class" => "chooser-show-project", "data-project-uuid" => pnode[:object].uuid }, &block
15                    end,
16                   :top_button => Proc.new do %>
17                     <% link_to "#", {"class" => "chooser-show-project btn btn-xs btn-default pull-right" } do %>
18                       All <%= controller.model_class.class_for_display.pluralize.downcase %>
19                     <% end %>
20                   <% end %>
21              <% } %>
22             </li>
23             <li class="nav-separator">
24               <i class="fa fa-lg fa-angle-double-right"></i>
25             </li>
26             <li><p class="navbar-text" id="chooser-breadcrumb">All <%= controller.model_class.class_for_display.pluralize.downcase %></span></li>
27           </ul>
28           <div class="navbar-form navbar-right">
29             <input type="text" class="form-control filterable-control" placeholder="Search" data-filterable-target=".modal.arv-choose .selectable-container"/>
30           </div>
31         </nav>
32
33         <div class="row" style="height: 20em">
34           <div class="col-sm-6 container-fluid arv-filterable-list selectable-container"
35                style="height: 100%; overflow-y: scroll"
36                data-infinite-scroller="#choose-scroll"
37                id="choose-scroll"
38                data-infinite-content-href="<%= @next_page_href %>">
39             <%= render partial: 'choose_rows', locals: {multiple: multiple} %>
40           </div>
41           <div class="col-sm-6 modal-dialog-preview-pane" style="height: 100%; overflow-y: scroll">
42           </div>
43         </div>
44
45         <div class="modal-footer">
46           <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
47           <button class="btn btn-primary" aria-hidden="true" data-enable-if-selection disabled><%= raw(params[:action_name]) || 'Select' %></button>
48           <div class="modal-error hide" style="text-align: left; margin-top: 1em;">
49           </div>
50         </div>
51       </div>
52     </div>
53   </div>
54 </div>