Module: Decidim::Budgets::ApplicationHelper
- Includes:
- ProjectsHelper, CheckBoxesTreeHelper, Comments::CommentsHelper, PaginateHelper
- Defined in:
- app/helpers/decidim/budgets/application_helper.rb
Overview
Custom helpers, scoped to the budgets engine.
Instance Method Summary collapse
Methods included from ProjectsHelper
#budget_confirm_disabled_attr, #budget_to_currency, #budgets_select_tag, #current_order_budget_percent, #current_order_budget_percent_minimum, #current_order_can_be_checked_out?, #current_order_minimum_reached?, #current_rule_call_for_action_text, #current_rule_description, #filter_addition_type_values, #filter_sections, #has_position?, #project_data_for_map, #projects_data_for_map, #reference_budgets_for_select
Instance Method Details
#component_name ⇒ Object
23 24 25 |
# File 'app/helpers/decidim/budgets/application_helper.rb', line 23 def component_name (defined?(current_component) && translated_attribute(current_component&.name).presence) || t("decidim.components.budgets.name") end |
#filter_status_values ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/helpers/decidim/budgets/application_helper.rb', line 13 def filter_status_values TreeNode.new( TreePoint.new("", t("decidim.budgets.projects.filters.status_values.all")), [ TreePoint.new("selected", t("decidim.budgets.projects.filters.status_values.selected")), TreePoint.new("not_selected", t("decidim.budgets.projects.filters.status_values.not_selected")) ] ) end |