improves message when not enough money
This commit is contained in:
@@ -145,7 +145,7 @@ class Budget
|
||||
return :not_selected unless selected?
|
||||
return :no_ballots_allowed unless budget.balloting?
|
||||
return :different_heading_assigned unless ballot.valid_heading?(heading)
|
||||
return :not_enough_money if ballot.present? && !enough_money?(ballot)
|
||||
return :not_enough_money_html if ballot.present? && !enough_money?(ballot)
|
||||
end
|
||||
|
||||
def permission_problem(user)
|
||||
|
||||
@@ -50,8 +50,9 @@
|
||||
signup: link_to(t("votes.signup"), new_user_registration_path),
|
||||
my_heading: link_to(investment.heading.name,
|
||||
budget_investments_path(budget_id: investment.budget_id,
|
||||
heading_id: investment.heading_id))
|
||||
).html_safe %>
|
||||
heading_id: investment.heading_id)),
|
||||
change_ballot: link_to(t("budgets.ballots.reasons_for_not_balloting.change_ballot"),
|
||||
budget_ballot_path(@budget))).html_safe %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user