Commit Graph

6907 Commits

Author SHA1 Message Date
decabeza
e24e9df4a5 adds section header on polls, make filter styles consistent 2017-08-30 18:10:59 +02:00
decabeza
c15b78b802 adds i18n ignore for section_header keys 2017-08-30 17:53:02 +02:00
Senén Rodero Rodríguez
6d66077a94 Make documentable capable to work with local or remote storage system. 2017-08-30 17:07:52 +02:00
Senén Rodero Rodríguez
5e6d1d799f Use absolute urls on document cached_attachment 2017-08-30 15:50:32 +02:00
decabeza
4e7e1410e9 includes help header and footer on debates and proposals 2017-08-29 18:46:10 +02:00
Bertocq
c1a18192c9 Remove ghostscript requisite, no longer in use 2017-08-29 11:46:16 +02:00
BertoCQ
fdf0d7eb14 Merge pull request #1805 from consul/users-proposal
Users proposal list
2017-08-29 10:14:27 +02:00
decabeza
0b93f1c119 adds text to retired proposal 2017-08-26 13:11:25 +02:00
BertoCQ
abad0f5618 Merge pull request #1806 from consul/external-links
External links on proposal show
2017-08-25 21:35:46 +02:00
Senén Rodero Rodríguez
57930df535 Remove unused code 2017-08-25 19:14:15 +02:00
Alessandro Cuoghi
b0e4c5d66c Hide progress bar for remove white space on init form. Added display block via js to show progrss bar. Added some margin. 2017-08-25 18:50:02 +02:00
Senén Rodero Rodríguez
2fdbbf15e5 Fix back link 2017-08-25 18:41:34 +02:00
Senén Rodero Rodríguez
796e6f9ce1 Code adaptation to work with nested documents and plain documents. 2017-08-25 18:34:55 +02:00
Senén Rodero Rodríguez
b2a6189cf5 Views and helpers refactor 2017-08-25 18:34:54 +02:00
Senén Rodero Rodríguez
d67ad6d6d0 Fix overlapping error on Travis with make_visible option on attach_field spec helper 2017-08-25 18:34:54 +02:00
Senén Rodero Rodríguez
f4ac8b17d0 Store AJAX uploaded documents with timestamp prefix to avoid file name collision. Remove cached_attachments after document save. 2017-08-25 18:34:54 +02:00
Senén Rodero Rodríguez
2e1d98c408 Fix use of an old route 2017-08-25 18:34:54 +02:00
Alessandro Cuoghi
cae588a759 Refactor scss. Pass scss-lint. 2017-08-25 18:34:54 +02:00
Alessandro Cuoghi
a32849c79b Changed style button. Add margin top progress bar. 2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
1be9d40fff Fix capybara error when attaching a file to hidden file input. 2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
0fbffdc73e Fix abilities definition and related specs 2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
8e91bbe5b5 Fix document validations specs 2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
4081dded5f Add nested documents to new budgetinvestments. 2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
d34216b5a7 Refactor nested documentable spec 2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
0db49fda4e Fix translations error and refactor nested documentable shared example spec. 2017-08-25 18:34:52 +02:00
Senén Rodero Rodríguez
a06eec37c2 Temporal fix to file upload files 2017-08-25 18:34:52 +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
0b23467f3e Fix partial variable name 2017-08-25 18:34:52 +02:00
Senén Rodero Rodríguez
4cfe841af9 Create separate reusable partial for nested document fields. 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
e327b420ff Ajax file upload to tmp dir. Add cached_attachment to document. Recover image from cache. Add progress bar. 2017-08-25 18:34:51 +02:00
Senén Rodero Rodríguez
9a0b34fffe Install jquery-file-upload assets for rails. 2017-08-25 18:34:51 +02:00
Alessandro Cuoghi
45fc5c4fa2 Changed primary class with warning class in the callout. Added strong text into documents.yml for esp and eng. 2017-08-25 18:34:51 +02:00
Senén Rodero Rodríguez
593da5e76b Show maximum number of document reached notice only when current user has document creations permissions. 2017-08-25 18:34:51 +02:00
Senén Rodero Rodríguez
c438e510c0 Add rel attribute with nofollow value. 2017-08-25 18:34:51 +02:00
Senén Rodero Rodríguez
a709cd0479 Add accept HTML attribute to documents form file input. 2017-08-25 18:34:50 +02:00
Senén Rodero Rodríguez
0edd5d8c2c Add missing class to file input custom error to hide and show correctly. 2017-08-25 18:34:50 +02:00
Alessandro Cuoghi
e266826628 Added margin bottom to attachment-errors. Remove unused space between buttons. Passed scss-lint. 2017-08-25 18:34:50 +02:00
Senén Rodero Rodríguez
92e8468e89 Use documentables helper method within specs and document model. 2017-08-25 18:34:50 +02:00
Senén Rodero Rodríguez
17ad148cd7 Fix i18n translations warnings. 2017-08-25 18:34:50 +02:00
Alessandro Cuoghi
63621aa526 Style radio buttons. Added icon inside the table. Adjusted buttons with the same width. Changed position buttons in responsive. Pass scss-lint. 2017-08-25 18:34:50 +02:00
Senén Rodero Rodríguez
3a7c9d9f83 Add documentables helper 2017-08-25 18:34:49 +02:00
Senén Rodero Rodríguez
38d4d59241 Add arguments to documentable concern to make it configurable for any recipient model. 2017-08-25 17:27:37 +02:00
Alessandro Cuoghi
62372aaee3 Added translation buttons download, destroy, link. Remove white space. 2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
6b61cbe35c Set maximum number of documents on proposal and budget investments. Show alert on documents tab when maximum reached. Hide upload button when maximum reached. 2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
462931845b Fix back link on document new page. 2017-08-25 17:27:37 +02:00
Alessandro Cuoghi
27b3c60e92 Added style button download and remove. Removed border on table. 2017-08-25 17:27:37 +02:00
Alessandro Cuoghi
143c8889f3 Center in the page new document-form. Added style recommendations sidebar. 2017-08-25 17:27:37 +02:00