Alberto
2f8505332e
Merge pull request #3574 from consul/remove-dashboard-polls
...
Allow users to delete dashboard polls
2019-06-01 11:06:34 +02:00
decabeza
bc1fc5d929
Add button to delete a poll
2019-05-31 11:55:05 +02:00
decabeza
cec1d5e5f0
Hide polls created by users from proposals dashboard on admin poll index
2019-05-31 11:34:55 +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
307cf24846
Use describe on feature tests
...
The `type: :feature` is automatically detected by RSpec because these
tests are inside the `spec/features` folder. Using `feature` re-adds a
`type: :feature` to these files, which will result in a conflict when we
upgrade to Rails 5.1's system tests.
Because of this change, we also need to change `background` to `before`
or else these tests will fail.
2019-05-28 16:36:54 +02:00
Javier Martín
cbfa2c1df8
Merge pull request #3504 from consul/backport-poll_slugs
...
Add slug to polls
2019-05-21 13:42:47 +02:00
decabeza
625c34bac2
Add officer email on admin poll shifts table
2019-05-17 17:41:42 +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
María Checa
0c6e7e7580
Adds Sluggable concern to Poll model
2019-05-17 05:41:09 +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
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +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
Javi Martín
d69adbccb7
Avoid creating extra poll records in tests
...
The line:
create(:poll_voter, booth_assignment: booth_assignment_final_recounted)
Creates a new poll for the poll voter. Not only it wastes time by
creating new database records, but it doesn't make sense to have a poll
voter for a poll which isn't the same as its booth assignment's poll.
2019-03-19 13:29:45 +01:00
Javi Martín
8118926ba7
Simplify tests creating poll voters
2019-03-19 13:29:43 +01:00
Julian Herrero
58f22915e9
Use double quotes
2019-03-15 09:57:09 +01:00
Julian Herrero
da04f6caa7
Add test for booth votes case
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
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
Javi Martín
db6229e38e
Add specs for cumulative recounts totals
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
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
Julian Herrero
5f4a369606
Deleting a booth shift with recounts or partial results.
...
Show a flash message that it's not possible to delete booth shifts
when they have associated recounts or partial results. Before an
execption was raised.
2019-02-12 18:59:51 +01:00
decabeza
bc1679550b
Remove incoming polls filter
2019-02-08 14:28:19 +01:00
decabeza
dfd4f60e15
Order admin poll list by starts_at date
2019-01-31 18:49:24 +01:00
decabeza
5ea1275e6a
Change admin poll list title
2019-01-31 18:24:28 +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
Alberto
63f7c18399
Merge pull request #3123 from consul/admin-questions
...
[Backport] Admin poll questions index
2018-12-26 11:32:28 +01:00
decabeza
9c827d6ce0
Adds poll name on admin poll questions index
2018-12-19 21:00:09 +01:00
decabeza
aebd29f7e2
Adds create question button to admin proposals show
2018-12-19 16:08:57 +01:00
voodoorai2000
7917cea676
Change to_not for not_to
...
Eventhough some of us sentimentals still like the syntax `to_not` the current trend is to move to the new syntax `not_to`.
In this commit we are updating the references of expectations that used `to_not` to `not_to`.
2018-12-15 12:33:28 +01:00
Julian Herrero
d819a9ccbc
add missing spec
2018-12-02 17:12:57 +01:00
Javi Martín
f5bb3c64a1
Don't run specs if there are custom fallbacks
...
This spec depends on French falling back to Spanish and was failing on
forks using a different fallback.
2018-10-22 16:36:18 +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
Javi Martín
759de935ee
Update polls translatable fields
...
The `:name` attribute is still allowed in the controller because some
forks use it when creating a poll from a budget.
2018-10-22 15:52:58 +02:00
Julian Herrero
df9955e0c6
make use of the new spec helper it_behaves_like translatable
2018-09-21 20:52:35 +02:00
Julian Herrero
673ec075eb
Make answers translatable
2018-09-20 17:13:40 +02:00
Julian Herrero
5e6248d2ac
Make questions translatable
2018-09-20 17:11:53 +02:00
Julian Herrero
9495208518
Make polls translatable
2018-09-20 17:07:43 +02:00
decabeza
20cf51c0bd
Updates texts on specs
2018-06-08 18:30:51 +02:00
Angel Perez
4c0deb0eca
Remove video_url attr from Admin::Poll::Question form
2018-05-23 07:27:12 -04:00
Angel Perez
44b1eb929a
Move 'Show stats and results' form to Admin::Poll#results tab
2018-05-23 07:27:12 -04:00
decabeza
f3ef5ae71e
Fixes poll questions answer images absolute path spec
2018-05-03 20:12:44 +02:00