decidim-consultations 0.11.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +51 -0
  3. data/Rakefile +3 -0
  4. data/app/assets/config/decidim_consultations_manifest.js +5 -0
  5. data/app/assets/config/decidim_consultations_manifest.scss +3 -0
  6. data/app/assets/images/decidim/consultations/icon.svg +70 -0
  7. data/app/assets/images/decidim/consultations/icon2.svg +88 -0
  8. data/app/assets/javascripts/decidim/consultations/show_more.js.es6 +12 -0
  9. data/app/assets/javascripts/decidim/consultations/social_share.js +2 -0
  10. data/app/assets/javascripts/decidim/consultations/utils.js.es6 +19 -0
  11. data/app/assets/javascripts/decidim/consultations/vote_dialog.js +36 -0
  12. data/app/assets/stylesheets/decidim/consultations/_question.scss +46 -0
  13. data/app/assets/stylesheets/decidim/consultations/_stats.scss +22 -0
  14. data/app/assets/stylesheets/decidim/consultations/_video_wrapper.scss +14 -0
  15. data/app/assets/stylesheets/decidim/consultations/banners/_block-banner.scss +39 -0
  16. data/app/assets/stylesheets/decidim/consultations/consultations.scss +6 -0
  17. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-banner.scss +13 -0
  18. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-card.scss +17 -0
  19. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +115 -0
  20. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-banner.scss +15 -0
  21. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-intro.scss +30 -0
  22. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-intro.scss +11 -0
  23. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-title.scss +26 -0
  24. data/app/assets/stylesheets/decidim/consultations/consultations/_consultations_nav.scss +7 -0
  25. data/app/assets/stylesheets/decidim/consultations/consultations/introductory_image.scss +3 -0
  26. data/app/assets/stylesheets/decidim/consultations/highlighted-content-banner.css.scss +42 -0
  27. data/app/assets/stylesheets/decidim/consultations/social_share.css.scss +18 -0
  28. data/app/commands/decidim/consultations/admin/create_consultation.rb +61 -0
  29. data/app/commands/decidim/consultations/admin/create_question.rb +68 -0
  30. data/app/commands/decidim/consultations/admin/create_response.rb +39 -0
  31. data/app/commands/decidim/consultations/admin/publish_consultation.rb +34 -0
  32. data/app/commands/decidim/consultations/admin/publish_consultation_results.rb +34 -0
  33. data/app/commands/decidim/consultations/admin/publish_question.rb +34 -0
  34. data/app/commands/decidim/consultations/admin/unpublish_consultation.rb +34 -0
  35. data/app/commands/decidim/consultations/admin/unpublish_consultation_results.rb +34 -0
  36. data/app/commands/decidim/consultations/admin/unpublish_question.rb +34 -0
  37. data/app/commands/decidim/consultations/admin/update_consultation.rb +64 -0
  38. data/app/commands/decidim/consultations/admin/update_question.rb +72 -0
  39. data/app/commands/decidim/consultations/admin/update_response.rb +46 -0
  40. data/app/commands/decidim/consultations/unvote_question.rb +37 -0
  41. data/app/commands/decidim/consultations/vote_question.rb +42 -0
  42. data/app/constraints/decidim/consultations/current_component.rb +28 -0
  43. data/app/constraints/decidim/consultations/current_question.rb +36 -0
  44. data/app/controllers/concerns/decidim/consultations/action_authorization.rb +38 -0
  45. data/app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb +24 -0
  46. data/app/controllers/concerns/decidim/consultations/admin/question_admin.rb +28 -0
  47. data/app/controllers/concerns/decidim/consultations/needs_consultation.rb +54 -0
  48. data/app/controllers/concerns/decidim/consultations/needs_question.rb +79 -0
  49. data/app/controllers/concerns/decidim/consultations/orderable.rb +52 -0
  50. data/app/controllers/decidim/consultations/admin/application_controller.rb +14 -0
  51. data/app/controllers/decidim/consultations/admin/categories_controller.rb +13 -0
  52. data/app/controllers/decidim/consultations/admin/component_permissions_controller.rb +13 -0
  53. data/app/controllers/decidim/consultations/admin/components_controller.rb +13 -0
  54. data/app/controllers/decidim/consultations/admin/consultation_publications_controller.rb +44 -0
  55. data/app/controllers/decidim/consultations/admin/consultation_results_publications_controller.rb +44 -0
  56. data/app/controllers/decidim/consultations/admin/consultations_controller.rb +100 -0
  57. data/app/controllers/decidim/consultations/admin/question_attachments_controller.rb +25 -0
  58. data/app/controllers/decidim/consultations/admin/question_publications_controller.rb +44 -0
  59. data/app/controllers/decidim/consultations/admin/questions_controller.rb +88 -0
  60. data/app/controllers/decidim/consultations/admin/responses_controller.rb +85 -0
  61. data/app/controllers/decidim/consultations/consultation_widgets_controller.rb +25 -0
  62. data/app/controllers/decidim/consultations/consultations_controller.rb +75 -0
  63. data/app/controllers/decidim/consultations/question_votes_controller.rb +40 -0
  64. data/app/controllers/decidim/consultations/question_widgets_controller.rb +26 -0
  65. data/app/controllers/decidim/consultations/questions_controller.rb +23 -0
  66. data/app/forms/decidim/consultations/admin/consultation_form.rb +56 -0
  67. data/app/forms/decidim/consultations/admin/question_form.rb +74 -0
  68. data/app/forms/decidim/consultations/admin/response_form.rb +18 -0
  69. data/app/forms/decidim/consultations/vote_form.rb +28 -0
  70. data/app/helpers/decidim/consultations/admin/consultations_helper.rb +14 -0
  71. data/app/helpers/decidim/consultations/admin/questions_helper.rb +14 -0
  72. data/app/helpers/decidim/consultations/consultations_helper.rb +17 -0
  73. data/app/models/concerns/decidim/consultations/override_categorization.rb +21 -0
  74. data/app/models/concerns/decidim/consultations/publicable_results.rb +51 -0
  75. data/app/models/decidim/consultation.rb +79 -0
  76. data/app/models/decidim/consultations/abilities/admin/consultation_admin_ability.rb +34 -0
  77. data/app/models/decidim/consultations/abilities/admin/question_admin_ability.rb +30 -0
  78. data/app/models/decidim/consultations/abilities/admin/response_admin_ability.rb +26 -0
  79. data/app/models/decidim/consultations/abilities/current_user_ability.rb +45 -0
  80. data/app/models/decidim/consultations/abilities/everyone_ability.rb +23 -0
  81. data/app/models/decidim/consultations/application_record.rb +9 -0
  82. data/app/models/decidim/consultations/question.rb +127 -0
  83. data/app/models/decidim/consultations/response.rb +19 -0
  84. data/app/models/decidim/consultations/vote.rb +26 -0
  85. data/app/presenters/decidim/consultations/question_stats_presenter.rb +52 -0
  86. data/app/queries/decidim/consultations/admin/admin_users.rb +40 -0
  87. data/app/queries/decidim/consultations/organization_active_consultations.rb +20 -0
  88. data/app/queries/decidim/consultations/organization_consultations.rb +20 -0
  89. data/app/queries/decidim/consultations/organization_questions.rb +20 -0
  90. data/app/services/decidim/consultations/consultation_search.rb +51 -0
  91. data/app/views/decidim/consultations/_consultation.html.erb +32 -0
  92. data/app/views/decidim/consultations/admin/consultations/_form.html.erb +58 -0
  93. data/app/views/decidim/consultations/admin/consultations/edit.html.erb +42 -0
  94. data/app/views/decidim/consultations/admin/consultations/index.html.erb +74 -0
  95. data/app/views/decidim/consultations/admin/consultations/new.html.erb +11 -0
  96. data/app/views/decidim/consultations/admin/questions/_form.html.erb +84 -0
  97. data/app/views/decidim/consultations/admin/questions/edit.html.erb +32 -0
  98. data/app/views/decidim/consultations/admin/questions/index.html.erb +74 -0
  99. data/app/views/decidim/consultations/admin/questions/new.html.erb +13 -0
  100. data/app/views/decidim/consultations/admin/responses/_form.html.erb +11 -0
  101. data/app/views/decidim/consultations/admin/responses/edit.html.erb +18 -0
  102. data/app/views/decidim/consultations/admin/responses/index.html.erb +48 -0
  103. data/app/views/decidim/consultations/admin/responses/new.html.erb +13 -0
  104. data/app/views/decidim/consultations/consultation_widgets/show.html.erb +5 -0
  105. data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +24 -0
  106. data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +17 -0
  107. data/app/views/decidim/consultations/consultations/_consultations.html.erb +16 -0
  108. data/app/views/decidim/consultations/consultations/_count.html.erb +1 -0
  109. data/app/views/decidim/consultations/consultations/_filters.html.erb +25 -0
  110. data/app/views/decidim/consultations/consultations/_filters_small_view.html.erb +23 -0
  111. data/app/views/decidim/consultations/consultations/_highlighted_questions.html.erb +13 -0
  112. data/app/views/decidim/consultations/consultations/_question.html.erb +40 -0
  113. data/app/views/decidim/consultations/consultations/_regular_questions.html.erb +14 -0
  114. data/app/views/decidim/consultations/consultations/finished.html.erb +15 -0
  115. data/app/views/decidim/consultations/consultations/index.html.erb +27 -0
  116. data/app/views/decidim/consultations/consultations/index.js.erb +10 -0
  117. data/app/views/decidim/consultations/consultations/show.html.erb +11 -0
  118. data/app/views/decidim/consultations/question_votes/update_vote_button.js.erb +9 -0
  119. data/app/views/decidim/consultations/question_widgets/show.html.erb +2 -0
  120. data/app/views/decidim/consultations/questions/_results.html.erb +15 -0
  121. data/app/views/decidim/consultations/questions/_right_column.html.erb +20 -0
  122. data/app/views/decidim/consultations/questions/_statistics.html.erb +31 -0
  123. data/app/views/decidim/consultations/questions/_technical_data.html.erb +38 -0
  124. data/app/views/decidim/consultations/questions/_vote_button.html.erb +76 -0
  125. data/app/views/decidim/consultations/questions/_vote_modal.html.erb +27 -0
  126. data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +33 -0
  127. data/app/views/decidim/consultations/questions/show.html.erb +58 -0
  128. data/app/views/layouts/decidim/_consultation_header.html.erb +16 -0
  129. data/app/views/layouts/decidim/_consultation_voting_data.html.erb +10 -0
  130. data/app/views/layouts/decidim/_question_components.html.erb +38 -0
  131. data/app/views/layouts/decidim/_question_header.html.erb +46 -0
  132. data/app/views/layouts/decidim/admin/consultation.html.erb +28 -0
  133. data/app/views/layouts/decidim/admin/consultations.html.erb +16 -0
  134. data/app/views/layouts/decidim/admin/question.html.erb +72 -0
  135. data/app/views/layouts/decidim/consultation.html.erb +17 -0
  136. data/app/views/layouts/decidim/consultation_choose.html.erb +7 -0
  137. data/app/views/layouts/decidim/question.html.erb +19 -0
  138. data/config/locales/ca.yml +248 -0
  139. data/config/locales/en.yml +249 -0
  140. data/config/locales/es.yml +248 -0
  141. data/config/locales/eu.yml +248 -0
  142. data/config/locales/fi.yml +248 -0
  143. data/config/locales/fr.yml +248 -0
  144. data/config/locales/gl.yml +248 -0
  145. data/config/locales/it.yml +248 -0
  146. data/config/locales/nl.yml +248 -0
  147. data/config/locales/pl.yml +258 -0
  148. data/config/locales/pt-BR.yml +248 -0
  149. data/config/locales/pt.yml +248 -0
  150. data/config/locales/ru.yml +6 -0
  151. data/config/locales/sv.yml +248 -0
  152. data/config/locales/uk.yml +6 -0
  153. data/db/migrate/20180109092205_create_decidim_consultations.rb +37 -0
  154. data/db/migrate/20180112053247_create_decidim_consultations_questions.rb +35 -0
  155. data/db/migrate/20180115132000_add_end_voting_date_to_decidim_consultations.rb +18 -0
  156. data/db/migrate/20180115170933_add_slug_to_decidim_consultations_questions.rb +32 -0
  157. data/db/migrate/20180119084217_create_decidim_consultations_votes.rb +17 -0
  158. data/db/migrate/20180119084331_add_votes_count_to_decidim_consultations_question.rb +7 -0
  159. data/db/migrate/20180122113155_add_origin_scope_to_decidim_consultations_questions.rb +8 -0
  160. data/db/migrate/20180122113400_add_origin_title_to_decidim_consultations_questions.rb +8 -0
  161. data/db/migrate/20180122113447_add_origin_string_to_decidim_consultations_questions.rb +7 -0
  162. data/db/migrate/20180126142459_add_enable_highlighted_banner_to_decidim_consultations.rb +7 -0
  163. data/db/migrate/20180129063438_add_i_frame_url_to_decidim_consultations_questions.rb +8 -0
  164. data/db/migrate/20180129063700_create_decidim_consultations_responses.rb +14 -0
  165. data/db/migrate/20180129122226_rename_decidim_consultations_vote_to_decidim_consultations_endorsement.rb +7 -0
  166. data/db/migrate/20180129122504_rename_decidim_consultations_questions_votes_count_to_endorsements_count.rb +7 -0
  167. data/db/migrate/20180130060754_add_responses_count_to_decidim_consultations_questions.rb +22 -0
  168. data/db/migrate/20180130110449_rename_vote_related_attributes.rb +9 -0
  169. data/db/migrate/20180130142018_add_decidim_user_group_id_to_decidim_consultations_endorsements.rb +7 -0
  170. data/db/migrate/20180130142411_rename_vote_indexes_to_endorsement_indexes.rb +36 -0
  171. data/db/migrate/20180131083844_add_response_to_decidim_consultations_endorsements.rb +10 -0
  172. data/db/migrate/20180201135823_rename_endorsement_to_vote.rb +23 -0
  173. data/db/migrate/20180202050920_add_hero_image_to_decidim_consultations_question.rb +8 -0
  174. data/db/migrate/20180202085309_add_results_published_at_to_decidim_consultations.rb +7 -0
  175. data/db/migrate/20180202133655_add_votes_count_to_decidim_consultations_response.rb +7 -0
  176. data/db/migrate/20180212100503_remove_enable_highlighted_banner_flag.rb +7 -0
  177. data/db/migrate/20180219092120_add_order_to_decidim_consultations_questions.rb +7 -0
  178. data/db/migrate/20180320100658_add_introductory_image_to_decidim_consultations.rb +7 -0
  179. data/db/seeds/Exampledocument.pdf +0 -0
  180. data/db/seeds/city.jpeg +0 -0
  181. data/db/seeds/city2.jpeg +0 -0
  182. data/db/seeds/homepage_image.jpg +0 -0
  183. data/lib/decidim/consultations.rb +18 -0
  184. data/lib/decidim/consultations/admin.rb +10 -0
  185. data/lib/decidim/consultations/admin_engine.rb +72 -0
  186. data/lib/decidim/consultations/engine.rb +83 -0
  187. data/lib/decidim/consultations/participatory_space.rb +171 -0
  188. data/lib/decidim/consultations/test/factories.rb +104 -0
  189. data/lib/decidim/consultations/version.rb +9 -0
  190. metadata +288 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b5b66084360da05f75652bec1fa0da1fdbacdc0f4a0cf65b9d7ab484bcc80c9f
4
+ data.tar.gz: 738d93da5870b48e688b531db22b767aaa974e614b73da6094131fc2e119ff77
5
+ SHA512:
6
+ metadata.gz: a4bf1f802a5e94b958cecb9fd96ea70914404496053c82c82fcb6e943a5ba0bf249d18116cab1a549b13e8db66d4406270aaf4547120f0174639dd23718aaf36
7
+ data.tar.gz: 53ace30c6fec63b609ab6d301759f22d8eac0e78b2adb0c4329b80528fc91cacdc253111b65c488877261122e694b465c8ea9d57864fb68be3923a70fc035d9d
@@ -0,0 +1,51 @@
1
+ # Decidim::Consultations
2
+
3
+ Decidim consultatios is a Decidim plugin that allows managing public consultations.
4
+
5
+ ## Usage
6
+
7
+ This plugin provides:
8
+
9
+ * A CRUD engine to manage consultations.
10
+
11
+ * Public views for initiatives via a high level section in the main menu.
12
+
13
+ * An URL that can be used in conjunction with an iframe element in order to embed a consultation inside an external page.
14
+
15
+ ## Installation
16
+
17
+ Add this line to your application's Gemfile:
18
+
19
+ ```ruby
20
+ gem 'decidim-consultations'
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ ```bash
26
+ bundle
27
+ bundle exec rails decidim_consultations:install:migrations
28
+ bundle exec rails db:migrate
29
+ ```
30
+
31
+ ## Embeding a consultation
32
+
33
+ In order to embed a consultation inside an external page we must use an iframe element. The url required to use it is
34
+ the same url for the consultation in Decidim but adding a '/embed' at the end. So for example if our consultation has
35
+ the following URL:
36
+
37
+ http://localhost:3000/consultations/sit-cumque
38
+
39
+ we should embed it using the following URL:
40
+
41
+ http://localhost:3000/consultations/sit-cumque/embed
42
+
43
+ Notice the '/embed' at the end of the URL.
44
+
45
+ ## Contributing
46
+
47
+ See [Decidim](https://github.com/decidim/decidim).
48
+
49
+ ## License
50
+
51
+ See [Decidim](https://github.com/decidim/decidim).
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "decidim/dev/common_rake"
@@ -0,0 +1,5 @@
1
+ //= link_directory ../images/decidim/consultations
2
+ //= link decidim/consultations/social_share.js
3
+ //= link decidim/consultations/utils.js
4
+ //= link decidim/consultations/vote_dialog.js
5
+ //= link decidim/consultations/show_more.js
@@ -0,0 +1,3 @@
1
+ //= link decidim/consultations/consultations.scss
2
+ //= link decidim/consultations/social_share.css.scss
3
+ //= link decidim/consultations/highlighted-content-banner.css.scss
@@ -0,0 +1,70 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ version="1.1"
9
+ id="svg2"
10
+ viewBox="0 0 121.08785 121.08785"
11
+ height="34.173683mm"
12
+ width="34.173683mm">
13
+ <defs
14
+ id="defs4" />
15
+ <metadata
16
+ id="metadata7">
17
+ <rdf:RDF>
18
+ <cc:Work
19
+ rdf:about="">
20
+ <dc:format>image/svg+xml</dc:format>
21
+ <dc:type
22
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
23
+ <dc:title></dc:title>
24
+ </cc:Work>
25
+ </rdf:RDF>
26
+ </metadata>
27
+ <g
28
+ transform="translate(-31.864728,-35.267277)"
29
+ id="layer1">
30
+ <circle
31
+ r="59.093925"
32
+ cy="95.811203"
33
+ cx="92.408653"
34
+ id="path4136"
35
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.9000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
36
+ <rect
37
+ ry="0"
38
+ y="69.37056"
39
+ x="60.79406"
40
+ height="22.358257"
41
+ width="22.358257"
42
+ id="rect4138"
43
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.63098097;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
44
+ <rect
45
+ style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.63100004;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
46
+ id="rect4140"
47
+ width="22.358257"
48
+ height="22.358257"
49
+ x="60.79406"
50
+ y="101.92418"
51
+ ry="0" />
52
+ <path
53
+ id="path4142"
54
+ d="m 94.357143,79.43363 35.393037,0"
55
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
56
+ <path
57
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
58
+ d="m 94.357143,113.43363 35.393037,0"
59
+ id="path4150" />
60
+ <text
61
+ id="text4154"
62
+ y="94.698593"
63
+ x="59.623905"
64
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:41.11339951px;line-height:125%;font-family:OpenSymbol;-inkscape-font-specification:OpenSymbol;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
65
+ xml:space="preserve"><tspan
66
+ y="94.698593"
67
+ x="59.623905"
68
+ id="tspan4156">&#x2714;</tspan></text>
69
+ </g>
70
+ </svg>
@@ -0,0 +1,88 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ version="1.1"
11
+ id="svg2"
12
+ viewBox="0 0 121.08785 121.08785"
13
+ height="34.173683mm"
14
+ width="34.173683mm"
15
+ inkscape:version="0.91 r13725"
16
+ sodipodi:docname="icon-consultation-plain.svg">
17
+ <sodipodi:namedview
18
+ pagecolor="#ffffff"
19
+ bordercolor="#666666"
20
+ borderopacity="1"
21
+ objecttolerance="10"
22
+ gridtolerance="10"
23
+ guidetolerance="10"
24
+ inkscape:pageopacity="0"
25
+ inkscape:pageshadow="2"
26
+ inkscape:window-width="1869"
27
+ inkscape:window-height="1050"
28
+ id="namedview4147"
29
+ showgrid="false"
30
+ inkscape:zoom="5.0512694"
31
+ inkscape:cx="69.560452"
32
+ inkscape:cy="50.889577"
33
+ inkscape:window-x="51"
34
+ inkscape:window-y="30"
35
+ inkscape:window-maximized="1"
36
+ inkscape:current-layer="text4154" />
37
+ <defs
38
+ id="defs4" />
39
+ <metadata
40
+ id="metadata7">
41
+ <rdf:RDF>
42
+ <cc:Work
43
+ rdf:about="">
44
+ <dc:format>image/svg+xml</dc:format>
45
+ <dc:type
46
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
47
+ <dc:title />
48
+ </cc:Work>
49
+ </rdf:RDF>
50
+ </metadata>
51
+ <g
52
+ transform="translate(-31.864728,-35.267277)"
53
+ id="layer1">
54
+ <path
55
+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.9000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
56
+ d="m 92.408203,35.267578 c -33.420312,0 -60.542969,27.122657 -60.542969,60.542969 -1e-6,33.420313 27.122657,60.544923 60.542969,60.544923 33.420317,0 60.544927,-27.12461 60.544917,-60.544923 0,-33.420313 -27.1246,-60.54297 -60.544917,-60.542969 z m 0,2.900391 c 31.853037,-10e-7 57.644527,25.789542 57.644527,57.642578 1e-5,31.853033 -25.79149,57.644533 -57.644527,57.644533 -31.853036,0 -57.642579,-25.7915 -57.642578,-57.644533 0,-31.853036 25.789543,-57.642578 57.642578,-57.642578 z"
57
+ id="path4136"
58
+ inkscape:connector-curvature="0" />
59
+ <path
60
+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.63098097;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
61
+ d="m 58.978516,67.554688 0,1.816406 0,24.173828 25.990234,0 0,-25.990234 -25.990234,0 z m 3.630859,3.630859 18.726563,0 0,18.728515 -18.726563,0 0,-18.728515 z"
62
+ id="rect4138"
63
+ inkscape:connector-curvature="0" />
64
+ <path
65
+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.63100004;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
66
+ d="m 58.978516,100.10938 0,1.81445 0,24.17383 25.990234,0 0,-25.98828 -25.990234,0 z m 3.630859,3.63085 18.726563,0 0,18.72657 -18.726563,0 0,-18.72657 z"
67
+ id="rect4140"
68
+ inkscape:connector-curvature="0" />
69
+ <path
70
+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
71
+ d="m 94.357422,76.933594 0,5 35.392578,0 0,-5 -35.392578,0 z"
72
+ id="path4142"
73
+ inkscape:connector-curvature="0" />
74
+ <path
75
+ style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
76
+ d="m 94.357422,110.93359 0,5 35.392578,0 0,-5 -35.392578,0 z"
77
+ id="path4150"
78
+ inkscape:connector-curvature="0" />
79
+ <g
80
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:41.11339951px;line-height:125%;font-family:OpenSymbol;-inkscape-font-specification:OpenSymbol;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
81
+ id="text4154">
82
+ <path
83
+ d="m 89.716183,63.201072 0.702622,1.02382 q -4.838051,3.673707 -9.957151,10.318499 -4.737677,6.22322 -7.608388,12.225616 -2.228314,1.465468 -3.974831,2.870711 -2.710112,-8.873107 -6.303519,-10.3185 2.027565,-2.308614 3.994905,-2.308614 1.686292,0 4.075205,5.641048 7.668613,-12.948312 19.071157,-19.45258 z"
84
+ style=""
85
+ id="path4153" />
86
+ </g>
87
+ </g>
88
+ </svg>
@@ -0,0 +1,12 @@
1
+ /* eslint-disable no-invalid-this */
2
+
3
+ (function() {
4
+ $(() => {
5
+
6
+ $(".show-more").on("click", function() {
7
+ $(this).hide();
8
+ $(".show-more-panel").removeClass("hide");
9
+ });
10
+
11
+ })
12
+ }(window));
@@ -0,0 +1,2 @@
1
+ // = require social-share-button
2
+ // = require_self
@@ -0,0 +1,19 @@
1
+ /* eslint-disable no-invalid-this, no-undefined */
2
+
3
+ (() => {
4
+ $(".vote-button-caption").mouseover(function () {
5
+ const replaceText = $(this).data("replace");
6
+
7
+ if (replaceText !== null && replaceText !== undefined && replaceText !== "") {
8
+ $(this).text(replaceText);
9
+ }
10
+ });
11
+
12
+ $(".vote-button-caption").mouseout(function () {
13
+ const originalText = $(this).data("original");
14
+
15
+ if (originalText !== null && originalText !== undefined && originalText !== "") {
16
+ $(this).text(originalText);
17
+ }
18
+ });
19
+ })(this);
@@ -0,0 +1,36 @@
1
+ /* eslint-disable no-invalid-this */
2
+
3
+ $(document).ready(function () {
4
+ let button = $("#vote_button"),
5
+ buttonChange = $("#question-vote-confirm-modal-button-change"),
6
+ responseButtons = $(".response-title"),
7
+ voteConfirmDialog = $("#question-vote-confirm-modal"),
8
+ voteDialog = $("#question-vote-modal");
9
+
10
+ if (voteDialog.length && button.length) {
11
+ button.click(function () {
12
+ voteDialog.foundation("open");
13
+ });
14
+ }
15
+
16
+ if (voteDialog.length && responseButtons.length && voteConfirmDialog.length) {
17
+ responseButtons.click(function () {
18
+ $("#question-vote-confirm-modal-question-title").text($(this).text());
19
+ $("#decidim_consultations_response_id").val($(this).data("response-id"));
20
+
21
+ voteDialog.foundation("close");
22
+ voteConfirmDialog.foundation("open");
23
+ });
24
+ }
25
+
26
+ if (buttonChange.length && voteDialog.length && voteConfirmDialog.length) {
27
+ buttonChange.click(function() {
28
+ voteConfirmDialog.foundation("close");
29
+ voteDialog.foundation("open");
30
+ });
31
+ }
32
+
33
+ $("#confirm-vote-form").on("ajax:success", function() {
34
+ voteConfirmDialog.foundation("close");
35
+ });
36
+ });
@@ -0,0 +1,46 @@
1
+ .question-group-heading{
2
+ text-transform: uppercase;
3
+ }
4
+
5
+ .question-header{
6
+ margin-top: 3em;
7
+ margin-bottom: 1.5em;
8
+
9
+ .heading1{
10
+ text-align: center;
11
+ font-size: 4em;
12
+ }
13
+
14
+ .question-hashtag{
15
+ text-align: center;
16
+ font-weight: bold;
17
+ font-size: 1.5em;
18
+ }
19
+ }
20
+
21
+ .question-header-data{
22
+ .question-header-data-group{
23
+ margin-bottom: 1em;
24
+ font-size: 1.2em;
25
+
26
+ .question-eader-data-group-title{
27
+ text-transform: uppercase;
28
+ color: #857d84;
29
+ }
30
+ }
31
+
32
+ .question-header-data-group:last-child{
33
+ margin-bottom: 0;
34
+ }
35
+ }
36
+
37
+ .question-vote-cabin{
38
+ margin-bottom: 3em;
39
+
40
+ .vote-button-caption{
41
+ font-size: 1.5em;
42
+ text-transform: uppercase;
43
+ font-weight: bold;
44
+ color: white;
45
+ }
46
+ }
@@ -0,0 +1,22 @@
1
+ .consultation-statistics{
2
+ margin-top: 3em;
3
+ display: flex;
4
+ flex-flow: row wrap;
5
+ justify-content: flex-start;
6
+ align-items: center;
7
+ align-content: stretch;
8
+
9
+ .definition-data__item{
10
+ flex-basis: 50%;
11
+ border-bottom: 0;
12
+ border-top: 1px solid rgb(232, 232, 232);
13
+ }
14
+
15
+ .definition-data__item:nth-child(-n+2){
16
+ border-top: 0;
17
+ }
18
+
19
+ .definition-data__item:nth-child(odd){
20
+ border-right: 1px solid rgb(232, 232, 232);
21
+ }
22
+ }
@@ -0,0 +1,14 @@
1
+ .video-wrapper{
2
+ position: relative;
3
+ padding-bottom: 56.25%; /* 16:9 */
4
+ padding-top: 25px;
5
+ height: 0;
6
+
7
+ iframe{
8
+ position: absolute;
9
+ top: 0;
10
+ left: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ }
14
+ }
@@ -0,0 +1,39 @@
1
+ .block-banner{
2
+ background-repeat: no-repeat;
3
+ padding: 1rem;
4
+
5
+ @include breakpoint(medium down){
6
+ background-image: none !important;
7
+ padding-bottom: 1rem;
8
+
9
+ .card__content{
10
+ padding-bottom: 0;
11
+ }
12
+ }
13
+
14
+ @include breakpoint(medium){
15
+ background-position: right -400px center;
16
+ padding-left: 1.5rem;
17
+ padding-right: 1.5rem;
18
+
19
+ .card__content{
20
+ height: 100%;
21
+ display: flex;
22
+ flex-direction: column;
23
+ justify-content: center;
24
+ }
25
+ }
26
+
27
+ @include breakpoint(large){
28
+ padding-left: 4rem;
29
+ padding-right: 4rem;
30
+
31
+ .card__content{
32
+ padding-left: 0;
33
+ }
34
+ }
35
+
36
+ p:last-child{
37
+ margin-bottom: 0;
38
+ }
39
+ }
@@ -0,0 +1,6 @@
1
+ @import "decidim/_decidim";
2
+ @import "question";
3
+ @import "video_wrapper";
4
+ @import "stats";
5
+ @import "consultations/*";
6
+ @import "banners/*";