<commit_before>- url = url_for_only_path(:action => 'export_field_changed')
= render :partial => "layouts/flash_msg"

%h2
  = _('Custom Reports')
%h3
  = _('Import')
#import_div
  = form_tag({:action    => "upload",
              :typ       => "import",
              :dbtype    => @sb[:dbtype]},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    - overwrite = @sb[:overwrite] ? true : false
    .form-group
      .col-md-8
        = check_box_tag("overwrite", "1", overwrite)
        = _('Overwrite existing reports?')
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "upload", :method => "file"}
      .col-md-6
        = submit_tag(_("Upload"), :class => "btn btn-default", :id => "upload_atags", :disabled => true)
        :javascript
          $("#upload_file").on("change", function() {
            ImportSetup.setUpUploadImportButton('#upload_atags')
          });

%hr
%h3
  = _('Export')

.form-horizontal
  .form-group
    %label.control-label.col-md-2
      = _('Available Custom Reports:')
    .col-md-8
      %div{:style => "overflow: auto; width: 400px; border: 1px solid #999999;"}
        = select_tag('choices_chosen',
          options_for_select(@export_reports.sort),
          :size              => 15,
          :style             => "width:400px; min-width:375px; background-color:#fff; border: 0px;",
          :multiple          => true)

        :javascript
          miqInitSelectPicker();
          miqSelectPickerEvent("choices_chosen", "#{url}");
          $('#choices_chosen').on("change",
            function() {
              if ($(this).val()) {
                $('#export_button').removeClass('disabled');
              } else {
                $('#export_button').addClass('disabled');
              }
            });<commit_msg>Unembed Custom Report Export select to hide the unnecessary scrollbar<commit_after>- url = url_for_only_path(:action => 'export_field_changed')
= render :partial => "layouts/flash_msg"

%h2
  = _('Custom Reports')
%h3
  = _('Import')
#import_div
  = form_tag({:action    => "upload",
              :typ       => "import",
              :dbtype    => @sb[:dbtype]},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    - overwrite = @sb[:overwrite] ? true : false
    .form-group
      .col-md-8
        = check_box_tag("overwrite", "1", overwrite)
        = _('Overwrite existing reports?')
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "upload", :method => "file"}
      .col-md-6
        = submit_tag(_("Upload"), :class => "btn btn-default", :id => "upload_atags", :disabled => true)
        :javascript
          $("#upload_file").on("change", function() {
            ImportSetup.setUpUploadImportButton('#upload_atags')
          });

%hr
%h3
  = _('Export')

.form-horizontal
  .form-group
    %label.control-label.col-md-2
      = _('Available Custom Reports:')
    .col-md-8
      = select_tag('choices_chosen',
        options_for_select(@export_reports.sort),
        :size              => 15,
        :style             => "width:400px; background-color:#fff; border: 1px solid #999999;",
        :multiple          => true)

      :javascript
        miqInitSelectPicker();
        miqSelectPickerEvent("choices_chosen", "#{url}");
        $('#choices_chosen').on("change",
          function() {
            if ($(this).val()) {
              $('#export_button').removeClass('disabled');
            } else {
              $('#export_button').addClass('disabled');
            }
          });
{'fraction_non_alphanumeric': 0.1688068485821295, 'fraction_numerical': 0.013108614232209739, 'mean_word_length': 2.084983498349835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3394428', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1130, 'n_words': 207}