DenisNikolski
5627c8ccf4
add test for booths search
2019-09-21 16:25:20 +03:00
DenisNikolski
6f085b5696
add search form on admin booths
2019-09-12 23:02:39 +03:00
Javi Martín
f9ed186909
Add rubocop spacing rules
...
We were following these rules in most places; we just didn't define them
anywhere.
2019-09-10 21:04:56 +02:00
Javi Martín
ee8426c5b5
Indent with spaces instead of tabs
2019-09-10 20:02:15 +02:00
Javi Martín
c62da726b8
Apply SpaceAroundErbTag ERB Lint rule
2019-09-10 20:02:15 +02:00
Javi Martín
71d9ddd849
Apply rule to end files with a newline character
2019-09-10 20:02:15 +02:00
Javi Martín
911fe4e481
Simplify calls to render partial
...
We're also adding a bit of consistency, since most of our calls to
partial rendering omit the `partial` and `locals` keys.
2019-09-04 15:00:36 +02:00
Javi Martín
0b55097820
Remove system count from old booth assigments
...
This number was not the important one; the important one is the one
given by the recounts.
Note we're also removing the votes by date, since they're also system
votes.
2019-08-07 20:31:45 +02:00
Javi Martín
45376d1e49
Fix indentation
2019-08-07 20:31:45 +02:00
Javi Martín
aa759e1af8
Simplify recounts code
...
Now the code is the same as the code in the poll booth assignment page.
2019-08-07 20:31:45 +02:00
Javi Martín
bddfee2b86
Remove system count column for old polls
...
System count isn't a relevant number because the important one is the
number of votes counted by poll officers. We're still maintaining it for
a month in case poll officers would like to review the results.
2019-08-07 20:31:45 +02:00
taitus
0602a38742
Fix Style: Display Titles without highlight
2019-07-01 15:03:48 +02:00
taitus
c1a72e7169
Align admin polls questions answers form fields with new translations interface
2019-07-01 15:03:48 +02:00
taitus
9f98435789
Align admin polls questions form fields with new translations interface
2019-07-01 15:03:48 +02:00
taitus
bca9364c64
Align admin polls form fields with new translations interface
2019-07-01 14:49:44 +02:00
taitus
000c6c5911
Align admin active polls form fields with new translations interface
2019-07-01 14:49:44 +02:00
Senén Rodero Rodríguez
146c09adb7
Update references to new translation interface
2019-07-01 14:49:43 +02:00
lalo
23d36835d7
Add Admin changes to create Poll:Questions with votation type
2019-06-12 19:44:14 +02:00
Javi Martín
123196e4ed
Display the same results for stats and recounts
...
In the recounts we were incorrectly assuming the total amount included
the blank and invalid ballots.
2019-05-30 17:22:39 +02:00
Javi Martín
eb13994999
Extract partial for form to show results and stats
2019-05-22 11:50:03 +02:00
Javi Martín
354b183e17
Create reports
...
This table will store which reports (stats, results, ...) will be shown
for a certain process (polls, budgets, ...).
Note Rails fails to save a poll and its report when both are new records
if we add a `validate :process, presence: true` rule. Since it caused a
lot of trouble when creating records for tests during factories rule
completely. Instead, I've created the `results_enabled=` and
`stats_enabled=` methods, so tests are easier to set up, while also
automatically creating a report if it doesn't already exist. This also
decouples form structure and database implemenation.
Originally I named this table `enabled_reports` and instead of having
`stats` and `results` columns, it had an `enabled` column and a `kind`
column, which would be set to "stats" or "results". However, although
that table would allow us to add arbitrary reports easily, I found the
way we had to handle the `has_many` relationship was a bit too complex.
2019-05-22 11:50:03 +02:00
decabeza
625c34bac2
Add officer email on admin poll shifts table
2019-05-17 17:41:42 +02:00
decabeza
33c06ea0d3
Add help text to admin poll officers search
2019-05-17 17:41:36 +02:00
Alberto
d845c6e973
Merge pull request #3476 from consul/delete-poll
...
Allow delete polls with associated questions and answers
2019-05-17 17:38:20 +02:00
decabeza
e026412389
Add button to delete a poll
2019-05-14 16:46:56 +02:00
Javi Martín
63fef66f41
Remove obsolete reference to proposal question
2019-05-09 12:58:14 +02:00
decabeza
cb22e6cbfb
Merge branch 'master' into proposal-dashboard
2019-04-23 17:12:47 +02:00
decabeza
94b8caffca
Merge branch 'master' into proposal-dashboard
2019-04-04 14:08:30 +02:00
decabeza
bee616c878
Fixes manage assignments button overlapping
2019-04-03 22:28:19 +02:00
decabeza
429edd0745
Hides total final and total recount cells on budget poll recounts
2019-04-03 22:28:17 +02:00
decabeza
fcbb11b26e
Hides question menu on budget poll and changes redirect when create
2019-04-03 22:23:32 +02:00
Bertocq
9c7962c3a6
Check poll recount values for booth votes on admin panel
2019-03-28 15:49:17 +01:00
decabeza
2af154d539
Merge branch 'master' into proposal-dashboard
2019-03-28 01:26:04 +01:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Javi Martín
3e4e65ead7
Use double quotes inside ERB
...
We were using single quotes inside ERB code when that code was inside
HTML double quotes.
2019-03-25 14:58:54 +01:00
Senén Rodero Rodríguez
9d9ad5003b
Add given_order to related poll question answers forms
...
Since given order is no longer being generated automatically we need
to add it to related forms and to strong parameters methods
2019-03-21 14:51:17 +01:00
Julian Herrero
e63a862882
Use double quotes in app/views/admin/poll
2019-03-19 12:16:50 +01:00
Julian Herrero
18bd2c7de8
Refactor (improve readability)
2019-03-15 09:55:12 +01:00
Alberto
3c313c9c52
Merge pull request #3334 from consul/admin-polish
...
Improve UX on admin section
2019-03-13 17:15:22 +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
Juanjo Bazán
26d1024cfc
Add cumulative totals to admin poll recounts list
...
This commit backports commit AyuntamientoMadrid@90638672 and the changes
that code has been through:
* AyuntamientoMadrid@03371a71 removed daily recounts in the controller
* AyuntamientoMadrid@fe3492a7 removed daily recounts in the view
* AyuntamientoMadrid@aa59d995 replaced FinalRecount with TotalResult
* AyuntamientoMadrid@c40e8d79 replaced TotalResult with Recount
2019-03-07 02:09:17 +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
51d74ed7ab
Replace poll name link in admin polls booth assignments
2019-02-25 14:10:25 +01:00
Julian Herrero
884274c4ad
Add a description for open polls
2019-02-18 13:34:07 +01:00
decabeza
dfd4f60e15
Order admin poll list by starts_at date
2019-01-31 18:49:24 +01:00
Julian Herrero
8f112cf37e
Allow admins delete poll answer documents
2019-01-24 19:19:04 +01:00
João Lutz
47a33ea86c
Enable options to show stats and results with any type of voter
2019-01-05 14:08:47 -02:00
decabeza
9c827d6ce0
Adds poll name on admin poll questions index
2018-12-19 21:00:09 +01:00
decabeza
3670859fa3
Removes unused admin poll officers views, routes and controller
2018-11-22 11:40:11 +01:00