1 <div class="modal arv-choose modal-with-loading-spinner">
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">×</button>
6 <h4 class="modal-title"><%= params[:title] || "Choose #{@objects.first.andand.class_for_display}" %></h4>
9 <div class="modal-body">
10 <div class="input-group">
11 <% if params[:by_project] != false %>
12 <div class="input-group-btn" data-filterable-target=".modal.arv-choose .selectable-container">
13 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
14 All projects <span class="caret"></span>
16 <ul class="dropdown-menu" role="menu">
18 <%= link_to '#', class: 'chooser-show-project' do %>
22 <li class="divider" />
23 <%= render partial: "projects_tree_menu", locals: {
24 :project_link_to => Proc.new do |pnode, &block|
26 class: "chooser-show-project",
27 data: {'project_uuid' => pnode[:object].uuid},
35 <input type="text" class="form-control filterable-control focus-on-display" placeholder="Search" data-filterable-target=".modal.arv-choose .selectable-container"/>
37 <div style="height: 1em" />
39 <% preview_pane = (params[:preview_pane] != "false")
40 pane_col_class = preview_pane ? "col-sm-6" : "" %>
41 <div class="row" style="height: 20em">
42 <div class="col-sm-6 container arv-filterable-list selectable-container <%= 'multiple' if multiple %>"
43 style="height: 100%; overflow-y: scroll"
44 data-infinite-scroller="#choose-scroll"
46 data-infinite-content-href="<%= next_page_href partial: true %>"
47 data-infinite-content-href0="<%= url_for partial: true %>">
48 <%= render partial: 'choose_rows' %>
50 <div class="col-sm-6 modal-dialog-preview-pane" style="height: 100%; overflow-y: scroll">
54 <div class="modal-footer">
55 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
56 <button class="btn btn-primary" aria-hidden="true" data-enable-if-selection disabled><%= raw(params[:action_name]) || 'Select' %></button>
57 <div class="modal-error hide" style="text-align: left; margin-top: 1em;">