app/helpers/application_helper/toolbar/workflows_center.rb
class ApplicationHelper::Toolbar::WorkflowsCenter < ApplicationHelper::Toolbar::Basic
button_group('workflows_policy', [
select(
:workflows_configuration,
nil,
t = N_('Configuration'),
t,
:items => [
button(
:embedded_configuration_script_payload_map_credentials,
'pficon pficon-edit fa-lg',
t = N_('Map Credentials to this Workflow'),
t,
:klass => ApplicationHelper::Button::EmbeddedWorkflow,
:enabled => false,
:onwhen => "1",
:url_parms => "edit_div",
:send_checked => true
),
]
),
select(
:workflows_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 Workflows'),
N_('Edit Tags'),
:url_parms => "main_div",
:send_checked => true,
:enabled => false,
:onwhen => "1+"
),
]
)
])
end