Manu
bd4e12112d
Add image to legislation processes and banner colors
2019-01-21 12:02:27 -05:00
Javi Martín
2926e4e375
Fix managing widget cards for homepage
...
The condition `params[:page_id] != 0` didn't work properly when editing
the homepage because in that case the parameter was `nil`, and the line
`SiteCustomization::Page.find(@card.site_customization_page_id)` raised
an exception because it couldn't find a page with a `nil` ID.
Fixing the issue while maintaining the check against `0` lead to complex
code, and so allowing `nil` in the database and assuming cards with no
`site_customization_page_id` belonged in the homepage seemed to be the
easiest solution.
2019-01-21 10:40:14 -05:00
Javi Martín
9c050ca6bd
Extract method to redirect when managing cards
2019-01-21 10:40:04 -05:00
Javi Martín
8a643c72e7
Use I18n for card notice messages
2019-01-21 10:39:42 -05:00
Manu
7657a0e0b4
added i18n text to custom pages cards
2019-01-18 09:54:43 -05:00
Manu
2dd953bdfd
added hound corrections and removed wrong tables form the schema.rb
2019-01-18 09:54:43 -05:00
Manu
722a431b54
Add cards to custom pages
2019-01-18 09:54:43 -05:00
Javi Martín
c5d32c5ab9
Manage progress bars in the admin area
2019-01-18 14:17:33 +01:00
Javi Martín
4f25581636
Add progress bar polymorphic views
2019-01-18 14:17:29 +01:00
rogelio-o
f1bb1ff8de
Moves attributes to a concern.
2019-01-14 20:26:47 +01:00
rogelio-o
ea76179002
Solves #3153 . It refactors images attributes.
2019-01-12 17:42:55 +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
Julian Nicolas Herrero
7ccab504f0
Merge pull request #3160 from consul/backport-1784-consistency_remove_semicolon_from_controllers
...
[Backport] Remove semicolons from controllers
2019-01-09 17:46:32 +01:00
Julian Nicolas Herrero
08a692341a
Merge pull request #3150 from consul/backport-1769-crud_budget_and_usa
...
[Backport] new CRUD budgets, content blocks and heading map
2019-01-09 17:35:46 +01:00
Julian Herrero
9a60135d9f
[Consistency] remove semicolons from controllers
2019-01-08 15:46:46 +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
Julian Herrero
2081269a67
fix Hound violations
2019-01-02 10:46:31 +01:00
Raimond Garcia
a8de5306c8
Merge pull request #3091 from dpgigorro/2791-homepage-for-legislation-process
...
add homepage for legislation processes
2018-12-19 11:14:24 +01:00
Julian Nicolas Herrero
2175339609
Merge pull request #3106 from consul/2918-crud_budget_groups_headings
...
Change CRUD for budget groups and headings
2018-12-18 10:23:24 +01:00
dperez
bef404c443
add homepage for legislation processes
2018-12-15 18:04:24 +01:00
Julian Herrero
6439be44f1
change CRUD for budget groups and headings
...
To make it more consistent with the rest of the Admin panel,
the CRUD for budget groups and headings has been changed
from the old "all-in-one" form to a separate form for each resource.
2018-12-14 16:34:54 +01:00
Javier Martín
8bcf713d10
Merge pull request #3100 from consul/backport-2743-add_milestones_to_legislation_processes
...
Add milestones to legislation processes
2018-12-12 15:12:36 +01:00
Javi Martín
03dc43a500
Manage legislation process milestones
2018-12-11 20:18:53 +01:00
Javi Martín
2fcbee6261
Manage proposal milestones
2018-12-11 20:09:47 +01:00
Javi Martín
d3f11c3b55
Add search form to proposals admin index
2018-12-11 20:09:30 +01:00
Javi Martín
4770217373
Add proposals index in admin
2018-12-11 20:09:30 +01:00
Julian Nicolas Herrero
6aa54d6c62
Merge branch 'master' into content_blocks_for_headings
2018-12-11 16:40:25 +01:00
Julian Nicolas Herrero
9aab3ddd7b
Merge pull request #3038 from MatheusMiranda/add_map_to_heading_page
...
Add map to sidebar on Heading's page
2018-12-11 16:32:35 +01:00
Javier Martín
feb4af21c7
Merge pull request #3083 from consul/backport-milestone_polymorphic_path
...
Make milestones controller polymorphic
2018-12-10 18:37:15 +01:00
Javier Martín
fc5a5e58de
Merge pull request #3073 from consul/backport-rename_hidden_proposals
...
[Backport] Rename Admin::Proposals to Admin::HiddenProposals
2018-12-05 13:30:23 +01:00
Javi Martín
35c18688e5
Remove obsolete method
...
It was used in the `Translatable` concern, but it isn't used there
anymore.
2018-12-05 12:28:36 +01:00
Javi Martín
ae22cd247a
Use milestoneable to find/create a milestone
...
This way we simplify the code and avoid strange cases like `params[:id]`
having an ID which doesn't belong to the current milestoneable.
2018-12-05 12:28:36 +01:00
Javi Martín
c4448faf70
Move milestones code to admin/milestones
...
All milestone controllers will inherit from `AdminMilestonesController`,
and all views will render the same content.
2018-12-05 12:28:34 +01:00
Javi Martín
2e778b4073
Use milestoneable instead of investment
2018-12-05 12:23:57 +01:00
Javi Martín
2c2831beb0
Use polymorphic paths for milestones
2018-12-05 12:23:52 +01:00
Javi Martín
5cfc1592e4
Use %w[] instead of %w{}
...
As defined in our rubocop rules.
2018-11-30 18:04:55 +01:00
Javi Martín
45a41a7528
Rename Admin::Proposals to Admin::HiddenProposals
...
The same way we do it with users and budget investments.
2018-11-30 18:04:55 +01:00
Marko Lovic
c0f6fa182f
Make Milestones general, and not specific to Budget Investments
...
Generalize the Budget::Investment::Milestone model to a
polymorphic Milestone model so it can be used for entities
other than Budget::Investment.
2018-11-30 14:15:21 +01:00
Marko Lovic
81f516efd7
Change BudgetInvestmentStatus to Milestone::Status
...
Generalize the BudgetInvestmentStatus model to Milestone::Status so it
is not specific to budget investments, but can be used for any entity
which has milestones. This is in preparation to make the Milestone
model polymorphic and usable by entities other than budget investments.
2018-11-30 14:15:21 +01:00
Milber Champutiz Burbano
9f455b9165
Added feature to add content block to headings in sidebar -- rebase
2018-11-27 09:37:35 -05:00
Raimond Garcia
ed9e501ae7
Merge branch 'master' into add_map_to_heading_page
2018-11-27 11:07:16 +01:00
Raimond Garcia
2ef83619c3
Merge pull request #3048 from jaflutz/2930-draft-phase-processes
...
Adds draft phase functionality in legislation processes
2018-11-27 11:01:27 +01:00
decabeza
3670859fa3
Removes unused admin poll officers views, routes and controller
2018-11-22 11:40:11 +01:00
João Lutz
34b58a5208
Adds draft phase functionality in legislation processes
2018-11-19 22:18:50 -02:00
Matheus Miranda
06f07b1139
Add map to sidebar on Heading's page
...
Signed-off-by: Matheus Miranda <matheusmirandalacerda@gmail.com >
2018-11-16 09:05:23 +01:00
Javi Martín
08c043425a
Remove reference to site customization page locale
...
We don't use that attribute since we added translations for this model.
2018-10-22 16:36:18 +02:00
Javi Martín
01315f2695
Fix rubocop line too long warning
2018-10-22 16:36:17 +02:00