Add approval voting to budgets

Co-Authored-By: Javi Martín <javim@elretirao.net>
This commit is contained in:
Ziyan Junaideen
2020-07-16 17:23:16 +02:00
committed by Javi Martín
parent 009c33d4e5
commit 1e3e8c1304
34 changed files with 368 additions and 38 deletions

View File

@@ -3,6 +3,12 @@ module BudgetsHelper
["balloting", "reviewing_ballots", "finished"].include? budget.phase
end
def budget_voting_styles_select_options
Budget::VOTING_STYLES.map do |style|
[Budget.human_attribute_name("voting_style_#{style}"), style]
end
end
def heading_name_and_price_html(heading, budget)
tag.div do
concat(heading.name + " ")