Senén Rodero Rodríguez
5dc0f7f054
Add :except and :only options to translatable_params method
...
Allow to choose among resource model translatable attributes.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
bd3bb72370
Add proposals translation interface
...
* Convert proposal form into translatable one.
* Adapt translatable shared spec to define an owner when running at
frontend feature specs.
* Remove old attributes from strong parameters.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
02be0c61f9
Add proposal translations
...
Adapt retire form to include needed translations and move validations
from controller to model.
Also change sanitizable concern to sanitize not marked for destruction
translations.
2019-06-27 09:19:36 +02:00
Julian Herrero
d4ec750428
Show archived proposals in selected proposals list
2019-05-30 11:19:38 +02:00
Julian Herrero
a852696eeb
Remove not selected proposals from other lists
2019-05-30 11:19:38 +02:00
Julian Herrero
b68a872298
Change links for proposals lists
...
Changed applied:
- Remove Archived proposals from tab and add a link under Proposals
lists
- Remove Popular proposals link from custom section and add it to the
Proposals lists
- Remove Retired proposals link from custom section and add it to the
Proposals lists
- Remove Selected proposals link from custom section and add it to the
Proposals lists
2019-05-30 11:19:38 +02:00
Julian Herrero
ad5f7a06e1
Allow admins to select proposals and users to list them
2019-05-30 11:19:33 +02:00
decabeza
0995480b73
Remove question and external_url fields from proposals
2019-04-30 11:35:47 +02:00
decabeza
91be3cf775
Fix more hound warnings
2019-03-27 15:22:14 +01:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Julian Herrero
d24376f6ad
Use double quotes in controllers/
2019-03-13 22:19:49 +01:00
decabeza
25c8212e80
Remove proposal improvement path setting
2019-02-19 11:07:58 +01:00
rogelio-o
f1bb1ff8de
Moves attributes to a concern.
2019-01-14 20:26:47 +01:00
rogelio-o
ea76179002
Solves #3153 . It refactors images attributes.
2019-01-12 17:42:55 +01:00
decabeza
37da986014
Adds settings for featured proposals
2018-12-04 18:04:36 +01:00
decabeza
609d2083f8
Changes proposals controller to always load featured proposals
2018-12-04 17:46:46 +01:00
Juan Salvador Pérez García
77dd60427d
Implements story #136
...
Adds draft state for proposals
2018-07-17 17:46:54 +02:00
Angel Perez
a143fa447b
Ensure recommendations are only shown when enabled
2018-07-15 21:28:58 -04:00
Angel Perez
463c753880
Recommendations are automatically disabled if dismissed by user
2018-07-15 21:28:58 -04:00
Angel Perez
a58f6a2662
Enable 'Recommended proposals' setting for users
2018-07-15 21:28:57 -04:00
decabeza
bdb3f30e40
Adds recommendations on proposals index
2018-07-15 21:28:57 -04:00
iagirre
21b1d00205
Add backend for the moderators
...
Add new routes for the proposal notifications edition and
abilities to let moderators edit it (mark as ignored, hide, etc.).
The notifications are not flaggable because they doesn't work like that,
but in a similar way. The moderator/administrator is in charge of hidding
them through the UI, so the normal users don't flag it as inappropriate.
New controller Moderation::ProposalNotification to manage the moderators
work.
2018-07-02 18:17:45 +02:00
decabeza
bdedb023d1
Adds view mode on proposals
2018-04-02 17:27:52 +02:00
Angel Perez
665a5b57ab
Empty instances of MapLocation won't result in a new DB record ( #2220 )
2018-01-26 09:26:48 -04:00
rgarcia
19a084c0c7
adds map validations
2017-12-19 20:32:55 +01:00
Raimond Garcia
d0b407d4e5
Merge pull request #2183 from consul/related-content
...
Related contents functionalities
2017-12-15 10:00:43 +01:00
María Checa
1830a7bb04
Added pagination for relationed content list
2017-12-14 20:54:35 +01:00
Angel Perez
ab9d612128
'Proposals' feature can be enabled/disabled
...
Fixes #1886
2017-11-17 13:10:55 -04:00
Raimond Garcia
f68d86a2e5
Merge pull request #1824 from rockandror/user-recomendations
...
User recomendations
2017-09-29 19:02:03 +02:00
Senén Rodero Rodríguez
92c774cdeb
Merge with master
2017-09-28 13:36:20 +02:00
Senén Rodero Rodríguez
5956207a00
Add map locations. Each map location can belongs to proposal or budget investment.
2017-09-27 14:48:12 +02:00
Senén Rodero Rodríguez
f6fba64012
Remove uneeded document and image initializations
2017-09-26 13:57:14 +02:00
Senén Rodero Rodríguez
0a86727c6a
Move method 'recover_image_from_cache' from imageable controllers to image.
2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
c22637c349
Move method 'recover_documents_from_cache' from documentable controllers to document.
2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
d98d1312ca
Add _destroy parameter to nested image
2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
77f63a4c44
Add _destroy parameter to nested documents
2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
6f71da07ee
Duplicate documentable code and rename for imageable
2017-09-26 13:55:03 +02:00
BertoCQ
f67ba62c49
Merge branch 'master' into user-recomendations
2017-09-19 18:56:12 +02:00
Bertocq
e4e78c8f16
Rubocop autocorrections
2017-09-14 15:08:35 +02:00
Alberto
c3b3a837a9
Merge branch 'master' into user-recomendations
2017-09-05 11:31:05 +02:00
Senén Rodero Rodríguez
cc89907bff
Add nested documents to proposal form.
2017-08-25 18:34:52 +02:00
Senén Rodero Rodríguez
723173ae39
Show validation errors on nested documents.
2017-08-25 18:34:52 +02:00
Senén Rodero Rodríguez
f226d2ac94
Fix edit and update actions
2017-08-25 18:34:52 +02:00
Senén Rodero Rodríguez
e9c5f77368
Accept nested attributes for documents on proposals. Adapt documentable js file to allow many input files at the same page.
2017-08-25 18:34:51 +02:00
Senén Rodero Rodríguez
586776efd8
Add documentable to proposal model.
2017-08-25 17:27:37 +02:00
taitus
6e2063310f
Add empty recommended messages text.
2017-08-04 13:27:03 +02:00
taitus
fe3bb7a389
Add recommended tab on proposals and debates index.
2017-08-01 16:31:44 +02:00
Bertocq
69f4e1c683
Fix all rubocop Metrics/LineLength issues (140+)
2017-07-10 13:22:49 +02:00
Juanjo Bazán
616efbffed
uses path instead of url for proposal improvement link
2017-06-23 13:12:46 +02:00
decabeza
ea38f79442
removes specs of proposals successful banner
2017-06-05 17:55:37 +02:00