<commit_before>- message = n_("1 Instance to be Evacuated", "%{amount} Instances to be Evacuated", @evacuate_items.length) % {:amount => @evacuate_items.length}
- form_id = @evacuate_items.length == 1 ? @evacuate_items[0].id : ''
%vm-cloud-evacuate-form{'record-id' => form_id}
%hr
  %div
    %h3
      = message
    - if @evacuate_items
      - @embedded = true
      - @quadicon_no_url = true
      = render :partial => "layouts/gtl"
- unless @explorer
  %table{:width => '100%'}
    %tr
      %td{:align => 'right'}
        #buttons_on
          = button_tag(t = _('Submit'),
            :class   => "btn btn-primary",
            :alt     => t,
            :title   => t,
            :onclick => "miqAjaxButton('#{url_for_only_path(:action => "evacuate_vm", :button => "submit")}');")
          = button_tag(t = _('Cancel'),
            :class   => "btn btn-default",
            :alt     => t,
            :title   => t,
            :onclick => "miqAjaxButton('#{url_for_only_path(:action => "evacuate_vm", :button => "cancel")}');")
:javascript
  miq_bootstrap('vm-cloud-evacuate-form');<commit_msg>Use pagingDivButtonGroupController, remove buttons for non-explorer because it never happens<commit_after>- message = n_("1 Instance to be Evacuated", "%{amount} Instances to be Evacuated", @evacuate_items.length) % {:amount => @evacuate_items.length}
- form_id = @evacuate_items.length == 1 ? @evacuate_items[0].id : ''
%vm-cloud-evacuate-form{'record-id' => form_id}
%div_for_paging{'ng-controller'                    => "pagingDivButtonGroupController",
                'paging_div_buttons_state_enabled' => true,
                'paging_div_buttons_id'            => "angular_paging_div_buttons",
                'paging_div_buttons_type'          => "Submit"}
  %hr
    %div
      %h3
        = message
      - if @evacuate_items
        - @embedded = true
        - @quadicon_no_url = true
        = render :partial => "layouts/gtl"
:javascript
  miq_bootstrap('vm-cloud-evacuate-form');
  miq_bootstrap('div_for_paging');
{'fraction_non_alphanumeric': 0.15494343334972946, 'fraction_numerical': 0.0054107230693556324, 'mean_word_length': 2.6847826086956523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '2635066', 'n_tokens_mistral': 698, 'n_tokens_neox': 685, 'n_words': 125}