Javi Martín
03dc43a500
Manage legislation process milestones
2018-12-11 20:18:53 +01:00
Javi Martín
64d6b7491a
Make partial listing milestones reusable
...
So it isn't specific to budget investments anymore.
2018-12-11 19:22:55 +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
3631ff7340
Merge pull request #3074 from consul/backport-refactor_legislation_process_subnav
...
Refactor legislation process subnav
2018-12-05 13:32:22 +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
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
2c2831beb0
Use polymorphic paths for milestones
2018-12-05 12:23:52 +01:00
Javier Martín
4f9ca04a84
Merge pull request #3057 from consul/backport-make-milestones-polymorphic
...
[Backport] Make milestones polymorphic
2018-12-05 12:12:04 +01:00
Julian Nicolas Herrero
88a912061a
Merge pull request #3025 from microweb10/issue-3024
...
improve visualization for small resolution
2018-12-02 20:00:42 +01:00
Javi Martín
9ad8c5728a
Refactor legislation process subnav
2018-11-30 18:09:52 +01:00
Javi Martín
abf48af331
Rename draft_texts key to draft_versions
...
This way we can refactor the legislation tabs, since now all translation
keys follow the same convention (using the same name as the active tab
name).
2018-11-30 18:09:51 +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
1b7a2adf56
Merge pull request #3034 from behraaang/bugfix/pagination-after-select
...
Fix pagination after selecting/unselecting budget investment
2018-11-27 11:04:41 +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
Alberto
1bb50cbe47
Merge pull request #3056 from consul/administrator-id
...
[Backport] Administrator ID
2018-11-26 15:05:11 +01:00
Alberto
f535a90826
Merge pull request #3055 from consul/admin-poll-officers
...
[Backport] Admin poll officers
2018-11-26 15:03:55 +01:00
decabeza
6d7c5f1b78
Refactors admin administrators spec
...
This refactoring avoids "Use let instead of an instance variable" rubocop warning
2018-11-22 11:41:59 +01:00
decabeza
ae3a2ed3f3
Adds administrator id on admin administrators index page
2018-11-22 11:41:54 +01:00
decabeza
3670859fa3
Removes unused admin poll officers views, routes and controller
2018-11-22 11:40:11 +01:00
decabeza
8f27398bd1
Fixes globalize tabs when there is a lot of available locales
2018-11-22 11:37:26 +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
behraaang
3278b35729
partial added, render an investment
2018-11-10 23:08:11 +03:30
Julian Herrero
085a01a493
improve action buttons aspect for small screens
2018-11-08 16:45:50 +01:00
Julian Herrero
3975e5145a
improve action buttons aspect for small screens
2018-11-08 16:45:36 +01:00
Julian Herrero
bb81a4dad4
improve action buttons aspect for small screens
2018-11-08 16:45:07 +01:00
Julian Herrero
62a4fe985e
improve action buttons aspect for small screens
2018-11-08 16:44:09 +01:00
Julian Herrero
9af8741191
improve visualization for small resolution
2018-11-08 12:11:38 +01:00
decabeza
c049be6dae
Improves message when there are no budgets
2018-11-06 18:11:13 +01:00
voodoorai2000
7d5b57aee2
Add counter of emails sent to newsletter preview
2018-10-30 17:07:31 +01:00
Javi Martín
9105ac3a69
Prefix classes used in JavaScript with "js-"
...
The same way it's done in the rest of the application.
2018-10-22 16:36:18 +02:00
Javi Martín
dbea577062
Follow naming conventions for HTML classes and IDs
...
We use underscores for IDs and hyphens for classes.
2018-10-22 16:36:18 +02:00
Javi Martín
5511a3a194
Fix "Add option" link position
...
The new options were being added inside the `.column` div, when they
needed to be added before it.
2018-10-22 16:36:17 +02:00
Javi Martín
21cf39d5ed
Fix alignment in last translatable fields
...
When we grouped the fields together, the last one turned into a
`last-child`, which foundation automatically aligns to the right.
The markdown editor also needed to be tweaked a little bit.
2018-10-22 16:36:17 +02:00
Javi Martín
7479223d59
Wrap translation fields in a div
...
This way we can show/hide that div when displaying translations, and we
can remove the duplication applying the same logic to the label, the
input, the error and the CKEditor.
This way we also solve the problem of the textarea of the CKEditor
taking space when we switch locales, as well as CKEditor itself taking
space even when not displayed.
2018-10-22 16:36:17 +02:00
Javi Martín
00983200d4
Update information texts translatable fields
...
This part used the code we deleted in order to make it easier to
refactor the rest of the translatable models. Now we add the code back.
2018-10-22 16:36:12 +02:00
Javi Martín
387b345f77
Refactor globalize_locales partials to increase DRYness
2018-10-22 16:35:01 +02:00
Angel Perez
8bba09aac3
Extract translation logic to helper method
2018-10-22 16:30:32 +02:00
Javi Martín
3b5a12b0ab
Don't force translations for the current locale
...
Globalize creates a translation for the current locale, and the only way
I've found to change this behaviour is to monkey-patch it.
The original code uses `translation.locale` instead of
`Globalize.locale`. Since `translation.locale` loads the translation
with empty attributes. It both makes the record invalid if there are
validations and it makes it almost impossible to create a record with
translations which don't include the current locale.
See also the following convertations:
https://github.com/globalize/globalize/pull/328
https://github.com/globalize/globalize/issues/468
https://github.com/globalize/globalize/pull/578
https://github.com/shioyama/mobility/wiki/Migrating-from-Globalize#blank-translations
2018-10-22 16:28:53 +02:00
Javi Martín
124b8496de
Simplify methods defining translation styles
...
This refactor is going to be useful when we change these rules within
the next few commits.
2018-10-22 16:28:53 +02:00
Javi Martín
139cf769c6
Update widget cards translatable fields
2018-10-22 16:28:49 +02:00
Javi Martín
3c170f47d2
Update site customization pages translatable fields
2018-10-22 16:13:48 +02:00
Javi Martín
e0b9c1bfdd
Update poll question answers translatable fields
...
We needed to bring back support for CKEditor in our translatable form,
which we had temporarily remove.
And now we support CKEditor in our translatable specs, and so we can
remove the duplicated specs for poll question answers.
2018-10-22 16:13:48 +02:00
Javi Martín
d1249d0b4f
Update poll questions translatable fields
...
We need to replace ".title=" by ".title_#{locale}=" in one place because
for some reason globalize builds a new translation record when using the
latter but it doesn't build one when using the former.
2018-10-22 16:13:30 +02:00