ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
class ApplicationHelper::Toolbar::ServicetemplatecatalogCenter < ApplicationHelper::Toolbar::Basic
  button_group('st_catalog_vmdb', [
    select(
      :st_catalog_vmdb_choice,
      nil,
      t = N_('Configuration'),
      t,
      :onwhen => "1+",
      :items  => [
        button(
          :st_catalog_edit,
          'pficon pficon-edit fa-lg',
          t = N_('Edit this Item'),
          t,
          :url_parms    => "main_div",
          :send_checked => true),
        button(
          :st_catalog_delete,
          'pficon pficon-delete fa-lg',
          N_('Remove this Catalog'),
          N_('Remove Catalog'),
          :url_parms    => "main_div",
          :send_checked => true,
          :confirm      => N_("Warning: This Catalog will be permanently removed!")),
      ]
    ),
  ])
end