ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Toolbar::StackOrchestrationTemplateCenter < ApplicationHelper::Toolbar::Basic
  button_group('stack_orchestration_template_vmdb', [
    select(
      :stack_orchestration_template_vmdb_choice,
      nil,
      t = N_('Configuration'),
      t,
      :items => [
        button(
          :make_ot_orderable,
          'pficon pficon-edit fa-lg',
          t = N_('Make the Orchestration Template orderable'),
          t,
          :klass => ApplicationHelper::Button::OrchestrationTemplateOrderable),
        button(
          :orchestration_template_copy,
          'fa fa-files-o fa-lg',
          t = N_('Copy this Orchestration Template as orderable'),
          t,
          :klass => ApplicationHelper::Button::OrchestrationTemplateOrderable),
        button(
          :orchestration_templates_view,
          'pficon pficon-info fa-lg',
          t = N_('View this Orchestration Template in Catalogs'),
          t,
          :klass => ApplicationHelper::Button::OrchestrationTemplateViewInCatalog),
      ]
    )
  ])
end