ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Toolbar::MiqWidgetSetCenter < ApplicationHelper::Toolbar::Basic
  button_group('db_vmdb', [
    select(
      :db_vmdb_choice,
      nil,
      t = N_('Configuration'),
      t,
      :items => [
        button(
          :db_edit,
          'pficon pficon-edit fa-lg',
          t = N_('Edit this Dashboard'),
          t),
        button(
          :db_copy,
          'pficon pficon-edit fa-lg',
          N_('Select a single Dashboard to copy'),
          N_('Copy Selected Dashboard'),
          :send_checked => true,
          :klass        => ApplicationHelper::Button::MiqWidgetSetCopy
        ),
        button(
          :db_delete,
          'pficon pficon-delete fa-lg',
          t = N_('Delete this Dashboard from the Database'),
          t,
          :url_parms => "&refresh=y",
          :confirm   => N_("Warning: This Dashboard and ALL of its components will be permanently removed!"),
          :klass     => ApplicationHelper::Button::DashboardDelete),
      ]
    ),
  ])
end