<commit_before>#column_lists
  %table.form#formtest{:width => "100%"}
    %tr
      %td.widthed{:align => "left"}= _('Unassigned:')
      %td
      %td{:align => "left"}= _('Selected:')
    %tr
      %td{:align => "right", :valign => "top"}
        = select_tag("available_fields[]",
                     options_for_select(@edit[:new][:available_fields]),
                     :multiple => true,
                     :style    => "width: 450px",
                     :size     => 8,
                     :id       => "available_fields")
      %td{:width => "30", :valign => "middle"}
        - if @edit[:new][:available_fields].length == 0
          = image_tag(image_path('toolbars/right.png'), :class => "dimmed rollover small")
        - else
          = link_to(image_tag(image_path('toolbars/right.png'),
                              :class => "rollover small",
                              :alt   => _("Move Selected fields right")),
                    {:action => "st_catalog_form_field_changed",
                     :button => "right",
                     :id     => "#{@edit[:rec_id] || "new"}"},
                    "data-submit" => "column_lists",
                    :remote       => true,
                    "data-method" => :post,
                    :title        => _("Move Selected buttons right"))
        - if @edit[:new][:fields].length == 0
          = image_tag(image_path('toolbars/left.png'),
                      :class => "dimmed rollover small")
        - else
          = link_to(image_tag(image_path('toolbars/left.png'),
                              :class => "rollover small",
                              :alt   => _("Move Selected fields left")),
                    {:action => "st_catalog_form_field_changed",
                     :button => "left",
                     :id     => "#{@edit[:rec_id] || "new"}"},
                    "data-submit" => "column_lists",
                    :remote       => true,
                    "data-method" => :post,
                    :title        => _("Move Selected buttons left"))
      %td{:align => "left", :valign => "top"}
        = select_tag("selected_fields[]",
                     options_for_select(@edit[:new][:fields], @selected),
                     :multiple => true,
                     :style    => "width: 450px",
                     :size     => 8,
                     :id       => "selected_fields")
<commit_msg>replace "Assign Catalog Items" images with font icons (transferred from ManageIQ/manageiq@a3c5901089bcd6b7335b7ca1cc40a40c994902ba)<commit_after>#column_lists
  - url = url_for(:action => 'st_catalog_form_field_changed', :id => "#{@edit[:rec_id] || "new"}")
  %table.form#formtest{:width => "100%"}
    %tr
      %td.widthed{:align => "left"}= _('Unassigned:')
      %td
      %td{:align => "left"}= _('Selected:')
    %tr
      %td{:align => "right", :valign => "top"}
        = select_tag("available_fields[]",
                     options_for_select(@edit[:new][:available_fields]),
                     :multiple => true,
                     :style    => "width: 450px",
                     :size     => 8,
                     :id       => "available_fields")
      %td.text-center{:width => "40"}
        .btn-group-vertical
          - if @edit[:new][:available_fields].length == 0
            %button.btn.btn-default.btn-disabled
              %i.fa.fa-angle-right.fa-lg
          - else
            - t = _("Move Selected buttons right")
            %button.btn.btn-default{:title => t,
              "data-submit"         => 'column_lists',
              "data-miq_sparkle_on" => true,
              :remote               => true,
              "data-method"         => :post,
              'data-click_url'      => {:url => "#{url}?button=right"}.to_json}
              %i.fa.fa-angle-right.fa-lg

          - if @edit[:new][:fields].length == 0
            %button.btn.btn-default.btn-disabled
              %i.fa.fa-angle-left.fa-lg
          - else
            - t = _("Move Selected buttons left")
            %button.btn.btn-default{:title => t,
              "data-submit"         => 'column_lists',
              "data-miq_sparkle_on" => true,
              :remote               => true,
              "data-method"         => :post,
              'data-click_url'      => {:url => "#{url}?button=left"}.to_json}
              %i.fa.fa-angle-left.fa-lg



      %td{:align => "left", :valign => "top"}
        = select_tag("selected_fields[]",
                     options_for_select(@edit[:new][:fields], @selected),
                     :multiple => true,
                     :style    => "width: 450px",
                     :size     => 8,
                     :id       => "selected_fields")

{'fraction_non_alphanumeric': 0.1617802151444843, 'fraction_numerical': 0.01160092807424594, 'mean_word_length': 1.443070582174137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 72, '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': '6803051', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1342, 'n_words': 231}