<commit_before>= render :partial => "layouts/flash_msg"

%h3
  = _('Basic Information')
.form-horizontal.static
  .form-group
    %label.control-label.col-md-2
      = _('Button Text')
    .col-md-8
      = @custom_button.name
      - display = @custom_button.options.key?(:display) ? @custom_button.options[:display] : true
      &nbsp;
      .checkbox-inline
        %label{:style => "font-weight: normal"}
          = check_box_tag(display, true, display, :disabled => true)
          = _('Display on Button')

  .form-group
    %label.control-label.col-md-2
      = _('Button Hover Text')
    .col-md-8
      = @custom_button.description
  .form-group
    %label.control-label.col-md-2
      = _('Image')
    .col-md-8
      %span{:class => "miq-custom-button-#{@custom_button.options[:button_image]}"}
  .form-group
    %label.control-label.col-md-2
      = _('Dialog')
    .col-md-8
      = h(@sb[:dialog_label])
  .form-group
    %label.control-label.col-md-2
      = _('Open URL')
    .col-md-8
      = h(@custom_button.options.key?(:open_url) ? @custom_button.options[:open_url] : false)
  .form-group
    %label.control-label.col-md-2
      = _('Display for')
    .col-md-8
      = @custom_button.options[:display_for]
  .form-group
    %label.control-label.col-md-2
      = _('Submit')
    .col-md-8
      = @custom_button.options[:submit_how]
%hr

%h3
  = _('Object Details')<commit_msg>CustomButtons: nice strings for display_for and submit_how.<commit_after>= render :partial => "layouts/flash_msg"

%h3
  = _('Basic Information')
.form-horizontal.static
  .form-group
    %label.control-label.col-md-2
      = _('Button Text')
    .col-md-8
      = @custom_button.name
      - display = @custom_button.options.key?(:display) ? @custom_button.options[:display] : true
      &nbsp;
      .checkbox-inline
        %label{:style => "font-weight: normal"}
          = check_box_tag(display, true, display, :disabled => true)
          = _('Display on Button')

  .form-group
    %label.control-label.col-md-2
      = _('Button Hover Text')
    .col-md-8
      = @custom_button.description
  .form-group
    %label.control-label.col-md-2
      = _('Image')
    .col-md-8
      %span{:class => "miq-custom-button-#{@custom_button.options[:button_image]}"}
  .form-group
    %label.control-label.col-md-2
      = _('Dialog')
    .col-md-8
      = h(@sb[:dialog_label])
  .form-group
    %label.control-label.col-md-2
      = _('Open URL')
    .col-md-8
      = h(@custom_button.options.key?(:open_url) ? @custom_button.options[:open_url] : false)
  .form-group
    %label.control-label.col-md-2
      = _('Display for')
    .col-md-8
      - display_how_map = {'single' => _('Single entity'), 'list' => _('List'), 'both' => _('Single and list')}
      = display_how_map[@custom_button.options[:display_for]]
  .form-group
    %label.control-label.col-md-2
      = _('Submit')
    .col-md-8
      - submit_how_map = { 'all' => _('Submit all'), 'one' => _('One by one') }
      = submit_how_map[@custom_button.options[:submit_how]]
%hr

%h3
  = _('Object Details')
{'fraction_non_alphanumeric': 0.176930596285435, 'fraction_numerical': 0.010426849136526556, 'mean_word_length': 2.633136094674556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '4658611', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1112, 'n_words': 167}