kikito
84418bd671
Fixes issue in has_orders concern
2016-12-25 22:58:21 +01:00
kikito
adaa4731aa
Uses complete path for partial
2016-12-25 12:57:15 +01:00
kikito
f1a550bdb0
Allows rendering budget investment header when the @heading variable is not set up
2016-12-25 12:57:01 +01:00
kikito
2815b28cd1
changes header message to include assigned heading link
2016-12-25 12:56:31 +01:00
kikito
9af8eb8d52
Changes i18n namespace for errors
2016-12-25 12:55:39 +01:00
kikito
53233c365a
Adds a new reason for not being ballotable
2016-12-25 12:55:03 +01:00
kikito
e15377b7d8
Load @assigned_heading in addition to loading @heading
2016-12-25 12:54:48 +01:00
kikito
ef0acaf20f
Only creates ballot when budget balloting
2016-12-25 12:54:32 +01:00
kikito
3fd1993f74
only creates ballots when budget balloting
2016-12-25 12:54:07 +01:00
kikito
03ef20bfde
Merges orders_helper functionality inside has_orders concern
...
Both these objects where using/setting a variable called valid_orders.
As a results, some specs where becoming flacky
(features/budgets/investments_spec.rb, balloting phase). By putting
them together, there is no `valid_orders` variable any more (everything
is @valid_orders) and the flackyness is gone.
2016-12-24 14:42:46 +01:00
kikito
bbb8ac830c
Fixes erroneous i18n param in view
2016-12-23 18:37:02 +01:00
kikito
de1ade0eb8
Fixes erroneous link in view
2016-12-23 18:36:42 +01:00
kikito
615217e36e
Fixes errors in header view
2016-12-23 15:37:55 +01:00
kikito
a589d8a76d
Simplifies ballot.add_investment using automatic denormalization
2016-12-23 15:37:32 +01:00
kikito
f125941bbf
Tweaks unselected error in ballot/line
2016-12-23 15:22:19 +01:00
kikito
bb1258f2b2
Fixes view
2016-12-22 20:27:46 +01:00
kikito
eb648b7269
Adds missing parameters to partials
2016-12-22 20:27:01 +01:00
kikito
7acedb30f6
fixes parenthesis
2016-12-22 20:26:39 +01:00
kikito
54bd5aeeb1
adds @budget param to apply_filters_and_search
2016-12-22 20:26:21 +01:00
kikito
260b9aa1e4
loads @investment_ids in ballot lines controller
2016-12-22 20:25:41 +01:00
kikito
15fade5660
loads ballot in budget_investments_controller
2016-12-22 20:25:17 +01:00
kikito
430507ec1e
Adds budget_lines.selected
2016-12-22 20:24:59 +01:00
kikito
688f52bb62
Renames supports to allow_participation
2016-12-22 20:23:48 +01:00
kikito
a73626d712
Refactors and simplifies ballot/lines_controller.rb
2016-12-19 19:11:45 +01:00
kikito
8839b26dd0
Fixes almost all investments_spec
2016-12-19 19:11:22 +01:00
kikito
eb5291d8a6
Fixes budgets/votes_spec
2016-12-19 19:10:49 +01:00
kikito
be2543cf61
Uncomments ability section
2016-12-19 19:03:46 +01:00
kikito
36ffa1922e
Adds supports.js.coffee
2016-12-19 19:03:18 +01:00
kikito
bb28fe5107
Fixes issue when voting
2016-12-16 19:12:31 +01:00
kikito
ff13dee918
Fixes incorrect path & params in bi controller
2016-12-16 18:03:36 +01:00
kikito
3bada69dd0
sets up the @investments variable n investments_controller
2016-12-16 18:03:14 +01:00
kikito
a52ea70c3d
Fixes honeypot-related issues in specs
2016-12-16 18:02:43 +01:00
kikito
3aeb9a1307
Changes investment form so that nil heading means nil, not all headings
2016-12-16 18:02:06 +01:00
kikito
e0c0b18757
Sets partial locals correctly in use and management views
2016-12-16 18:01:20 +01:00
kikito
19e19e5c43
Fixes error when trying to denormalize a model whose dependent field is nil
2016-12-16 18:00:18 +01:00
kikito
316c0cff62
Adds missing method to budget
2016-12-16 17:59:03 +01:00
kikito
2a9957cea0
Extracts budget investment form to partial
2016-12-15 19:36:13 +01:00
kikito
355e286608
De-normalizes references in budgetballotline automatically
2016-12-15 18:17:52 +01:00
kikito
6dd71cb508
Changes the parameters used for index and show partials
2016-12-14 13:43:59 +01:00
kikito
dc3ceb25cc
Replaces @filter_heading_name by @heading.name in index
2016-12-14 13:42:55 +01:00
kikito
7f94cc1f3d
Removes unneeded parameter from helper call
2016-12-14 13:42:26 +01:00
kikito
2a258fc558
Refactors set_investment_votes
2016-12-14 13:42:12 +01:00
kikito
8d60ea1d3c
Refactors apply_filters_and_search to inside investment model
2016-12-14 13:39:54 +01:00
kikito
4434a601d3
Implements several helper methods for formatting amounts
2016-12-14 11:49:16 +01:00
kikito
d5065fe021
fixes typo: ammount -> amount
2016-12-14 11:11:06 +01:00
kikito
5b56336941
Fixes valuation features
2016-12-13 15:51:58 +01:00
kikito
2f446cf056
Renames "open" to "current" to avoid issues with existing method called "open"
2016-12-13 12:39:53 +01:00
kikito
2e8650c324
merge with master
2016-12-12 16:09:05 +01:00
kikito
869f7b39d6
fixes i18n
2016-12-08 11:49:13 +01:00
kikito
748fd8becf
Makes all tests pass in bi management
2016-12-07 19:16:37 +01:00