Extract helper methods for labels from filters/_filter_fields (#27574)
parent
186895fc88
commit
9b47c5d53c
@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module FiltersHelper
|
||||
def filter_action_label(action)
|
||||
safe_join(
|
||||
[
|
||||
t("simple_form.labels.filters.actions.#{action}"),
|
||||
content_tag(:span, t("simple_form.hints.filters.actions.#{action}"), class: 'hint'),
|
||||
]
|
||||
)
|
||||
end
|
||||
end
|
Loading…
Reference in new issue