Commit Graph

659 Commits

Author SHA1 Message Date
Bertocq
4916f9a3c3 Avoid listing non-published Budgets to the public
Why:

Non-admins shouldn't be aware of non-published Budgets

How:

Using the budget_published? helper method
2018-01-08 23:02:18 +01:00
Angel Perez
c46639dbb0 Add 'image_url' SEO properties to Proposal & Budget::Investment 'show' views 2017-12-18 09:55:44 -04:00
decabeza
463731c731 adds documentation text shared i18n key 2017-12-15 18:48:24 +01:00
Bertocq
01b9aa82d6 Set a default hidden title value on milestones admin form, and avoid showing it to the user 2017-12-15 16:39:03 +01:00
Alberto García
1737f85398 Merge branch 'master' into aperez-dates-for-milestones 2017-12-14 20:50:55 +01:00
Alberto García
09b544774d Merge pull request #2191 from wairbut-m2c/iagirre-add-documents-to-milestones
Add documents to milestones
2017-12-14 20:49:19 +01:00
BertoCQ
50b4f50eac Merge branch 'master' into aperez-dates-for-milestones 2017-12-14 15:42:35 +01:00
Alberto García
19925de06b Merge pull request #2170 from consul/design
Design improvements
2017-12-14 11:31:31 +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
03ae14c613 End-users will be shown a milestone's publication date if available 2017-12-13 20:17:54 -04:00
iagirre
59a4b93a00 Add I18n texts for milestone images.
Add specs to test admin image uploader and milestones' show.
Modify the UI to fit the mockups provided in the issue.
2017-12-13 14:03:46 +01:00
iagirre
5186149b33 Add I18n texts for the link to see the image.
The image is shown in the public investment window if the milestone has one.
2017-12-13 08:59:54 +01:00
decabeza
e9ad4b49fb improves styles for follow button 2017-12-07 11:12:46 +01:00
decabeza
39def428b5 improves layout for items list with images 2017-12-06 21:00:34 +01:00
decabeza
864c022b08 adds margin to maps on show views 2017-12-06 15:37:46 +01:00
decabeza
c32a70d2a9 improves css for items on list with images 2017-10-03 13:57:01 +02:00
decabeza
5e9a452e55 removes unnecessary blank space 2017-10-03 13:56:16 +02:00
BertoCQ
1b4f6d5cae Merge pull request #1938 from consul/imageable-polish
Imageable polish
2017-10-02 21:42:15 +02:00
BertoCQ
01e4447050 Merge pull request #1923 from wairbut-m2c/iagirre-preview-budget-results
Admins can see the preview of the budgets' results before the balloti…
2017-10-02 21:40:04 +02:00
decabeza
1a0467d2c6 adds data equalizer watch to prevent js errors 2017-09-29 09:23:05 +02:00
decabeza
8aaa0cb718 adds data equalizer to fix height on items with images 2017-09-28 15:20:00 +02:00
Senén Rodero Rodríguez
130e4533ac Allow to render map without marker on new forms. 2017-09-27 14:48:12 +02:00
Senén Rodero Rodríguez
874a951dd2 Add map locations helper. Allow to configure map marker edition on map instantiation at views. 2017-09-27 14:48:12 +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
2993ef8707 Remove documents single uploads 2017-09-27 11:04:56 +02:00
Senén Rodero Rodríguez
eef8ad1b73 Remove images single uploads 2017-09-27 10:41:48 +02:00
Senén Rodero Rodríguez
2854c0b683 Some fixes and refactor 2017-09-26 13:57:14 +02:00
Senén Rodero Rodríguez
f8d78ec4ab Remove new_nested action from images controller. Use cocoon gem to manage new nested fields creation on images. 2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
88a7a29d27 Remove new_nested action from documents controller. Use cocoon gem to manage new nested fields creation on documents. 2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
824dd26d5a User new direct uploads controllers action on documentable. Skipped spec. 2017-09-26 13:55:51 +02:00
Senén Rodero Rodríguez
ceabd16d57 Refactor. Create index scope inside imageable shared examples to check index action of any imageable model. Add image to proposals index. 2017-09-26 13:55:03 +02:00
Senén Rodero Rodríguez
6f71da07ee Duplicate documentable code and rename for imageable 2017-09-26 13:55:03 +02:00
Bertocq
614ff79ba1 WIP 2017-09-26 13:53:43 +02:00
Senén Rodero Rodríguez
8ce237805c Add forgotten translation to locale files. 2017-09-26 13:53:43 +02:00
Senén Rodero Rodríguez
45d907219a Fix unused translations warning. 2017-09-26 13:53:43 +02:00
Senén Rodero Rodríguez
cf9a7a21cc Add method to investments helper to calculate absolute url for investments images. Use it in social share widget. 2017-09-26 13:53:43 +02:00
Senén Rodero Rodríguez
66c1074350 Fix spacing 2017-09-26 13:53:43 +02:00
Senén Rodero Rodríguez
ec92749c00 Add image errors to new budget investement form 2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
60b3eac305 Relocate some locale entries. 2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
79ed66ec4c Rename investment helper method 2017-09-26 13:53:42 +02:00
Alessandro Cuoghi
c89dc90d3a Added style to text with error. 2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
4c8d0e05b8 Show errors row on budget investment edit image page only when any image error detected. 2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
c914c772c0 Add budget investment image dimmensions validator. 2017-09-26 13:53:42 +02:00
Alessandro Cuoghi
ce3193e763 Added style to the button to upload image into budgets/investments/new. Refactor some css into partecipation.scss for pass scss-lint. 2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
1327b7276d Create investments helper. Fix indentation error and some specs names and structure. 2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
4469aa9b32 Allow to remove budget investment image from edit image page to authors and administrators. 2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
943ef06ec8 Use large version of image on budget investment show page 2017-09-26 13:53:42 +02:00
Alessandro Cuoghi
31bfe0f974 Removed comment and blank spaces 2017-09-26 13:53:42 +02:00
Alessandro Cuoghi
6cde1c1c10 Added upload image button. Created function to show file upload name. Added translation. 2017-09-26 13:53:42 +02:00
Alessandro Cuoghi
4ce8e14f86 Replaced div with tag 'figure' in budget investment show. 2017-09-26 13:53:42 +02:00