ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/application_helper/toolbar/service/policy_mixin.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ApplicationHelper::Toolbar::Service::PolicyMixin
  def self.included(included_class)
    included_class.button_group('service_policy', [
      included_class.select(
        :service_policy_choice,
        nil,
        t = N_('Policy'),
        t,
        :enabled => false,
        :onwhen  => "1+",
        :items   => [
          included_class.button(
            :service_tag,
            'pficon pficon-edit fa-lg',
            N_('Edit tags for the selected Items'),
            N_('Edit Tags'),
            :url_parms    => "main_div",
            :send_checked => true,
            :enabled      => false,
            :onwhen       => "1+"),
        ]
      ),
    ])
  end
end