Senén Rodero Rodríguez
661ca5a568
Add budget investments translation interface
...
* Adapt translatable spec helper method to work with budget investments
* Remove old attributes from strong parameters
* Add missing locales to admin.yml and budgets.yml
* Change SpendingProposal.title_max_length and
SpendingProposal.description_max_lenght to Budget::Investment methods
* Add budget investment translatable attribute translations
2019-06-27 09:20:24 +02:00
Senén Rodero Rodríguez
eb2e402a92
Fix budget investments sorting by title
...
As we cannot order budget investments by any translatable field through
AR queries we are doing the same using ruby Array sort method and doing
array pagination manually with Kaminari 'paginate_array' helper method.
2019-06-27 09:20:24 +02:00
lalo
23d36835d7
Add Admin changes to create Poll:Questions with votation type
2019-06-12 19:44:14 +02:00
German Galia
74083df10f
Add historic fields to participatory budget
2019-06-12 18:03:53 +02:00
German Galia
9ce524e1f3
Create tracker rol
2019-06-12 16:23:40 +02:00
German Galia
16ffa2a259
Add change log in investment participatory budget
2019-06-12 13:06:20 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
lalo
63e0cd02d0
Display milestone_tags input for investments, display milestone_tags on admin and tests
2019-06-07 14:07:43 +02:00
Julian Herrero
b122302c58
Use find instead of find_by_id
...
Better raise a 404 HTML NotFound exception than any other unexpected error.
2019-06-03 17:54:19 +02:00
voodoorai2000
d0b8fef6b3
Delete spending proposals
2019-05-31 18:22:59 +02:00
rgarcia
f23fd6f3bb
Remove parameterise deprecation warning
...
DEPRECATION WARNING: Passing the separator argument as a positional
parameter is deprecated and will soon be removed. Use `separator: '_'`
instead.
2019-04-17 17:40:55 +02:00
alejandro
bafab3b769
fixes some deprecation warnings
2019-04-17 17:40:52 +02:00
alejandro
4c5d58448e
fixes deprecation warning for uniq
2019-04-16 17:28:07 +02:00
lalo
237a03552f
Move admin budget investments tabs filters to advanced filters component
2019-04-03 22:27:48 +02:00
Julian Herrero
d24376f6ad
Use double quotes in controllers/
2019-03-13 22:19:49 +01:00
Javi Martín
4980819528
Fix valuation tags being overwritten
...
When params[:budget_investment][:valuation_tag_list] was not present,
which is the case when updating an investment using the "mark as visible
to valuators" checkbox, we were removing all valuation tags.
Using a virtual attribute to assign the tags only if the parameter is
present simplifies the code in the controller and avoids the issue.
2019-02-26 14:16:10 +01:00
Anna Anks Nowak
3ab70ff0d8
Move validating params to model
2019-01-10 16:11:51 +01:00
Anna Anks Nowak
cb761c56c2
Fix issue with app crashing when sort_by param was incorrect
2019-01-10 16:11:51 +01:00
Anna Anks Nowak
2523775d9f
Make the conditional more readable temporarily
2019-01-10 15:35:54 +01:00
Anna Anks Nowak
9786b0bf7d
Rewrite sorting to support direction param [ #2931 ]
2019-01-10 15:34:33 +01:00
María Checa
650fe2553e
Add default order for admin budget investments list
...
When there's no sorting option selected, by default it orders the investment list by supports and, for those with the same number of supports, by ID.
2019-01-02 12:52:28 +01:00
Angel Perez
9029acd440
Fix Rubocop warnings for Admin controllers [ci skip]
2018-09-07 13:59:07 -04:00
María Checa
5dfefbbe2f
Change admin budget investments list order by supports from less to more
...
Sorting by id is in descending order and by title ascending
Backported from AyuntamientoMadrid/consul
2018-07-26 12:24:53 +02:00
Raúl Fuentes
df899cde6e
Fixed html, now it reflects the current search also added serach by name or id to the Budget::Invesment search function
2018-07-04 11:55:13 +02:00
Alberto
1e8f4c7f32
Merge pull request #2342 from wairbut-m2c/iagirre-budgets-column-show-valuators
...
Budget: add column show to valuators
2018-04-30 17:49:15 +02:00
Bertocq
aacac71362
Extract Budget Investment to_csv to its own class
...
The csv generation doesn't seem like a Model concern, at least not taking
into account the amount of lines of the method (36+). Just a simple ruby
class that encapsulates the logic makes it easier to read and maintain as
we increase the columns exported.. also customize in case other forks need
different values.
2018-04-11 21:30:16 +02:00
Bertocq
83f4f4f65c
Remove unnecesary parameter at Investment to_csv
...
If there's only one usage of `to_csv` and the parameter has always the
same value... there's no good reason to bother using an additional argument.
2018-04-11 21:14:13 +02:00
iagirre
b8cc10d218
Fix conflics after rebase
2018-04-09 15:02:35 +02:00
Bertocq
0fceb1381f
Fix line length at admin investment controller
2018-04-06 00:37:10 +02:00
rgarcia
00c965b715
Clean up
2018-04-04 13:19:01 +02:00
rgarcia
7e839e7815
Filter by valuator group
2018-04-03 20:56:31 +02:00
rgarcia
ab498d6d93
Assign groups to investments
2018-04-03 20:55:44 +02:00
Bertocq
2341a2f70b
Add by_budget scope to Investment and use it
2018-02-10 16:36:14 +01:00
Bertocq
b926740a32
Show valuation comments at admin investment show page
2018-01-31 16:35:45 +01:00
Angel Perez
47c9b343ee
Admins can search investments by title or ID ( #2401 )
2018-01-31 09:52:55 -04:00
Angel Perez
a5159672d4
Investments are now aggregated when using more than 1 advanced filter
2018-01-31 07:21:51 -04:00
Bertocq
093b191f16
Small rubocop autocorrections
2018-01-30 03:07:52 +01:00
Angel Perez
e04dc5b8f2
Add sorting options for Admin::BudgetInvestments ( #2336 )
2018-01-25 08:18:04 -04:00
Angel Perez
680ca46ef1
Add search form for Admin::BudgetInvestments ( #2336 )
2018-01-25 08:16:32 -04:00
Angel Perez
1027896617
Reenable 'winners' tab under Admin::Budget::Investment
2018-01-22 14:04:57 -04:00
Angel Perez
ff40d32028
Add new filters to Admin::Budget::Investment navbar
2018-01-22 14:02:29 -04:00
Angel Perez
e92a67a206
Simplify filters navbar on Admin::Budget::Investment
2018-01-22 14:02:29 -04:00
Angel Perez
e5c73d8f02
Add advanced filters for Admin::Budget::Investment
2018-01-22 14:02:29 -04:00
Bertocq
3026115382
Remove redundant curly braces around a hash parameter
2018-01-10 22:44:11 +01:00
Raúl Fuentes
29018e3062
changes made at the request of voodoorai2000
2018-01-09 13:08:03 +01:00
Raúl Fuentes
b3461b2051
final details
2018-01-09 12:45:30 +01:00
Raúl Fuentes
56f4c3c3b9
added test to csv download and style corrections
2018-01-09 12:45:30 +01:00
Raúl Fuentes
95c1aa43e8
added csv download link to budget_investments (issue 1625)
2018-01-09 12:45:30 +01:00
Manuel Ortega
12ac758e8e
Added investment's user generated tags to admin interface form
2017-10-17 18:11:29 +02:00
Bertocq
e35817f240
Add selected checkbox on admin investment form
2017-07-04 23:48:18 +02:00