Alberto
3c313c9c52
Merge pull request #3334 from consul/admin-polish
...
Improve UX on admin section
2019-03-13 17:15:22 +01:00
decabeza
cfad56b872
Add rake to remove deprecated settings
2019-03-13 15:39:58 +01:00
decabeza
b31b65f246
Add link to proposal if question was created from a proposal
2019-03-13 15:35:31 +01:00
decabeza
000819e928
Move create question to admin poll questions
...
Also move question actions to admin polls questions
2019-03-13 15:33:14 +01:00
decabeza
83e8d6035a
Remove questions link on admin polls menu
2019-03-13 13:33:49 +01:00
decabeza
74958fab02
Always show create question button on admin proposal show
2019-03-13 13:28:12 +01:00
decabeza
e520a51d57
Replace default feature proposals to nil
2019-03-13 13:18:53 +01:00
decabeza
528a4b6e8e
Add default colours to admin banners
2019-03-13 13:17:42 +01:00
Alberto
1f9ebbc749
Merge pull request #3340 from consul/unfeasible-investment
...
[Backport] Show unfeasible budget investment messages only when valuation finished
2019-03-12 11:09:44 +01:00
Javi Martín
db6229e38e
Add specs for cumulative recounts totals
2019-03-07 02:09:17 +01:00
rgarcia
151239924b
Display 'validate document' menu item only when applicable
...
We are trying to avoid Officers from forgetting to click the “Confirm
vote” button, which is necessary to keep track of who has voted a Poll
To do that, we are not displaying the menu item to go back to the next
person that wants to vote, until the Officer clicks the “Confirm Vote”
button or the “The user has decided not to vote” button
Note: Due to mobile version we have duplicate ids, so using classes for
the menu items to hide them without errors
Note2: We are only hidding the menu item, if there are votable polls,
otherwise the “Confirm vote” button does not appear, and there is no
way of going back to help the next person that wants to vote
2019-03-06 18:33:07 +01:00
rgarcia
8125d470de
Add methods to obtain polls votable by a user
2019-03-06 17:42:46 +01:00
decabeza
0e1bf2188c
Remove unused verification offices url setting
2019-03-06 13:08:35 +01:00
Julian Nicolas Herrero
2f84d17cc9
Merge pull request #3155 from jaflutz/2824-options-display-results-polls
...
Enable options to show stats and results with any type of voter
2019-03-06 11:14:54 +01:00
decabeza
55a2bcb559
Show unfeasible budget investment messages only when valuation finished
2019-03-06 10:46:03 +01:00
decabeza
4a532bf807
Use activerecord translations on admin legislation processes
2019-03-05 17:43:39 +01:00
Alberto
098f4b6c5f
Merge pull request #3328 from consul/admin-settings
...
Improve Admin settings section
2019-02-27 10:49:54 +01:00
Javier Martín
86a1f5e0ce
Merge pull request #3330 from consul/backport-fix_valuation_tags
...
Fix valuation tags being overwritten
2019-02-26 21:42:58 +01:00
Alberto
6d763df5cb
Merge pull request #3329 from consul/admin-ui
...
[Backport] Improve UX on admin section
2019-02-26 19:13:01 +01:00
Julian Nicolas Herrero
09d4c54c40
Merge pull request #3326 from consul/admin_system_emails
...
[Backport] Show all system emails in Admin section
2019-02-26 15:18:42 +01:00
Javi Martín
c5c56ad969
Use a virtual attribute to get valuation tags
...
It was strange to set the valuation tags using `valuation_tag_list=` but
then accessing the valuation tags using `tag_list_on(:valuation)`.
2019-02-26 14:16:10 +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
Javier Martín
9fd3c4fb1c
Merge pull request #3321 from consul/backport-fix_random_order
...
Fix random proposals order in the same session
2019-02-26 14:09:24 +01:00
decabeza
8066b96fe3
Remove legacy banner images and banner styles settings
2019-02-25 14:59:38 +01:00
decabeza
840348a839
Replace legislation processes text to collaborative legislation
2019-02-25 14:22:29 +01:00
decabeza
51d74ed7ab
Replace poll name link in admin polls booth assignments
2019-02-25 14:10:25 +01:00
Julian Herrero
00bd7008bb
Show all system emails in Admin section
2019-02-22 16:13:49 +01:00
Javier Martín
a1c5dad4ff
Merge pull request #3324 from consul/backport-sorting_icons
...
Add sorting icons to sortable tables
2019-02-20 17:56:49 +01:00
decabeza
26741d9560
Fix hound warnings
2019-02-20 13:56:58 +01:00
decabeza
32d4495a88
Replace created at date to start and end date on admin legislation processes
2019-02-20 13:32:22 +01:00
decabeza
0d834744fd
Replace open to active filter on admin legislation processes index
...
Now active filter show open processes and the next ones, processes with a start date greather than current date.
2019-02-20 13:32:09 +01:00
decabeza
9e9eb1359b
Add icon to sortable table
2019-02-20 13:07:08 +01:00
Javi Martín
6682121069
Reuse code to set and order by a random seed
2019-02-20 12:10:12 +01:00
Javier Martín
70a1b7d1ff
Merge pull request #3318 from consul/backport-refactor_investments_index
...
Show all investments in the map
2019-02-20 11:49:06 +01:00
Javier Martín
7c61f621e2
Merge pull request #3314 from consul/backport-without_valuator
...
Consider having valuator group as having valuator
2019-02-19 18:59:15 +01:00
Javi Martín
facfb807e1
Show all investments in the map
...
We were showing only the ones being shown in the current page because
we were modifying `@investments` using a method which used
`@investments`, and we were calling that method twice.
There are many possible solutions: using a local variable to store the
result of the `investments` method, modifying `@investments` after
modifying `@investments_map_coordinates`, ... I've used the one which in
my humble opinion is a bit less fragile: not using `@investments` inside
the `investments` method. That way, the `investments` method will always
return the same result.
Note `stub_const("Budgets::InvestmentsController::PER_PAGE", 2)`
wouldn't work because `Budgets::InvestmentsController` isn't loaded when
that line is executed. So we need to load it. Instead of requiring the
file, using `#{Budgets::InvestmentsController}` seems to be an easier
solution.
2019-02-19 13:22:49 +01:00
decabeza
25c8212e80
Remove proposal improvement path setting
2019-02-19 11:07:58 +01:00
Julian Nicolas Herrero
8156152e0f
Merge pull request #3303 from consul/description_for_open_polls
...
[Backport] Add a description for open polls
2019-02-18 16:51:21 +01:00
Julian Nicolas Herrero
d821848add
Merge pull request #3307 from consul/return_string_in_method_pluralize
...
[Backport] Return a String in I18n method 'pluralize'
2019-02-18 15:25:40 +01:00
Julian Herrero
884274c4ad
Add a description for open polls
2019-02-18 13:34:07 +01:00
Julian Nicolas Herrero
53530ba99b
Merge pull request #3287 from consul/use_double_quotes_in_specs
...
Change single quotes to double quotes in folder /spec
2019-02-18 13:26:49 +01:00
Javi Martín
bd67fcb9cf
Consider having valuator group as having valuator
...
So under the tab "without valuator" we don't show investments assigned
to a valuator group, just as expected by administrators.
There was a conflict while applying this commit to the CONSUL repo. I've
decided to re-introduce the test which was deleted in commit dddf026a ,
which hadn't been deleted in AyuntamientoMadrid@192f1182.
2019-02-15 21:11:24 +01:00
Javier Martín
b330de01f6
Merge pull request #3148 from matisnape/budget_investments_sorting_columns
...
Add sort links to admin tables
2019-02-15 19:19:11 +01:00
Julian Herrero
366505f886
Return a String in I18n method 'pluralize'
...
If a translation was missing returning a Fixnum was raising an
exception 'undefined method X for Fixnum'.
2019-02-15 11:59:57 +01:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
Julian Nicolas Herrero
4a12425987
Merge pull request #3296 from consul/make_budgets_translatable
...
[Backport] Make budgets translatable
2019-02-13 19:01:13 +01:00
Julian Nicolas Herrero
e8c77f58a6
Merge pull request #3292 from consul/backport_delete_officer_assignment_with_associated_data
...
[Backport] Delete Booth Shifts with associated data
2019-02-13 18:56:43 +01:00
Alberto
fad65b621a
Merge pull request #3291 from consul/total-votes
...
[Backport] Use votes score instead of total votes on debates and legislation proposals
2019-02-13 17:15:39 +01:00
Alberto
eacf740087
Merge pull request #3290 from consul/budget-heading-alert
...
[Backport] Include heading names in "headings limit reached" alert
2019-02-13 17:10:38 +01:00
Julian Herrero
a963a99c55
Use correct scope to sort headings by name
2019-02-13 13:35:09 +01:00