ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/application_helper/toolbar/ansible_playbooks_center.rb

Summary

Maintainability
A
20 mins
Test Coverage
A
100%
class ApplicationHelper::Toolbar::AnsiblePlaybooksCenter < ApplicationHelper::Toolbar::Basic
  button_group('ansible_playbooks_policy', [
                 select(
                   :ansible_playbooks_policy_choice,
                   nil,
                   t = N_('Policy'),
                   t,
                   :enabled => false,
                   :onwhen  => "1+",
                   :items   => [
                     button(
                       :embedded_configuration_script_payload_tag,
                       'pficon pficon-edit fa-lg',
                       N_('Edit Tags for the selected Ansible Playbooks'),
                       N_('Edit Tags'),
                       :url_parms    => "main_div",
                       :send_checked => true,
                       :enabled      => false,
                       :onwhen       => "1+"
                     ),
                   ]
                 )
               ])
end