Bertocq
f4ad0b2979
Improve add_notification logic to add notificable author
2018-01-26 00:33:07 +01:00
Bertocq
070c94494e
Fix linelenght over 100 on multiple files
2018-01-26 00:27:03 +01:00
Bertocq
34b2a27357
Cleanup indentation and line lenght aat order select partial
2018-01-25 18:06:36 +01:00
Bertocq
9b2aebc8c2
Remove closing </li>'s without opening <li>
2018-01-25 17:54:15 +01:00
iagirre
b3dec1897e
Feature spec to test that the budget_investment is not been deleted if the user dismisses the confirm dialog
2018-01-25 16:54:26 +01:00
iagirre
f2927c8eb2
Add alert to the delete button of 'My activity' section so that users don't delete their investmentes accidentally
2018-01-25 16:54:26 +01:00
Alberto García
6918bd699c
Merge pull request #2384 from consul/fix-texts
...
Fix i18n texts
2018-01-25 16:09:36 +01:00
decabeza
f06ef1ac91
updates spanish translations of budgets
2018-01-25 14:41:16 +01:00
decabeza
1d7352d21c
fixes textarea and label order on admin budgets phases form
2018-01-25 14:40:04 +01:00
decabeza
f607075c4a
replaces hardcoded text to votes_for_proposal_success setting
2018-01-25 14:39:13 +01:00
Angel Perez
716fd6a46e
Persist sorting when filtering/selecting investments
2018-01-25 08:18:04 -04:00
Angel Perez
e04dc5b8f2
Add sorting options for Admin::BudgetInvestments ( #2336 )
2018-01-25 08:18:04 -04:00
Angel Perez
d30d2b0dd8
Arrange Admin::BudgetInvestments I18n for buttons under same namespace
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
María Checa
c08edf044d
Updated changelog
2018-01-25 11:57:37 +01:00
María Checa
e875ba1f33
Merge pull request #2379 from consul/advanced-filters-design
...
Advanced filters design
2018-01-25 11:53:07 +01:00
decabeza
c2ff1f6cff
fixes scss lint warning
2018-01-25 11:14:06 +01:00
decabeza
12fbd50fc4
updates specs
2018-01-25 11:14:06 +01:00
decabeza
acfd49e5bd
improves styles for budget investments advanced filters
2018-01-25 11:14:06 +01:00
Bertocq
c01c08a3f4
Use current_budget directly instead of instance variable
2018-01-25 00:48:52 +01:00
Bertocq
8749b46ec4
Remove budget_published? usage on budget index, drafting budgets no longer listed
2018-01-25 00:48:52 +01:00
Bertocq
791f081a91
Rename @budget to @current budget at budget index
...
Clear instance variable names help understand what's going around when
you're deep 2 or 3 partials. In this case @budget is only used to carry
around the current_budget so @current_budget is more descriptive.
Using `current_budget` directly around would be an alternative, but
maybe not as maintainable in case we want to change which budget is
being shown (for example the drafting one if you're admin).
2018-01-25 00:48:52 +01:00
Bertocq
e62ca48a94
Show only finished budgets at budget's index
...
We only need finished budget's at budget's index "Finished budgets"
section. So we add the `finished` scope to @budgets variable, and rename
it so its clear what it contains.
Also avoid showing the "Finished budgets" section if there is none
2018-01-25 00:48:52 +01:00
Bertocq
e5cff2fb60
Make budget feature spec comply with 100 linelenght
2018-01-25 00:48:52 +01:00
Bertocq
bc3c92acb4
Remove no longer valid drafting budget scenarios
...
Drafting budgets will no longer be listed under any conditions at the
budget index... not even as "current" budget.
2018-01-25 00:48:52 +01:00
Bertocq
210032e1ce
Expect finished budget be listed at budget index
...
But only finished budgets should be listed here, not drafting ones,
neither current ones.
2018-01-25 00:48:31 +01:00
Bertocq
d692ff781a
Refactor Budget feature spec Index scenario
...
Budget's home page has changed, no longer we'll be showing a list of
active budgets, but only one current (open) budget and a list of
finished ones.
So no need to create 3 budgets in a row, but a finished budget (because
we already have a valid budget created)
2018-01-24 22:00:03 +01:00
Bertocq
62d7d08a10
Remove no longer valid scenarios: image&doc removal by admin
2018-01-24 21:50:13 +01:00
Bertocq
43c8506f84
Remove deprecated expecations about admin image&doc destroyal
2018-01-24 21:42:20 +01:00
Bertocq
6dcd01366c
Preven admins from destroying others images&docs
2018-01-24 17:07:13 +01:00
Bertocq
97ec551178
Correctly check if user can destroy a document
2018-01-24 17:07:05 +01:00
Bertocq
d6a6b99624
Fix rare flaky test, expect a price not just the number
2018-01-24 15:06:40 +01:00
Bertocq
e0abb86267
Update specs for new heading options naming rules
...
* Update budget heading order scenario to check new option name rules
* Update other scenarios that were expecting old heading naming convention
2018-01-24 14:15:10 +01:00
Bertocq
31956312bf
Make use of new single_heading_group? on existing similar logic
2018-01-24 12:17:46 +01:00
Bertocq
ce3bf20152
Add group name on heading options if more than one heading per group
2018-01-24 12:15:56 +01:00
Bertocq
9bb088a5c7
Add single_heading_group? helper at Budget::Group model
2018-01-24 12:15:43 +01:00
Bertocq
18a5bc6642
Make English the default locale
2018-01-24 11:37:43 +01:00
Bertocq
2a500a14bc
Make budget admin feature spec linelenght compliant
2018-01-24 01:20:29 +01:00
Bertocq
bd64c4749f
Update groups & headings management feature spec
2018-01-24 01:17:38 +01:00
Bertocq
d75fd59684
Align right heading amount & population at admin table
2018-01-24 01:12:38 +01:00
Bertocq
43137df4a5
Format heading price at admin table
2018-01-24 01:12:17 +01:00
Raimond Garcia
c96e8d1203
Merge pull request #2357 from consul/travis-logs
...
Clean up Travis logs
2018-01-23 21:31:29 +01:00
María Checa
3656c1d96f
Updated changelog
2018-01-23 20:19:38 +01:00
María Checa
1c2949b60d
Merge pull request #2344 from wairbut-m2c/aperez-investments-filters
...
Improvements for Admin::Budget::Investment filters
2018-01-23 20:09:54 +01:00
María Checa
0dd71e6bea
Merge pull request #2349 from wairbut-m2c/iagirre-budgets-new-information-phase
...
Budget new "Information" phase
2018-01-23 19:46:49 +01:00
rgarcia
eee19ad690
Use scope to order headings by name
2018-01-23 19:35:42 +01:00
Bertocq
9e4559e374
Revert random district code on census api mock response
2018-01-23 18:38:07 +01:00
Bertocq
418dc6a1d6
Revert default map change
2018-01-23 17:30:42 +01:00
Alberto García
610e37870c
Merge pull request #2367 from consul/budget-headings-order
...
Budgets groups headings order
2018-01-23 16:49:32 +01:00
Bertocq
2b8a32198b
Improve dev_seeds generations around Budgets & Investments
2018-01-23 16:01:40 +01:00