Bertocq
900d8a00b1
Make milestone's description a required attribute
2017-12-15 16:38:21 +01:00
Raimond Garcia
d0b407d4e5
Merge pull request #2183 from consul/related-content
...
Related contents functionalities
2017-12-15 10:00:43 +01:00
Raimond Garcia
9ba8ca7de3
Merge pull request #2187 from consul/notifications
...
Fix notifications' exceptions
2017-12-14 22:11:27 +01:00
Alberto García
1737f85398
Merge branch 'master' into aperez-dates-for-milestones
2017-12-14 20:50:55 +01:00
María Checa
88fc740863
Moved RELATIONABLE_MODELS from controller to model
2017-12-14 20:48:32 +01:00
rgarcia
2b52d26d82
refactors notifications into concerns and shared examples
2017-12-14 16:15:30 +01:00
iagirre
01a8c55936
Make Budget::Investment::Milestone class Documentable.
...
Add fields to the milestone form so that the admin can attach 0, 1 or multiple documents.
Add column to milestone list with a link to documents (if there is any).
Make documents accessible from the milestone view for users.
2017-12-14 10:53:01 +01:00
Angel Perez
6d57d76071
Admins can add a 'publication date' to milestones
2017-12-13 20:17:54 -04:00
Raimond Garcia
97f549ac10
Merge pull request #2186 from wairbut-m2c/iagirre-add-images-to-milestones
...
Add Images to Milestones
2017-12-13 19:56:04 +01:00
rgarcia
abaf6ab785
adds model validations for legislation proposals
2017-12-13 12:52:25 +01:00
iagirre
35986ea6b5
Budget::Investment::Milestone is imageable
...
Admin form attaches an image
Milestone list has a column "Image", empty or with a link to the image
2017-12-13 08:59:36 +01:00
Bertocq
3139d760ec
Remove unuseful comment on imageable concern
2017-12-12 12:38:54 +01:00
Raimond Garcia
22a8157165
Merge branch 'master' into aperez-email-specs-for-commentables
2017-12-07 13:05:25 +01:00
Bertocq
cd021aee4b
Add relationed_contents helper function on Relationable concern with spec
2017-11-29 19:02:25 +01:00
Bertocq
0482eb4098
Add report_related_content helper funcion on Relationable concern with spec
2017-11-29 19:02:25 +01:00
Bertocq
e02f511b3a
Add times_reported integer attribute to RelatedContent
2017-11-29 19:02:14 +01:00
Bertocq
04dfc98c3f
Create RelatedContent model spec to check relationable destroy
2017-11-29 19:01:50 +01:00
Bertocq
03f0534b2f
Add scenario to RelatedContent model spec to check opposite related content creation
2017-11-29 19:01:12 +01:00
Bertocq
13f5fa55ab
Use Relationable concern on Debates, Proposals and Budget Investments
2017-11-29 19:01:12 +01:00
Bertocq
8f3769aa7d
Create Relationable concern
2017-11-29 19:01:12 +01:00
Bertocq
a138cda364
Create RelatedContent model
2017-11-29 19:00:54 +01:00
Bertocq
c5fa85e3f6
Prevent a division by zero from happening on sort by random investment scope
2017-11-29 11:40:10 +01:00
María Checa
3984d6a947
Merge pull request #2115 from wairbut-m2c/iagirre-heading-population-restriction-validation
...
Iagirre heading population restriction validation
2017-11-28 20:06:53 +01:00
Raimond Garcia
9e12d67f3f
Merge pull request #2114 from wairbut-m2c/iagirre-booth-assignment-removal
...
Iagirre booth assignment removal
2017-11-28 19:59:20 +01:00
Raimond Garcia
778ddbee0f
Merge pull request #2131 from wairbut-m2c/iagirre-budget-pagination-bug
...
Iagirre budget pagination bug
2017-11-27 16:49:27 +01:00
BertoCQ
104a26db35
Merge pull request #2110 from wairbut-m2c/aperez-remove-valuator-role
...
Add option to unassign Valuator role
2017-11-21 16:34:16 +01:00
Juanjo Bazán
21b2a11339
adds poll comments to API
2017-11-21 14:31:03 +01:00
Angel Perez
2bdc2c27d7
Add email specs for Poll
2017-11-17 13:14:03 -04:00
Angel Perez
db86cc5216
Enable 'destroy' action for Valuator on controller
2017-11-17 13:12:26 -04:00
iagirre
f3527b1311
Test added to check the repetition of elements between pages when random order used. Scope variable initialized to 1
2017-11-15 09:01:35 +01:00
iagirre
7f0e447e0f
One aproach to make the randomness work with kaminari
2017-11-15 08:56:31 +01:00
Bertocq
db54273dad
Replace == 0 comparisions for .zero?
2017-11-13 02:27:38 +01:00
Bertocq
cd66ba5d54
Rubocop autocorrections
2017-11-13 02:22:00 +01:00
Raimond Garcia
0e5c8d6aaf
Merge pull request #2100 from deivid-rodriguez/fix/direct_messages_max_per_day
...
Fix `direct_messages_max_per_day` set to nil
2017-11-09 19:14:29 +01:00
Raimond Garcia
ad37606129
Merge branch 'master' into legislation-processes-documents
2017-11-08 11:31:09 +01:00
iagirre
bfcbb6c0ad
Validation in model and in form added. When users makes the on focus on population field an explanation appears. Some specs added to test the model validations
2017-10-31 13:04:30 +01:00
iagirre
1077e25b2b
Shifts are destroyed when a booths is unassigned. An alert appears if there are shifts, but it doesn't if there aren't.
2017-10-30 12:36:07 +01:00
iagirre
89425f50ef
First steps to destroy shifts when booth_assignments are destroyed
2017-10-27 14:57:32 +02:00
María Checa
5ae31a6d01
Prevent responsible_name and question from validation
2017-10-27 10:43:37 +02:00
María Checa
b556617a80
Changed permissions to vote Legislation Proposals and Answers
2017-10-25 16:43:25 +02:00
María Checa
b5f2f9aa21
Added cached_votes_total and cached_votes_down to Legislation Proposals
2017-10-25 16:42:24 +02:00
decabeza
f0cfe50de4
Merge branch 'master' into 1856-legislation_processes_proposals_phase
2017-10-25 11:52:31 +02:00
rgarcia
ca63e4998f
adds permissions for poll's results and stats
2017-10-23 21:34:13 +02:00
Bertocq
f9458b9ef0
Show booth associated to current/recounting/incoming polls on shift management admin panel
2017-10-23 19:09:57 +02:00
María Checa
84f67db26d
Added restrictions to access Poll results and stats
2017-10-23 14:17:25 +02:00
María Checa
5a9ee4642e
Merge branch 'master' into 1786-poll_results
2017-10-23 13:43:58 +02:00
David Rodríguez
97331cb1c9
Fix direct_messages_max_per_day set to nil
...
When set to nil, it should mean not zero, but "infinite".
2017-10-23 12:15:31 +02:00
María Checa
e85c98f4b4
Improved results and stats percentages
2017-10-20 17:18:54 +02:00
María Checa
9bbf0b1ef9
Improved most_voted method
2017-10-20 16:48:54 +02:00
Bertocq
7507f43ea8
Add helper method on Booth model to get booth assigment for a given poll
2017-10-19 21:30:31 +02:00