You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a budget finished in the results page budgets/N/results the table only show "sucess" budget investments and hide the discarded ones.
What we need
Add a checkbox on Admin in /admin/budgets/N/budget_investments?filter=winners:
Show only winner budget investments If enabled hide discarded budget investments. Also shows a button to "Show All" budget investment on table results.
If the checkbox is enabled show all budget investments (hide button "Show all / Hide discarded" and "success / X" icons on table rows).
If the checkbox is disabled show as now (button to "Show all / Hide discarded" and "success / X" icons on table rows).
Why
This allows the order by "votes" to be used as the criteria for a winning budget investment regardless of the amount of money.
Screenshots
Admin checkbox
Checkbox disabled
Checkbox enabled
Notes & help
The conditions and CSS classes are in app/views/budgets/results/_results_table.html.erb lines 31 to 47:
Hi @decabeza
I've been away for a while but heading back to the project now and I see somethings have changed. So I was wondering, is this still applicable? If so how exactly do I get there? I'm not sure how to do it given the current dev seed. Thanks!
Background
When a budget finished in the results page
budgets/N/results
the table only show "sucess" budget investments and hide the discarded ones.What we need
Add a checkbox on Admin in
/admin/budgets/N/budget_investments?filter=winners
:Show only winner budget investments
If enabled hide discarded budget investments. Also shows a button to "Show All" budget investment on table results.
If the checkbox is enabled show all budget investments (hide button "Show all / Hide discarded" and "success / X" icons on table rows).
If the checkbox is disabled show as now (button to "Show all / Hide discarded" and "success / X" icons on table rows).
Why
This allows the order by "votes" to be used as the criteria for a winning budget investment regardless of the amount of money.
Screenshots
Admin checkbox
Checkbox disabled
Checkbox enabled
Notes & help
The conditions and CSS classes are in
app/views/budgets/results/_results_table.html.erb
lines 31 to 47:And button to show/hide budget investment on results views in
views/budgets/results/show.html.erb
lines 60 to 63:The text was updated successfully, but these errors were encountered: