<commit_before>- url = url_for(:action => 'group_form_field_changed', :id => "#{@custom_button_set.id || 'new'}")
#group_form_div{:style => "width: 100%; height: 100%; overflow: auto;"}
  = render :partial => "layouts/flash_msg"
  %h3
    = _('Basic Info')
  %table.style1
    %tr
      %td.key
        = _('Button Group Text')
      %td
        = text_field_tag("name", @edit[:new][:name],
          :maxlength         => 15,
          "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
        &nbsp;
        = check_box_tag("display", "1", @edit[:new][:display],
          "data-miq_observe_checkbox" => {:url => url}.to_json)
        &nbsp;
        = _('Display on Button')
      - unless is_browser_ie?
        = javascript_tag(javascript_focus('name'))
    %tr
      %td.key
        = _('Button Group Hover Text')
      %td.wide
        = text_field_tag("description", @edit[:new][:description],
          :maxlength         => 30,
          "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
    %tr
      %td.key
        = _('Button Group Image')
      %td
        #form-group
        = select_tag('button_image',
            options_for_select([["No Image", nil]] + @edit[:new][:button_images], @edit[:new][:button_image].to_s),
            :class  => "selectpicker")

  - if x_active_tree == :ab_tree || (x_active_tree == :sandt_tree && @edit[:rec_id])
    %hr
    %h3
      = _('Assign Buttons')
    = render :partial => "shared/buttons/column_lists"
:javascript
  miqInitSelectPicker();
  miqSelectPickerEvent("button_image", "#{url}")<commit_msg>Style1 to patternfly in Buttons-AddGroup<commit_after>- url = url_for(:action => 'group_form_field_changed', :id => "#{@custom_button_set.id || 'new'}")
#group_form_div{:style => "width: 100%; height: 100%; overflow: auto;"}
  = render :partial => "layouts/flash_msg"
  %h3
    = _('Basic Info')
  .form-horizontal
    .form-group
      %label.control-label.col-md-2
        = _('Button Group Text')
      .col-md-6
        = text_field_tag("name", @edit[:new][:name],
                        :maxlength         => 15,
                        :class             => "form-control",
                        "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
      %label.checkbox-inline
        = check_box_tag("display", "1", @edit[:new][:display],
                        "data-miq_observe_checkbox" => {:url => url}.to_json)
        = _('Display on Button')
      - unless is_browser_ie?
        = javascript_tag(javascript_focus('name'))
    .form-group
      %label.control-label.col-md-2
        = _('Button Group Hover Text')
      .col-md-8
        = text_field_tag("description", @edit[:new][:description],
                        :maxlength         => 30,
                        :class             => "form-control",
                        "data-miq_observe" => {:interval => '.5', :url => url}.to_json)
    .form-group
      %label.control-label.col-md-2
        = _('Button Group Image')
      .col-md-8
        #form-group
        = select_tag('button_image',
                      options_for_select([["No Image", nil]] + @edit[:new][:button_images], @edit[:new][:button_image].to_s),
                      :class  => "selectpicker")
        :javascript
          miqInitSelectPicker();
          miqSelectPickerEvent('button_image', '#{url}')

  - if x_active_tree == :ab_tree || (x_active_tree == :sandt_tree && @edit[:rec_id])
    %hr
    %h3
      = _('Assign Buttons')
    = render :partial => "shared/buttons/column_lists"
:javascript
  miqInitSelectPicker();
  miqSelectPickerEvent("button_image", "#{url}")
{'fraction_non_alphanumeric': 0.17319360176503035, 'fraction_numerical': 0.010479867622724766, 'mean_word_length': 2.3214285714285716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '4731152', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1170, 'n_words': 206}