<commit_before>#ab_form
  #policy_bar
    - if @resolve[:uri] && Hash[*@resolve[:target_classes].flatten].invert[@resolve[:new][:target_class]] == @edit[:new][:target_class]

      %li
        - t = _("Paste object details for use in a Button.")
        = link_to(image_tag(image_path('toolbars/paste.png'), :border => "0", :class  => "", :alt => t),
          {:action => "resolve", :button => "paste"},
          "data-miq_sparkle_on"  => true,
          "data-miq_sparkle_off" => true,
          :remote                => true,
          "data-method"          => :post,
          :title                 => t)
    - else
      = image_tag(image_path('toolbars/paste.png'),
        :class => "dimmed",
        :title => _("Paste is not available, no object information has been copied from the Simulation screen"))
  = render :partial => "layouts/flash_msg"

  #custom_button_tabs
    %ul.nav.nav-tabs
      = miq_tab_header('ab_options_tab', @sb[:active_tab]) do
        = _('Options')
      = miq_tab_header('ab_advanced_tab', @sb[:active_tab]) do
        = _('Advanced')
    .tab-content<commit_msg>Change the paste image with a fonticon in custom button forms<commit_after>#ab_form
  #policy_bar
    - if @resolve[:uri] && Hash[*@resolve[:target_classes].flatten].invert[@resolve[:new][:target_class]] == @edit[:new][:target_class]
      = link_to({:action => "resolve", :button => "paste"},
        "data-miq_sparkle_on"  => true,
        "data-miq_sparkle_off" => true,
        :remote                => true,
        "data-method"          => :post,
        :class                 => 'btn btn-default',
        :title                 => _("Paste object details for use in a Button.")) do
        %i.fa.fa-clipboard
    - else
      %button.btn.btn-default.disabled{:title => _("Paste is not available, no object information has been copied from the Simulation screen")}
        %i.fa.fa-clipboard
  = render :partial => "layouts/flash_msg"

  #custom_button_tabs
    %ul.nav.nav-tabs
      = miq_tab_header('ab_options_tab', @sb[:active_tab]) do
        = _('Options')
      = miq_tab_header('ab_advanced_tab', @sb[:active_tab]) do
        = _('Advanced')
    .tab-content
{'fraction_non_alphanumeric': 0.1586428243924805, 'fraction_numerical': 0.0004585052728106373, 'mean_word_length': 2.553745928338762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, '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': '1550100', 'n_tokens_mistral': 717, 'n_tokens_neox': 697, 'n_words': 141}