Module: Decidim::Budgets::ApplicationHelper

Includes:
ProjectsHelper, CheckBoxesTreeHelper, Comments::CommentsHelper, PaginateHelper
Defined in:
decidim-budgets/app/helpers/decidim/budgets/application_helper.rb

Overview

Custom helpers, scoped to the budgets engine.

Instance Method Summary collapse

Methods included from CheckBoxesTreeHelper

#check_boxes_tree_options, #filter_categories_values, #filter_origin_values, #filter_scopes_values, #filter_scopes_values_from, #filter_scopes_values_from_parent, #filter_tree_from, #resource_filter_scope_values, #scope_children_to_tree

Methods included from ProjectsHelper

#budget_confirm_disabled_attr, #budget_to_currency, #current_order_budget_percent, #current_order_budget_percent_minimum, #current_order_can_be_checked_out?, #current_rule_description, #current_rule_explanation

Methods included from Comments::CommentsHelper

#comments_for, #inline_comments_for

Methods included from PaginateHelper

#decidim_paginate

Instance Method Details

#filter_status_valuesObject


13
14
15
16
17
18
19
20
21
# File 'decidim-budgets/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