Commit Graph

8771 Commits

Author SHA1 Message Date
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
Alessandro Cuoghi
1c835073a8 Changed icon-documents color. 2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
586776efd8 Add documentable to proposal model. 2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
a2130689ed Create documentable concern and add it to budget investment model. Create documents controller, documents helper, routes, translations and specs 2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
c92827e89e Add abilities to documentable authors and admins to create and destroy documents. 2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
34d06dad04 Add document model validations and model shared specs. 2017-08-25 17:27:37 +02:00
Senén Rodero Rodríguez
a141c82e33 Create new polymorphic model Document. 2017-08-25 17:27:37 +02:00
decabeza
e85c71fe9a improves styles for external links on proposal show 2017-08-25 13:45:50 +02:00
Bertocq
3103fc3459 Verify seeds valuator user 2017-08-25 13:00:05 +02:00
decabeza
f9e5086a95 fixes table on users proposal list 2017-08-25 12:12:21 +02:00
BertoCQ
7d95edf93e Merge pull request #1802 from consul/share-whatsapp
Share button WhatsApp
2017-08-17 23:10:13 +02:00
BertoCQ
1e5c77293c Merge pull request #1803 from consul/html-issue
HTML Tag
2017-08-17 22:49:28 +02:00
decabeza
099c3f888d changes styles to show missing divider lines 2017-08-17 17:31:43 +02:00
decabeza
bf33a00863 replaces div tags inside span 2017-08-17 17:31:29 +02:00
Bertocq
89452645ee Use CGI.escape for whatsapp title sharing 2017-08-17 14:14:30 +02:00
BertoCQ
eed30e6375 Update spanish Code of Conduct to 1.4 2017-08-17 13:18:57 +02:00
decabeza
decbd261bb improves styles to whatsapp share icon 2017-08-16 13:41:13 +02:00
decabeza
827e4702a9 removes duplicated social share partial on legislation views 2017-08-16 13:40:46 +02:00
decabeza
247ceed3f4 escape quotation marks on whatsapp share links 2017-08-16 13:40:12 +02:00
BertoCQ
5da7952a18 Merge pull request #1795 from artofhuman/fix-datetime-locale
Return datetime format for en locale
2017-08-10 23:16:14 +02:00
BertoCQ
4311b405d6 Merge pull request #1798 from artofhuman/fix-double-button
Show bottom proposals button only if proposals exists
2017-08-10 23:09:21 +02:00
Semyon Pupkov
87093b08b7 Show bottom proposals button only if proposals exists 2017-08-10 23:58:59 +05:00
María Checa
92de42da75 Merge pull request #1796 from consul/html-issue
HTML issue
2017-08-10 11:19:22 +02:00