decidim-challenges 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE-AGPLv3.txt +661 -0
  3. data/README.md +49 -0
  4. data/Rakefile +9 -0
  5. data/app/cells/decidim/challenges/challenge_cell.rb +21 -0
  6. data/app/cells/decidim/challenges/challenge_g/show.erb +47 -0
  7. data/app/cells/decidim/challenges/challenge_g_cell.rb +69 -0
  8. data/app/cells/decidim/problems/problem_cell.rb +21 -0
  9. data/app/cells/decidim/problems/problem_g/show.erb +35 -0
  10. data/app/cells/decidim/problems/problem_g_cell.rb +61 -0
  11. data/app/cells/decidim/solutions/solution_cell.rb +21 -0
  12. data/app/cells/decidim/solutions/solution_g/show.erb +30 -0
  13. data/app/cells/decidim/solutions/solution_g_cell.rb +84 -0
  14. data/app/commands/decidim/challenges/admin/create_challenge.rb +67 -0
  15. data/app/commands/decidim/challenges/admin/destroy_challenge.rb +49 -0
  16. data/app/commands/decidim/challenges/admin/export_challenge_surveys.rb +45 -0
  17. data/app/commands/decidim/challenges/admin/publish_challenge.rb +40 -0
  18. data/app/commands/decidim/challenges/admin/unpublish_challenge.rb +40 -0
  19. data/app/commands/decidim/challenges/admin/update_challenge.rb +72 -0
  20. data/app/commands/decidim/challenges/admin/update_surveys.rb +43 -0
  21. data/app/commands/decidim/challenges/survey_challenge.rb +67 -0
  22. data/app/commands/decidim/command_utils.rb +20 -0
  23. data/app/commands/decidim/problems/admin/create_problem.rb +66 -0
  24. data/app/commands/decidim/problems/admin/destroy_problem.rb +49 -0
  25. data/app/commands/decidim/problems/admin/publish_problem.rb +40 -0
  26. data/app/commands/decidim/problems/admin/unpublish_problem.rb +40 -0
  27. data/app/commands/decidim/problems/admin/update_problem.rb +69 -0
  28. data/app/commands/decidim/solutions/admin/create_solution.rb +65 -0
  29. data/app/commands/decidim/solutions/admin/destroy_solution.rb +43 -0
  30. data/app/commands/decidim/solutions/admin/publish_solution.rb +40 -0
  31. data/app/commands/decidim/solutions/admin/unpublish_solution.rb +40 -0
  32. data/app/commands/decidim/solutions/admin/update_solution.rb +67 -0
  33. data/app/commands/decidim/solutions/create_solution.rb +67 -0
  34. data/app/controllers/concerns/decidim/challenges/admin/filterable.rb +27 -0
  35. data/app/controllers/concerns/decidim/challenges/orderable_challenges.rb +37 -0
  36. data/app/controllers/concerns/decidim/problems/admin/filterable.rb +27 -0
  37. data/app/controllers/concerns/decidim/problems/orderable_problems.rb +37 -0
  38. data/app/controllers/concerns/decidim/solutions/admin/filterable.rb +27 -0
  39. data/app/controllers/concerns/decidim/solutions/orderable_solutions.rb +37 -0
  40. data/app/controllers/concerns/decidim/with_default_filters.rb +23 -0
  41. data/app/controllers/concerns/decidim/with_sdgs.rb +19 -0
  42. data/app/controllers/decidim/challenges/admin/application_controller.rb +15 -0
  43. data/app/controllers/decidim/challenges/admin/challenge_publications_controller.rb +53 -0
  44. data/app/controllers/decidim/challenges/admin/challenges_controller.rb +108 -0
  45. data/app/controllers/decidim/challenges/admin/survey_form_controller.rb +43 -0
  46. data/app/controllers/decidim/challenges/admin/surveys_controller.rb +104 -0
  47. data/app/controllers/decidim/challenges/application_controller.rb +13 -0
  48. data/app/controllers/decidim/challenges/challenges_controller.rb +70 -0
  49. data/app/controllers/decidim/challenges/surveys_controller.rb +61 -0
  50. data/app/controllers/decidim/problems/admin/application_controller.rb +15 -0
  51. data/app/controllers/decidim/problems/admin/problem_publications_controller.rb +53 -0
  52. data/app/controllers/decidim/problems/admin/problems_controller.rb +102 -0
  53. data/app/controllers/decidim/problems/application_controller.rb +13 -0
  54. data/app/controllers/decidim/problems/problems_controller.rb +62 -0
  55. data/app/controllers/decidim/sdgs/admin/application_controller.rb +15 -0
  56. data/app/controllers/decidim/sdgs/admin/sdgs_controller.rb +18 -0
  57. data/app/controllers/decidim/sdgs/application_controller.rb +13 -0
  58. data/app/controllers/decidim/sdgs/sdgs_controller.rb +24 -0
  59. data/app/controllers/decidim/solutions/admin/application_controller.rb +15 -0
  60. data/app/controllers/decidim/solutions/admin/solution_publications_controller.rb +53 -0
  61. data/app/controllers/decidim/solutions/admin/solutions_controller.rb +106 -0
  62. data/app/controllers/decidim/solutions/application_controller.rb +13 -0
  63. data/app/controllers/decidim/solutions/solutions_controller.rb +115 -0
  64. data/app/forms/decidim/challenges/admin/challenge_surveys_form.rb +35 -0
  65. data/app/forms/decidim/challenges/admin/challenges_form.rb +78 -0
  66. data/app/forms/decidim/problems/admin/problems_form.rb +90 -0
  67. data/app/forms/decidim/solutions/admin/solutions_form.rb +71 -0
  68. data/app/forms/decidim/solutions/solutions_form.rb +50 -0
  69. data/app/helpers/decidim/challenges/application_helper.rb +25 -0
  70. data/app/helpers/decidim/challenges/challenge_cells_helper.rb +57 -0
  71. data/app/helpers/decidim/challenges/challenges_helper.rb +39 -0
  72. data/app/helpers/decidim/problems/application_helper.rb +10 -0
  73. data/app/helpers/decidim/problems/problem_cells_helper.rb +23 -0
  74. data/app/helpers/decidim/problems/problems_helper.rb +24 -0
  75. data/app/helpers/decidim/sdgs/sdgs_helper.rb +28 -0
  76. data/app/helpers/decidim/show_filters_helper.rb +13 -0
  77. data/app/helpers/decidim/solutions/application_helper.rb +27 -0
  78. data/app/helpers/decidim/solutions/solution_cells_helper.rb +56 -0
  79. data/app/helpers/decidim/solutions/solutions_helper.rb +21 -0
  80. data/app/models/decidim/application_record.rb +8 -0
  81. data/app/models/decidim/challenges/challenge.rb +82 -0
  82. data/app/models/decidim/challenges/survey.rb +19 -0
  83. data/app/models/decidim/problems/problem.rb +118 -0
  84. data/app/models/decidim/sdgs/sdg.rb +47 -0
  85. data/app/models/decidim/solutions/application_record.rb +10 -0
  86. data/app/models/decidim/solutions/solution.rb +69 -0
  87. data/app/packs/entrypoints/decidim_challenges.js +4 -0
  88. data/app/packs/entrypoints/decidim_challenges.scss +1 -0
  89. data/app/packs/entrypoints/decidim_problems.js +1 -0
  90. data/app/packs/entrypoints/decidim_problems.scss +1 -0
  91. data/app/packs/entrypoints/decidim_sdgs.js +6 -0
  92. data/app/packs/entrypoints/decidim_sdgs.scss +3 -0
  93. data/app/packs/entrypoints/decidim_shared.js +1 -0
  94. data/app/packs/entrypoints/decidim_shared.scss +1 -0
  95. data/app/packs/entrypoints/decidim_solutions.js +4 -0
  96. data/app/packs/entrypoints/decidim_solutions.scss +1 -0
  97. data/app/packs/fonts/Oswald-Medium.ttf +0 -0
  98. data/app/packs/images/decidim/challenges/decidim_challenges_icon.svg +1 -0
  99. data/app/packs/images/decidim/sdgs/ods-01.svg +11 -0
  100. data/app/packs/images/decidim/sdgs/ods-02.svg +11 -0
  101. data/app/packs/images/decidim/sdgs/ods-03.svg +11 -0
  102. data/app/packs/images/decidim/sdgs/ods-04.svg +12 -0
  103. data/app/packs/images/decidim/sdgs/ods-05.svg +12 -0
  104. data/app/packs/images/decidim/sdgs/ods-06.svg +20 -0
  105. data/app/packs/images/decidim/sdgs/ods-07.svg +18 -0
  106. data/app/packs/images/decidim/sdgs/ods-08.svg +13 -0
  107. data/app/packs/images/decidim/sdgs/ods-09.svg +25 -0
  108. data/app/packs/images/decidim/sdgs/ods-10.svg +13 -0
  109. data/app/packs/images/decidim/sdgs/ods-11.svg +41 -0
  110. data/app/packs/images/decidim/sdgs/ods-12.svg +11 -0
  111. data/app/packs/images/decidim/sdgs/ods-13.svg +57 -0
  112. data/app/packs/images/decidim/sdgs/ods-14.svg +14 -0
  113. data/app/packs/images/decidim/sdgs/ods-15.svg +11 -0
  114. data/app/packs/images/decidim/sdgs/ods-16.svg +14 -0
  115. data/app/packs/images/decidim/sdgs/ods-17.svg +39 -0
  116. data/app/packs/images/decidim/sdgs/sdg-wheel.png +0 -0
  117. data/app/packs/images/decidim/sdgs/un_emblem_square.png +0 -0
  118. data/app/packs/src/decidim/challenges/add_challenge.js +3 -0
  119. data/app/packs/src/decidim/challenges/admin/challenges_form.js +3 -0
  120. data/app/packs/src/decidim/sdgs/filter.js +75 -0
  121. data/app/packs/stylesheets/decidim/challenges/challenges.scss +3 -0
  122. data/app/packs/stylesheets/decidim/problems/problems.scss +3 -0
  123. data/app/packs/stylesheets/decidim/sdgs/ods.scss +185 -0
  124. data/app/packs/stylesheets/decidim/sdgs/sdgs_filter/button.scss +27 -0
  125. data/app/packs/stylesheets/decidim/sdgs/sdgs_filter/modal.scss +60 -0
  126. data/app/packs/stylesheets/decidim/shared/_cards.scss +52 -0
  127. data/app/packs/stylesheets/decidim/shared/base.scss +9 -0
  128. data/app/packs/stylesheets/decidim/solutions/solutions.scss +3 -0
  129. data/app/permissions/decidim/challenges/admin/permissions.rb +88 -0
  130. data/app/permissions/decidim/challenges/permissions.rb +27 -0
  131. data/app/permissions/decidim/problems/admin/permissions.rb +52 -0
  132. data/app/permissions/decidim/problems/permissions.rb +16 -0
  133. data/app/permissions/decidim/solutions/admin/permissions.rb +58 -0
  134. data/app/permissions/decidim/solutions/permissions.rb +17 -0
  135. data/app/presenters/decidim/challenges/challenge_presenter.rb +134 -0
  136. data/app/presenters/decidim/problems/problem_presenter.rb +108 -0
  137. data/app/presenters/decidim/solutions/solution_presenter.rb +198 -0
  138. data/app/serializers/decidim/challenges/data_serializer.rb +46 -0
  139. data/app/serializers/decidim/challenges/survey_serializer.rb +37 -0
  140. data/app/types/decidim/challenges/challenge_type.rb +28 -0
  141. data/app/types/decidim/challenges/challenges_type.rb +32 -0
  142. data/app/types/decidim/problems/problem_type.rb +29 -0
  143. data/app/types/decidim/problems/problems_type.rb +32 -0
  144. data/app/types/decidim/solutions/solution_type.rb +25 -0
  145. data/app/types/decidim/solutions/solutions_type.rb +32 -0
  146. data/app/views/decidim/challenges/admin/challenges/_form.html.erb +78 -0
  147. data/app/views/decidim/challenges/admin/challenges/edit.html.erb +24 -0
  148. data/app/views/decidim/challenges/admin/challenges/index.html.erb +88 -0
  149. data/app/views/decidim/challenges/admin/challenges/new.html.erb +18 -0
  150. data/app/views/decidim/challenges/admin/surveys/_form.html.erb +9 -0
  151. data/app/views/decidim/challenges/admin/surveys/edit.html.erb +39 -0
  152. data/app/views/decidim/challenges/admin/surveys/index.html.erb +49 -0
  153. data/app/views/decidim/challenges/admin/surveys/show.html.erb +43 -0
  154. data/app/views/decidim/challenges/challenges/_challenge.html.erb +1 -0
  155. data/app/views/decidim/challenges/challenges/_challenges.html.erb +11 -0
  156. data/app/views/decidim/challenges/challenges/_related_problems.html.erb +14 -0
  157. data/app/views/decidim/challenges/challenges/_sidebar_data.html.erb +60 -0
  158. data/app/views/decidim/challenges/challenges/index.html.erb +29 -0
  159. data/app/views/decidim/challenges/challenges/index.js.erb +5 -0
  160. data/app/views/decidim/challenges/challenges/show.html.erb +41 -0
  161. data/app/views/decidim/problems/admin/problems/_form.html.erb +79 -0
  162. data/app/views/decidim/problems/admin/problems/edit.html.erb +24 -0
  163. data/app/views/decidim/problems/admin/problems/index.html.erb +93 -0
  164. data/app/views/decidim/problems/admin/problems/new.html.erb +18 -0
  165. data/app/views/decidim/problems/problems/_problem.html.erb +1 -0
  166. data/app/views/decidim/problems/problems/_problems.html.erb +11 -0
  167. data/app/views/decidim/problems/problems/_sidebar_data.html.erb +70 -0
  168. data/app/views/decidim/problems/problems/index.html.erb +28 -0
  169. data/app/views/decidim/problems/problems/index.js.erb +5 -0
  170. data/app/views/decidim/problems/problems/show.html.erb +38 -0
  171. data/app/views/decidim/sdgs/sdgs/_objectives.html.erb +320 -0
  172. data/app/views/decidim/sdgs/sdgs/_ods.html.erb +132 -0
  173. data/app/views/decidim/sdgs/sdgs/index.html.erb +64 -0
  174. data/app/views/decidim/sdgs/sdgs_filter/_filter_selector.html.erb +7 -0
  175. data/app/views/decidim/sdgs/sdgs_filter/_modal.html.erb +35 -0
  176. data/app/views/decidim/shared/_related_solutions.html.erb +14 -0
  177. data/app/views/decidim/solutions/admin/solutions/_documents.html.erb +13 -0
  178. data/app/views/decidim/solutions/admin/solutions/_form.html.erb +70 -0
  179. data/app/views/decidim/solutions/admin/solutions/_photos.html.erb +13 -0
  180. data/app/views/decidim/solutions/admin/solutions/edit.html.erb +24 -0
  181. data/app/views/decidim/solutions/admin/solutions/index.html.erb +97 -0
  182. data/app/views/decidim/solutions/admin/solutions/new.html.erb +18 -0
  183. data/app/views/decidim/solutions/admin/solutions/show.html.erb +114 -0
  184. data/app/views/decidim/solutions/solutions/_form.html.erb +22 -0
  185. data/app/views/decidim/solutions/solutions/_sidebar_data.html.erb +114 -0
  186. data/app/views/decidim/solutions/solutions/_solution.html.erb +1 -0
  187. data/app/views/decidim/solutions/solutions/_solutions.html.erb +13 -0
  188. data/app/views/decidim/solutions/solutions/index.html.erb +37 -0
  189. data/app/views/decidim/solutions/solutions/index.js.erb +5 -0
  190. data/app/views/decidim/solutions/solutions/new.html.erb +20 -0
  191. data/app/views/decidim/solutions/solutions/show.html.erb +72 -0
  192. data/config/assets.rb +27 -0
  193. data/config/i18n-tasks.yml +10 -0
  194. data/config/locales/ca.yml +1244 -0
  195. data/config/locales/cs.yml +668 -0
  196. data/config/locales/en.yml +1245 -0
  197. data/config/locales/es.yml +1250 -0
  198. data/config/locales/oc.yml +1229 -0
  199. data/db/migrate/20201014125000_create_decidim_challenges_challenges.rb +23 -0
  200. data/db/migrate/20201103155100_create_decidim_problems_problems.rb +25 -0
  201. data/db/migrate/20201116111200_create_decidim_solutions_solutions.rb +21 -0
  202. data/db/migrate/20210413083244_create_decidim_challenges_surveys.rb +14 -0
  203. data/db/migrate/20210413083507_add_survey_attributes_to_challenges.rb +7 -0
  204. data/db/migrate/20210413083604_add_questionnaire_to_existing_challenges.rb +15 -0
  205. data/db/migrate/20210413112229_add_challenge_reference_to_solutions.rb +7 -0
  206. data/db/migrate/20210427091033_remove_require_null_in_problems_for_solutions.rb +7 -0
  207. data/db/migrate/20220407110503_add_card_image_to_challenges.rb +7 -0
  208. data/db/migrate/20240919094714_add_public_fields_to_solutions.rb +10 -0
  209. data/lib/decidim/challenges/admin.rb +10 -0
  210. data/lib/decidim/challenges/admin_engine.rb +37 -0
  211. data/lib/decidim/challenges/component.rb +65 -0
  212. data/lib/decidim/challenges/engine.rb +39 -0
  213. data/lib/decidim/challenges/test/factories.rb +59 -0
  214. data/lib/decidim/challenges/version.rb +14 -0
  215. data/lib/decidim/challenges.rb +13 -0
  216. data/lib/decidim/problems/admin.rb +10 -0
  217. data/lib/decidim/problems/admin_engine.rb +25 -0
  218. data/lib/decidim/problems/component.rb +51 -0
  219. data/lib/decidim/problems/engine.rb +31 -0
  220. data/lib/decidim/problems/test/factories.rb +39 -0
  221. data/lib/decidim/sdgs/admin.rb +10 -0
  222. data/lib/decidim/sdgs/admin_engine.rb +28 -0
  223. data/lib/decidim/sdgs/component.rb +44 -0
  224. data/lib/decidim/sdgs/engine.rb +23 -0
  225. data/lib/decidim/sdgs/test/factories.rb +13 -0
  226. data/lib/decidim/solutions/admin.rb +10 -0
  227. data/lib/decidim/solutions/admin_engine.rb +25 -0
  228. data/lib/decidim/solutions/component.rb +52 -0
  229. data/lib/decidim/solutions/engine.rb +31 -0
  230. data/lib/decidim/solutions/test/factories.rb +28 -0
  231. metadata +316 -0
@@ -0,0 +1,320 @@
1
+ <div id=objective_01 class="hide">
2
+ <div class="objectives_container">
3
+ <p class="objectives_title"><%= t("no_poverty.objectives.title", scope: "decidim.components.sdgs") %> </p>
4
+ <p class="objectives_subtitle"> <%= t("no_poverty.objectives.subtitle", scope: "decidim.components.sdgs") %> </p>
5
+ </div>
6
+ <div class="objectives_text">
7
+ <p><strong>1.1</strong> <%= t("no_poverty.objectives.objective1", scope: "decidim.components.sdgs") %></p>
8
+ <p><strong>1.2</strong> <%= t("no_poverty.objectives.objective2", scope: "decidim.components.sdgs") %></p>
9
+ <p><strong>1.3</strong> <%= t("no_poverty.objectives.objective3", scope: "decidim.components.sdgs") %></p>
10
+ <p><strong>1.4</strong> <%= t("no_poverty.objectives.objective4", scope: "decidim.components.sdgs") %></p>
11
+ <p><strong>1.5</strong> <%= t("no_poverty.objectives.objective5", scope: "decidim.components.sdgs") %></p>
12
+ <p><strong>1.6</strong> <%= t("no_poverty.objectives.objective6", scope: "decidim.components.sdgs") %></p>
13
+ <p><strong>1.7</strong> <%= t("no_poverty.objectives.objective7", scope: "decidim.components.sdgs") %></p>
14
+ </div>
15
+ </div>
16
+ <div id="objective_02" class="hide">
17
+ <div class="objectives_container">
18
+ <p class="objectives_title"> <%= t("zero_hunger.objectives.title", scope: "decidim.components.sdgs") %></p>
19
+ <p class="objectives_subtitle"> <%= t("zero_hunger.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
20
+ </div>
21
+ <div class="objectives_text">
22
+ <p><strong>2.1</strong> <%= t("zero_hunger.objectives.objective1", scope: "decidim.components.sdgs") %></p>
23
+ <p><strong>2.2</strong> <%= t("zero_hunger.objectives.objective2", scope: "decidim.components.sdgs") %></p>
24
+ <p><strong>2.3</strong> <%= t("zero_hunger.objectives.objective3", scope: "decidim.components.sdgs") %></p>
25
+ <p><strong>2.4</strong> <%= t("zero_hunger.objectives.objective4", scope: "decidim.components.sdgs") %></p>
26
+ <p><strong>2.5</strong> <%= t("zero_hunger.objectives.objective5", scope: "decidim.components.sdgs") %></p>
27
+ <p><strong>2.a</strong> <%= t("zero_hunger.objectives.objective6", scope: "decidim.components.sdgs") %></p>
28
+ <p><strong>2.b</strong> <%= t("zero_hunger.objectives.objective7", scope: "decidim.components.sdgs") %></p>
29
+ <p><strong>2.c</strong> <%= t("zero_hunger.objectives.objective8", scope: "decidim.components.sdgs") %></p>
30
+ </div>
31
+ </div>
32
+
33
+ <div id="objective_03" class="hide">
34
+ <div class="objectives_container">
35
+ <p class="objectives_title"><%= t("good_health.objectives.title", scope: "decidim.components.sdgs") %></p>
36
+ <p class="objectives_subtitle"><%= t("good_health.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
37
+ </div>
38
+ <div class="objectives_text">
39
+ <p><strong>3.1</strong> <%= t("good_health.objectives.objective1", scope: "decidim.components.sdgs") %></p>
40
+ <p><strong>3.2</strong> <%= t("good_health.objectives.objective2", scope: "decidim.components.sdgs") %></p>
41
+ <p><strong>3.3</strong> <%= t("good_health.objectives.objective3", scope: "decidim.components.sdgs") %></p>
42
+ <p><strong>3.4</strong> <%= t("good_health.objectives.objective4", scope: "decidim.components.sdgs") %></p>
43
+ <p><strong>3.5</strong> <%= t("good_health.objectives.objective5", scope: "decidim.components.sdgs") %></p>
44
+ <p><strong>3.6</strong> <%= t("good_health.objectives.objective6", scope: "decidim.components.sdgs") %></p>
45
+ <p><strong>3.7</strong> <%= t("good_health.objectives.objective7", scope: "decidim.components.sdgs") %></p>
46
+ <p><strong>3.8</strong> <%= t("good_health.objectives.objective8", scope: "decidim.components.sdgs") %></p>
47
+ <p><strong>3.9</strong> <%= t("good_health.objectives.objective9", scope: "decidim.components.sdgs") %></p>
48
+ <p><strong>3.a</strong> <%= t("good_health.objectives.objective10", scope: "decidim.components.sdgs") %></p>
49
+ <p><strong>3.b</strong> <%= t("good_health.objectives.objective11", scope: "decidim.components.sdgs") %></p>
50
+ <p><strong>3.c</strong> <%= t("good_health.objectives.objective12", scope: "decidim.components.sdgs") %></p>
51
+ <p><strong>3.d</strong> <%= t("good_health.objectives.objective13", scope: "decidim.components.sdgs") %></p>
52
+ </div>
53
+ </div>
54
+
55
+ <div id="objective_04" class="hide">
56
+ <div class="objectives_container">
57
+ <p class="objectives_title"><%= t("quality_education.objectives.title", scope: "decidim.components.sdgs") %></p>
58
+ <p class="objectives_subtitle"><%= t("quality_education.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
59
+ </div>
60
+ <div class="objectives_text">
61
+ <p><strong>4.1</strong> <%= t("quality_education.objectives.objective1", scope: "decidim.components.sdgs") %></p>
62
+ <p><strong>4.2</strong> <%= t("quality_education.objectives.objective2", scope: "decidim.components.sdgs") %></p>
63
+ <p><strong>4.3</strong> <%= t("quality_education.objectives.objective3", scope: "decidim.components.sdgs") %></p>
64
+ <p><strong>4.4</strong> <%= t("quality_education.objectives.objective4", scope: "decidim.components.sdgs") %></p>
65
+ <p><strong>4.5</strong> <%= t("quality_education.objectives.objective5", scope: "decidim.components.sdgs") %></p>
66
+ <p><strong>4.6</strong> <%= t("quality_education.objectives.objective6", scope: "decidim.components.sdgs") %></p>
67
+ <p><strong>4.7</strong> <%= t("quality_education.objectives.objective7", scope: "decidim.components.sdgs") %></p>
68
+ <p><strong>4.a</strong> <%= t("quality_education.objectives.objective8", scope: "decidim.components.sdgs") %></p>
69
+ <p><strong>4.b</strong> <%= t("quality_education.objectives.objective9", scope: "decidim.components.sdgs") %></p>
70
+ <p><strong>4.c</strong> <%= t("quality_education.objectives.objective10", scope: "decidim.components.sdgs") %></p>
71
+ </div>
72
+ </div>
73
+
74
+ <div id="objective_05" class="hide">
75
+ <div class="objectives_container">
76
+ <p class="objectives_title"><%= t("gender_equality.objectives.title", scope: "decidim.components.sdgs") %></p>
77
+ <p class="objectives_subtitle"><%= t("gender_equality.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
78
+ </div>
79
+ <div class="objectives_text">
80
+ <p><strong>5.1</strong> <%= t("gender_equality.objectives.objective1", scope: "decidim.components.sdgs") %></p>
81
+ <p><strong>5.2</strong> <%= t("gender_equality.objectives.objective2", scope: "decidim.components.sdgs") %></p>
82
+ <p><strong>5.3</strong> <%= t("gender_equality.objectives.objective3", scope: "decidim.components.sdgs") %></p>
83
+ <p><strong>5.4</strong> <%= t("gender_equality.objectives.objective4", scope: "decidim.components.sdgs") %></p>
84
+ <p><strong>5.5</strong> <%= t("gender_equality.objectives.objective5", scope: "decidim.components.sdgs") %></p>
85
+ <p><strong>5.6</strong> <%= t("gender_equality.objectives.objective6", scope: "decidim.components.sdgs") %></p>
86
+ <p><strong>5.a</strong> <%= t("gender_equality.objectives.objective7", scope: "decidim.components.sdgs") %></p>
87
+ <p><strong>5.b</strong> <%= t("gender_equality.objectives.objective8", scope: "decidim.components.sdgs") %></p>
88
+ <p><strong>5.c</strong> <%= t("gender_equality.objectives.objective9", scope: "decidim.components.sdgs") %></p>
89
+ </div>
90
+ </div>
91
+
92
+ <div id="objective_06" class="hide">
93
+ <div class="objectives_container">
94
+ <p class="objectives_title"><%= t("clean_water.objectives.title", scope: "decidim.components.sdgs") %></p>
95
+ <p class="objectives_subtitle"><%= t("clean_water.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
96
+ </div>
97
+ <div class="objectives_text">
98
+ <p><strong>6.1</strong> <%= t("clean_water.objectives.objective1", scope: "decidim.components.sdgs") %></p>
99
+ <p><strong>6.2</strong> <%= t("clean_water.objectives.objective2", scope: "decidim.components.sdgs") %></p>
100
+ <p><strong>6.3</strong> <%= t("clean_water.objectives.objective3", scope: "decidim.components.sdgs") %></p>
101
+ <p><strong>6.4</strong> <%= t("clean_water.objectives.objective4", scope: "decidim.components.sdgs") %></p>
102
+ <p><strong>6.5</strong> <%= t("clean_water.objectives.objective5", scope: "decidim.components.sdgs") %></p>
103
+ <p><strong>6.6</strong> <%= t("clean_water.objectives.objective6", scope: "decidim.components.sdgs") %></p>
104
+ <p><strong>6.a</strong> <%= t("clean_water.objectives.objective7", scope: "decidim.components.sdgs") %></p>
105
+ <p><strong>6.b</strong> <%= t("clean_water.objectives.objective8", scope: "decidim.components.sdgs") %></p>
106
+ </div>
107
+ </div>
108
+
109
+ <div id="objective_07" class="hide">
110
+ <div class="objectives_container">
111
+ <p class="objectives_title"><%= t("clean_energy.objectives.title", scope: "decidim.components.sdgs") %></p>
112
+ <p class="objectives_subtitle"><%= t("clean_energy.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
113
+ </div>
114
+ <div class="objectives_text">
115
+ <p><strong>7.1</strong> <%= t("clean_energy.objectives.objective1", scope: "decidim.components.sdgs") %></p>
116
+ <p><strong>7.2</strong> <%= t("clean_energy.objectives.objective2", scope: "decidim.components.sdgs") %></p>
117
+ <p><strong>7.3</strong> <%= t("clean_energy.objectives.objective3", scope: "decidim.components.sdgs") %></p>
118
+ <p><strong>7.a</strong> <%= t("clean_energy.objectives.objective4", scope: "decidim.components.sdgs") %></p>
119
+ <p><strong>7.b</strong> <%= t("clean_energy.objectives.objective5", scope: "decidim.components.sdgs") %></p>
120
+ </div>
121
+ </div>
122
+
123
+ <div id="objective_08" class="hide">
124
+ <div class="objectives_container">
125
+ <p class="objectives_title"><%= t("decent_work.objectives.title", scope: "decidim.components.sdgs") %></p>
126
+ <p class="objectives_subtitle"><%= t("decent_work.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
127
+ </div>
128
+ <div class="objectives_text">
129
+ <p><strong>8.1</strong> <%= t("decent_work.objectives.objective1", scope: "decidim.components.sdgs") %></p>
130
+ <p><strong>8.2</strong> <%= t("decent_work.objectives.objective2", scope: "decidim.components.sdgs") %></p>
131
+ <p><strong>8.3</strong> <%= t("decent_work.objectives.objective3", scope: "decidim.components.sdgs") %></p>
132
+ <p><strong>8.4</strong> <%= t("decent_work.objectives.objective4", scope: "decidim.components.sdgs") %></p>
133
+ <p><strong>8.5</strong> <%= t("decent_work.objectives.objective5", scope: "decidim.components.sdgs") %></p>
134
+ <p><strong>8.6</strong> <%= t("decent_work.objectives.objective6", scope: "decidim.components.sdgs") %></p>
135
+ <p><strong>8.7</strong> <%= t("decent_work.objectives.objective7", scope: "decidim.components.sdgs") %></p>
136
+ <p><strong>8.8</strong> <%= t("decent_work.objectives.objective8", scope: "decidim.components.sdgs") %></p>
137
+ <p><strong>8.9</strong> <%= t("decent_work.objectives.objective9", scope: "decidim.components.sdgs") %></p>
138
+ <p><strong>8.10</strong> <%= t("decent_work.objectives.objective10", scope: "decidim.components.sdgs") %></p>
139
+ <p><strong>8.a</strong> <%= t("decent_work.objectives.objective11", scope: "decidim.components.sdgs") %></p>
140
+ <p><strong>8.b</strong> <%= t("decent_work.objectives.objective12", scope: "decidim.components.sdgs") %></p>
141
+ </div>
142
+ </div>
143
+
144
+ <div id="objective_09" class="hide">
145
+ <div class="objectives_container">
146
+ <p class="objectives_title"><%= t("iiai.objectives.title", scope: "decidim.components.sdgs") %></p>
147
+ <p class="objectives_subtitle"><%= t("iiai.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
148
+ </div>
149
+ <div class="objectives_text">
150
+ <p><strong>9.1</strong> <%= t("iiai.objectives.objective1", scope: "decidim.components.sdgs") %></p>
151
+ <p><strong>9.2</strong> <%= t("iiai.objectives.objective2", scope: "decidim.components.sdgs") %></p>
152
+ <p><strong>9.3</strong> <%= t("iiai.objectives.objective3", scope: "decidim.components.sdgs") %></p>
153
+ <p><strong>9.4</strong> <%= t("iiai.objectives.objective4", scope: "decidim.components.sdgs") %></p>
154
+ <p><strong>9.5</strong> <%= t("iiai.objectives.objective5", scope: "decidim.components.sdgs") %></p>
155
+ <p><strong>9.a</strong> <%= t("iiai.objectives.objective6", scope: "decidim.components.sdgs") %></p>
156
+ <p><strong>9.b</strong> <%= t("iiai.objectives.objective7", scope: "decidim.components.sdgs") %></p>
157
+ <p><strong>9.c</strong> <%= t("iiai.objectives.objective8", scope: "decidim.components.sdgs") %></p>
158
+ </div>
159
+ </div>
160
+
161
+ <div id="objective_10" class="hide">
162
+ <div class="objectives_container">
163
+ <p class="objectives_title"><%= t("reduced_inequalities.objectives.title", scope: "decidim.components.sdgs") %></p>
164
+ <p class="objectives_subtitle"><%= t("reduced_inequalities.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
165
+ </div>
166
+ <div class="objectives_text">
167
+ <p><strong>10.1</strong> <%= t("reduced_inequalities.objectives.objective1", scope: "decidim.components.sdgs") %></p>
168
+ <p><strong>10.2</strong> <%= t("reduced_inequalities.objectives.objective2", scope: "decidim.components.sdgs") %></p>
169
+ <p><strong>10.3</strong> <%= t("reduced_inequalities.objectives.objective3", scope: "decidim.components.sdgs") %></p>
170
+ <p><strong>10.4</strong> <%= t("reduced_inequalities.objectives.objective4", scope: "decidim.components.sdgs") %></p>
171
+ <p><strong>10.5</strong> <%= t("reduced_inequalities.objectives.objective5", scope: "decidim.components.sdgs") %></p>
172
+ <p><strong>10.6</strong> <%= t("reduced_inequalities.objectives.objective6", scope: "decidim.components.sdgs") %></p>
173
+ <p><strong>10.7</strong> <%= t("reduced_inequalities.objectives.objective7", scope: "decidim.components.sdgs") %></p>
174
+ <p><strong>10.a</strong> <%= t("reduced_inequalities.objectives.objective8", scope: "decidim.components.sdgs") %></p>
175
+ <p><strong>10.b</strong> <%= t("reduced_inequalities.objectives.objective9", scope: "decidim.components.sdgs") %></p>
176
+ <p><strong>10.c</strong> <%= t("reduced_inequalities.objectives.objective10", scope: "decidim.components.sdgs") %></p>
177
+ </div>
178
+ </div>
179
+
180
+ <div id="objective_11" class="hide">
181
+ <div class="objectives_container">
182
+ <p class="objectives_title"><%= t("sustainable_cities.objectives.title", scope: "decidim.components.sdgs") %></p>
183
+ <p class="objectives_subtitle"><%= t("sustainable_cities.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
184
+ </div>
185
+ <div class="objectives_text">
186
+ <p><strong>11.1</strong> <%= t("sustainable_cities.objectives.objective1", scope: "decidim.components.sdgs") %></p>
187
+ <p><strong>11.2</strong> <%= t("sustainable_cities.objectives.objective2", scope: "decidim.components.sdgs") %></p>
188
+ <p><strong>11.3</strong> <%= t("sustainable_cities.objectives.objective3", scope: "decidim.components.sdgs") %></p>
189
+ <p><strong>11.4</strong> <%= t("sustainable_cities.objectives.objective4", scope: "decidim.components.sdgs") %></p>
190
+ <p><strong>11.5</strong> <%= t("sustainable_cities.objectives.objective5", scope: "decidim.components.sdgs") %></p>
191
+ <p><strong>11.6</strong> <%= t("sustainable_cities.objectives.objective6", scope: "decidim.components.sdgs") %></p>
192
+ <p><strong>11.7</strong> <%= t("sustainable_cities.objectives.objective7", scope: "decidim.components.sdgs") %></p>
193
+ <p><strong>11.a</strong> <%= t("sustainable_cities.objectives.objective8", scope: "decidim.components.sdgs") %></p>
194
+ <p><strong>11.b</strong> <%= t("sustainable_cities.objectives.objective9", scope: "decidim.components.sdgs") %></p>
195
+ <p><strong>11.c</strong> <%= t("sustainable_cities.objectives.objective10", scope: "decidim.components.sdgs") %></p>
196
+ </div>
197
+ </div>
198
+
199
+ <div id="objective_12" class="hide">
200
+ <div class="objectives_container">
201
+ <p class="objectives_title"><%= t("responsible_consumption.objectives.title", scope: "decidim.components.sdgs") %></p>
202
+ <p class="objectives_subtitle"><%= t("responsible_consumption.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
203
+ </div>
204
+ <div class="objectives_text">
205
+ <p><strong>12.1</strong> <%= t("responsible_consumption.objectives.objective1", scope: "decidim.components.sdgs") %></p>
206
+ <p><strong>12.2</strong> <%= t("responsible_consumption.objectives.objective2", scope: "decidim.components.sdgs") %></p>
207
+ <p><strong>12.3</strong> <%= t("responsible_consumption.objectives.objective3", scope: "decidim.components.sdgs") %></p>
208
+ <p><strong>12.4</strong> <%= t("responsible_consumption.objectives.objective4", scope: "decidim.components.sdgs") %></p>
209
+ <p><strong>12.5</strong> <%= t("responsible_consumption.objectives.objective5", scope: "decidim.components.sdgs") %></p>
210
+ <p><strong>12.6</strong> <%= t("responsible_consumption.objectives.objective6", scope: "decidim.components.sdgs") %></p>
211
+ <p><strong>12.7</strong> <%= t("responsible_consumption.objectives.objective7", scope: "decidim.components.sdgs") %></p>
212
+ <p><strong>12.8</strong> <%= t("responsible_consumption.objectives.objective8", scope: "decidim.components.sdgs") %></p>
213
+ <p><strong>12.a</strong> <%= t("responsible_consumption.objectives.objective9", scope: "decidim.components.sdgs") %></p>
214
+ <p><strong>12.b</strong> <%= t("responsible_consumption.objectives.objective10", scope: "decidim.components.sdgs") %></p>
215
+ <p><strong>12.c</strong> <%= t("responsible_consumption.objectives.objective11", scope: "decidim.components.sdgs") %></p>
216
+ </div>
217
+ </div>
218
+
219
+ <div id="objective_13" class="hide">
220
+ <div class="objectives_container">
221
+ <p class="objectives_title"><%= t("climate_action.objectives.title", scope: "decidim.components.sdgs") %></p>
222
+ <p class="objectives_subtitle"><%= t("climate_action.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
223
+ </div>
224
+ <div class="objectives_text">
225
+ <p><strong>13.1</strong> <%= t("climate_action.objectives.objective1", scope: "decidim.components.sdgs") %><p>
226
+ <p><strong>13.2</strong> <%= t("climate_action.objectives.objective2", scope: "decidim.components.sdgs") %><p>
227
+ <p><strong>13.3</strong> <%= t("climate_action.objectives.objective3", scope: "decidim.components.sdgs") %><p>
228
+ <p><strong>13.a</strong> <%= t("climate_action.objectives.objective4", scope: "decidim.components.sdgs") %><p>
229
+ <p><strong>13.b</strong> <%= t("climate_action.objectives.objective5", scope: "decidim.components.sdgs") %><p>
230
+ </div>
231
+ </div>
232
+
233
+ <div id="objective_14" class="hide">
234
+ <div class="objectives_container">
235
+ <p class="objectives_title"><%= t("life_below_water.objectives.title", scope: "decidim.components.sdgs") %></p>
236
+ <p class="objectives_subtitle"><%= t("life_below_water.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
237
+ </div>
238
+ <div class="objectives_text">
239
+ <p><strong>14.1</strong> <%= t("life_below_water.objectives.objective1", scope: "decidim.components.sdgs") %><p>
240
+ <p><strong>14.2</strong> <%= t("life_below_water.objectives.objective2", scope: "decidim.components.sdgs") %><p>
241
+ <p><strong>14.3</strong> <%= t("life_below_water.objectives.objective3", scope: "decidim.components.sdgs") %><p>
242
+ <p><strong>14.4</strong> <%= t("life_below_water.objectives.objective4", scope: "decidim.components.sdgs") %><p>
243
+ <p><strong>14.5</strong> <%= t("life_below_water.objectives.objective5", scope: "decidim.components.sdgs") %><p>
244
+ <p><strong>14.6</strong> <%= t("life_below_water.objectives.objective6", scope: "decidim.components.sdgs") %><p>
245
+ <p><strong>14.7</strong> <%= t("life_below_water.objectives.objective7", scope: "decidim.components.sdgs") %><p>
246
+ <p><strong>14.a</strong> <%= t("life_below_water.objectives.objective8", scope: "decidim.components.sdgs") %><p>
247
+ <p><strong>14.b</strong> <%= t("life_below_water.objectives.objective9", scope: "decidim.components.sdgs") %><p>
248
+ <p><strong>14.c</strong> <%= t("life_below_water.objectives.objective10", scope: "decidim.components.sdgs") %><p>
249
+ </div>
250
+ </div>
251
+
252
+ <div id="objective_15" class="hide">
253
+ <div class="objectives_container">
254
+ <p class="objectives_title"><%= t("life_on_land.objectives.title", scope: "decidim.components.sdgs") %></p>
255
+ <p class="objectives_subtitle"><%= t("life_on_land.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
256
+ </div>
257
+ <div class="objectives_text">
258
+ <p><strong>15.1</strong> <%= t("life_on_land.objectives.objective1", scope: "decidim.components.sdgs") %></p>
259
+ <p><strong>15.2</strong> <%= t("life_on_land.objectives.objective2", scope: "decidim.components.sdgs") %></p>
260
+ <p><strong>15.3</strong> <%= t("life_on_land.objectives.objective3", scope: "decidim.components.sdgs") %></p>
261
+ <p><strong>15.4</strong> <%= t("life_on_land.objectives.objective4", scope: "decidim.components.sdgs") %></p>
262
+ <p><strong>15.5</strong> <%= t("life_on_land.objectives.objective5", scope: "decidim.components.sdgs") %></p>
263
+ <p><strong>15.6</strong> <%= t("life_on_land.objectives.objective6", scope: "decidim.components.sdgs") %></p>
264
+ <p><strong>15.7</strong> <%= t("life_on_land.objectives.objective7", scope: "decidim.components.sdgs") %></p>
265
+ <p><strong>15.8</strong> <%= t("life_on_land.objectives.objective8", scope: "decidim.components.sdgs") %></p>
266
+ <p><strong>15.9</strong> <%= t("life_on_land.objectives.objective9", scope: "decidim.components.sdgs") %></p>
267
+ <p><strong>15.a</strong> <%= t("life_on_land.objectives.objective10", scope: "decidim.components.sdgs") %></p>
268
+ <p><strong>15.b</strong> <%= t("life_on_land.objectives.objective11", scope: "decidim.components.sdgs") %></p>
269
+ <p><strong>15.c</strong> <%= t("life_on_land.objectives.objective12", scope: "decidim.components.sdgs") %></p>
270
+ </div>
271
+ </div>
272
+
273
+ <div id="objective_16" class="hide">
274
+ <div class="objectives_container">
275
+ <p class="objectives_title"><%= t("pjsi.objectives.title", scope: "decidim.components.sdgs") %></p>
276
+ <p class="objectives_subtitle"><%= t("pjsi.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
277
+ </div>
278
+ <div class="objectives_text">
279
+ <p><strong>16.1</strong> <%= t("pjsi.objectives.objective1", scope: "decidim.components.sdgs") %></p>
280
+ <p><strong>16.2</strong> <%= t("pjsi.objectives.objective2", scope: "decidim.components.sdgs") %></p>
281
+ <p><strong>16.3</strong> <%= t("pjsi.objectives.objective3", scope: "decidim.components.sdgs") %></p>
282
+ <p><strong>16.4</strong> <%= t("pjsi.objectives.objective4", scope: "decidim.components.sdgs") %></p>
283
+ <p><strong>16.5</strong> <%= t("pjsi.objectives.objective5", scope: "decidim.components.sdgs") %></p>
284
+ <p><strong>16.6</strong> <%= t("pjsi.objectives.objective6", scope: "decidim.components.sdgs") %></p>
285
+ <p><strong>16.7</strong> <%= t("pjsi.objectives.objective7", scope: "decidim.components.sdgs") %></p>
286
+ <p><strong>16.8</strong> <%= t("pjsi.objectives.objective8", scope: "decidim.components.sdgs") %></p>
287
+ <p><strong>16.9</strong> <%= t("pjsi.objectives.objective9", scope: "decidim.components.sdgs") %></p>
288
+ <p><strong>16.10</strong> <%= t("pjsi.objectives.objective10", scope: "decidim.components.sdgs") %></p>
289
+ <p><strong>16.a</strong> <%= t("pjsi.objectives.objective11", scope: "decidim.components.sdgs") %></p>
290
+ <p><strong>16.b</strong> <%= t("pjsi.objectives.objective12", scope: "decidim.components.sdgs") %></p>
291
+ </div>
292
+ </div>
293
+
294
+ <div id="objective_17" class="hide">
295
+ <div class="objectives_container">
296
+ <p class="objectives_title"><%= t("partnership.objectives.title", scope: "decidim.components.sdgs") %></p>
297
+ <p class="objectives_subtitle"><%= t("partnership.objectives.subtitle", scope: "decidim.components.sdgs") %></p>
298
+ </div>
299
+ <div class="objectives_text">
300
+ <p><strong>17.1</strong> <%= t("partnership.objectives.objective1", scope: "decidim.components.sdgs") %></p>
301
+ <p><strong>17.2</strong> <%= t("partnership.objectives.objective2", scope: "decidim.components.sdgs") %></p>
302
+ <p><strong>17.3</strong> <%= t("partnership.objectives.objective3", scope: "decidim.components.sdgs") %></p>
303
+ <p><strong>17.4</strong> <%= t("partnership.objectives.objective4", scope: "decidim.components.sdgs") %></p>
304
+ <p><strong>17.5</strong> <%= t("partnership.objectives.objective5", scope: "decidim.components.sdgs") %></p>
305
+ <p><strong>17.6</strong> <%= t("partnership.objectives.objective6", scope: "decidim.components.sdgs") %></p>
306
+ <p><strong>17.7</strong> <%= t("partnership.objectives.objective7", scope: "decidim.components.sdgs") %></p>
307
+ <p><strong>17.8</strong> <%= t("partnership.objectives.objective8", scope: "decidim.components.sdgs") %></p>
308
+ <p><strong>17.9</strong> <%= t("partnership.objectives.objective9", scope: "decidim.components.sdgs") %></p>
309
+ <p><strong>17.10</strong> <%= t("partnership.objectives.objective10", scope: "decidim.components.sdgs") %></p>
310
+ <p><strong>17.11</strong> <%= t("partnership.objectives.objective11", scope: "decidim.components.sdgs") %></p>
311
+ <p><strong>17.12</strong> <%= t("partnership.objectives.objective12", scope: "decidim.components.sdgs") %></p>
312
+ <p><strong>17.13</strong> <%= t("partnership.objectives.objective13", scope: "decidim.components.sdgs") %></p>
313
+ <p><strong>17.14</strong> <%= t("partnership.objectives.objective14", scope: "decidim.components.sdgs") %></p>
314
+ <p><strong>17.15</strong> <%= t("partnership.objectives.objective15", scope: "decidim.components.sdgs") %></p>
315
+ <p><strong>17.16</strong> <%= t("partnership.objectives.objective16", scope: "decidim.components.sdgs") %></p>
316
+ <p><strong>17.17</strong> <%= t("partnership.objectives.objective17", scope: "decidim.components.sdgs") %></p>
317
+ <p><strong>17.18</strong> <%= t("partnership.objectives.objective18", scope: "decidim.components.sdgs") %></p>
318
+ <p><strong>17.19</strong> <%= t("partnership.objectives.objective19", scope: "decidim.components.sdgs") %></p>
319
+ </div>
320
+ </div>
@@ -0,0 +1,132 @@
1
+
2
+ <div id="ods-01" class="ods">
3
+ <div class="text-container">
4
+ <p><%= t("no_poverty.logo.line1", scope: "decidim.components.sdgs") %></p>
5
+ <p><%= t("no_poverty.logo.line2", scope: "decidim.components.sdgs") %></p>
6
+ </div>
7
+ <%= image_pack_tag "media/images/ods-01.svg", alt: "Logo ODS 01" %>
8
+ </div>
9
+ <div id="ods-02" class="ods">
10
+ <div class="text-container">
11
+ <p><%= t("zero_hunger.logo.line1", scope: "decidim.components.sdgs") %></p>
12
+ <p><%= t("zero_hunger.logo.line2", scope: "decidim.components.sdgs") %></p>
13
+ </div>
14
+ <%= image_pack_tag "media/images/ods-02.svg", alt: "Logo ODS 02" %>
15
+ </div>
16
+ <div id="ods-03" class="ods">
17
+ <div class="text-container">
18
+ <p><%= t("good_health.logo.line1", scope: "decidim.components.sdgs") %></p>
19
+ <p><%= t("good_health.logo.line2", scope: "decidim.components.sdgs") %></p>
20
+ </div>
21
+ <%= image_pack_tag "media/images/ods-03.svg", alt: "Logo ODS 03" %>
22
+ </div>
23
+ <div id="ods-04" class="ods">
24
+ <div class="text-container">
25
+ <p><%= t("quality_education.logo.line1", scope: "decidim.components.sdgs") %></p>
26
+ <p><%= t("quality_education.logo.line2", scope: "decidim.components.sdgs") %></p>
27
+ </div>
28
+ <%= image_pack_tag "media/images/ods-04.svg", alt: "Logo ODS 04" %>
29
+ </div>
30
+ <div id="ods-05" class="ods">
31
+ <div class="text-container">
32
+ <p><%= t("gender_equality.logo.line1", scope: "decidim.components.sdgs") %></p>
33
+ <p><%= t("gender_equality.logo.line2", scope: "decidim.components.sdgs") %></p>
34
+ </div>
35
+ <%= image_pack_tag "media/images/ods-05.svg", alt: "Logo ODS 05" %>
36
+ </div>
37
+ <div id="ods-06" class="ods">
38
+ <div class="text-container">
39
+ <p><%= t("clean_water.logo.line1", scope: "decidim.components.sdgs") %></p>
40
+ <p><%= t("clean_water.logo.line2", scope: "decidim.components.sdgs") %></p>
41
+ </div>
42
+ <%= image_pack_tag "media/images/ods-06.svg", alt: "Logo ODS 06" %>
43
+ </div>
44
+ <div id="ods-07" class="ods">
45
+ <div class="text-container">
46
+ <p><%= t("clean_energy.logo.line1", scope: "decidim.components.sdgs") %></p>
47
+ <p><%= t("clean_energy.logo.line2", scope: "decidim.components.sdgs") %></p>
48
+ </div>
49
+ <%= image_pack_tag "media/images/ods-07.svg", alt: "Logo ODS 07" %>
50
+ </div>
51
+ <div id="ods-08" class="ods">
52
+ <div class="text-container">
53
+ <p><%= t("decent_work.logo.line1", scope: "decidim.components.sdgs") %></p>
54
+ <p><%= t("decent_work.logo.line2", scope: "decidim.components.sdgs") %></p>
55
+ <p><%= t("decent_work.logo.line3", scope: "decidim.components.sdgs") %></p>
56
+ </div>
57
+ <%= image_pack_tag "media/images/ods-08.svg", alt: "Logo ODS 08" %>
58
+ </div>
59
+ <div id="ods-09" class="ods">
60
+ <div class="text-container">
61
+ <p><%= t("iiai.logo.line1", scope: "decidim.components.sdgs") %></p>
62
+ <p><%= t("iiai.logo.line2", scope: "decidim.components.sdgs") %></p>
63
+ <p><%= t("iiai.logo.line3", scope: "decidim.components.sdgs") %></p>
64
+ </div>
65
+ <%= image_pack_tag "media/images/ods-09.svg", alt: "Logo ODS 09" %>
66
+ </div>
67
+ <div id="ods-10" class="ods">
68
+ <div class="text-container stretch">
69
+ <p><%= t("reduced_inequalities.logo.line1", scope: "decidim.components.sdgs") %></p>
70
+ <p><%= t("reduced_inequalities.logo.line2", scope: "decidim.components.sdgs") %></p>
71
+ </div>
72
+ <%= image_pack_tag "media/images/ods-10.svg", alt: "Logo ODS 10" %>
73
+ </div>
74
+ <div id="ods-11" class="ods">
75
+ <div class="text-container">
76
+ <p><%= t("sustainable_cities.logo.line1", scope: "decidim.components.sdgs") %></p>
77
+ <p><%= t("sustainable_cities.logo.line2", scope: "decidim.components.sdgs") %></p>
78
+ <p><%= t("sustainable_cities.logo.line3", scope: "decidim.components.sdgs") %></p>
79
+ </div>
80
+ <%= image_pack_tag "media/images/ods-11.svg", alt: "Logo ODS 11" %>
81
+ </div>
82
+ <div id="ods-12" class="ods">
83
+ <div class="text-container stretch">
84
+ <p><%= t("responsible_consumption.logo.line1", scope: "decidim.components.sdgs") %></p>
85
+ <p><%= t("responsible_consumption.logo.line2", scope: "decidim.components.sdgs") %></p>
86
+ <p><%= t("responsible_consumption.logo.line3", scope: "decidim.components.sdgs") %></p>
87
+ </div>
88
+ <%= image_pack_tag "media/images/ods-12.svg", alt: "Logo ODS 12" %>
89
+ </div>
90
+ <div id="ods-13" class="ods">
91
+ <div class="text-container stretch">
92
+ <p><%= t("climate_action.logo.line1", scope: "decidim.components.sdgs") %></p>
93
+ <p><%= t("climate_action.logo.line2", scope: "decidim.components.sdgs") %></p>
94
+ </div>
95
+ <%= image_pack_tag "media/images/ods-13.svg", alt: "Logo ODS 13" %>
96
+ </div>
97
+ <div id="ods-14" class="ods">
98
+ <div class="text-container stretch">
99
+ <p><%= t("life_below_water.logo.line1", scope: "decidim.components.sdgs") %></p>
100
+ <p><%= t("life_below_water.logo.line2", scope: "decidim.components.sdgs") %></p>
101
+ </div>
102
+ <%= image_pack_tag "media/images/ods-14.svg", alt: "Logo ODS 14" %>
103
+ </div>
104
+ <div id="ods-15" class="ods">
105
+ <div class="text-container stretch">
106
+ <p><%= t("life_on_land.logo.line1", scope: "decidim.components.sdgs") %></p>
107
+ <p><%= t("life_on_land.logo.line2", scope: "decidim.components.sdgs") %></p>
108
+ <p><%= t("life_on_land.logo.line3", scope: "decidim.components.sdgs") %></p>
109
+ </div>
110
+ <%= image_pack_tag "media/images/ods-15.svg", alt: "Logo ODS 15" %>
111
+ </div>
112
+ <div id="ods-16" class="ods">
113
+ <div class="text-container stretch">
114
+ <p><%= t("pjsi.logo.line1", scope: "decidim.components.sdgs") %></p>
115
+ <p><%= t("pjsi.logo.line2", scope: "decidim.components.sdgs") %></p>
116
+ <p><%= t("pjsi.logo.line3", scope: "decidim.components.sdgs") %></p>
117
+ </div>
118
+ <%= image_pack_tag "media/images/ods-16.svg", alt: "Logo ODS 16" %>
119
+ </div>
120
+ <div id="ods-17" class="ods">
121
+ <div class="text-container stretch">
122
+ <p><%= t("partnership.logo.line1", scope: "decidim.components.sdgs") %></p>
123
+ <p><%= t("partnership.logo.line2", scope: "decidim.components.sdgs") %></p>
124
+ <p><%= t("partnership.logo.line3", scope: "decidim.components.sdgs") %></p>
125
+ </div>
126
+ <%= image_pack_tag "media/images/ods-17.svg", alt: "Logo ODS 17" %>
127
+ </div>
128
+ <div class="columns large-2 medium-3 small-4">
129
+ <div class="ods final">
130
+ <%= image_pack_tag "media/images/un_emblem_square.png", alt: "Logo United Nations" %>
131
+ </div>
132
+ </div>
@@ -0,0 +1,64 @@
1
+ <% add_decidim_page_title(t("name", scope: "decidim.components.sdgs")) %>
2
+
3
+ <%= append_stylesheet_pack_tag "decidim_sdgs" %>
4
+
5
+ <%= render layout: "layouts/decidim/shared/layout_center", locals: { columns: 10 } do %>
6
+ <section class="layout-main__section layout-main__heading mt-12">
7
+ <div class="sdgs-title">
8
+ <div class="text">
9
+ <h1 class="title-decorator mb-12"><%= t("name", scope: "decidim.components.sdgs") %></h1>
10
+ <p class="description"><%= t("description", scope: "decidim.components.sdgs") %></p>
11
+ </div>
12
+ <div id="ods-logo-container">
13
+ <%= image_pack_tag "media/images/sdg-wheel.png" %>
14
+ <p id="title"><%= t("ods_logo.title", scope: "decidim.components.sdgs") %></p>
15
+ <p id="subtitle"><%= t("ods_logo.subtitle", scope: "decidim.components.sdgs") %></p>
16
+ </div>
17
+ </div>
18
+
19
+ <div class="row">
20
+ <div class="columns">
21
+ <div class="row column">
22
+ <h4 class="mb-sm">
23
+ <h3 class="h3"><%= t("subtitle", scope: "decidim.components.sdgs") %></h3>
24
+ </h4>
25
+ </div>
26
+ </div>
27
+ </div>
28
+
29
+ <div id="ods-container">
30
+ <%= render partial: "ods" %>
31
+ </div>
32
+
33
+ <div id="objective-container">
34
+ <%= render partial: "objectives" %>
35
+ </div>
36
+ </section>
37
+ <% end %>
38
+
39
+ <script>
40
+ document.querySelector("#ods-container").addEventListener('click', function(event) {
41
+ event.preventDefault();
42
+
43
+ let node = event.target;
44
+ while(!node.classList.contains("ods")) {
45
+ node = node.parentNode;
46
+ }
47
+
48
+ if (node) {
49
+ let id = node.id.split('ods-')[1];
50
+ let objectiveContainer = document.querySelector("#objective-container");
51
+ console.log(objectiveContainer)
52
+
53
+ Array.from(objectiveContainer.children).forEach(function (e) {
54
+ if (!e.classList.contains('hide')) {
55
+ e.classList.add('hide');
56
+ }
57
+
58
+ if (e.id.includes(id)) {
59
+ e.classList.remove('hide');
60
+ }
61
+ });
62
+ }
63
+ });
64
+ </script>
@@ -0,0 +1,7 @@
1
+ <div class="filters__section sdgs-filter">
2
+ <legend class="mini-title"><%= t("activemodel.attributes.challenge.sdg") %></legend>
3
+ <button class="" data-open="sdgs-modal"><%= t(".select") %></button>
4
+ <% Decidim::Sdgs::Sdg::SDGS.each do |sdg_code| %>
5
+ <input type="hidden" name="filter[with_any_sdgs_codes][]" value="<%= form.object.with_any_sdgs_codes.include?(sdg_code.to_s) ? sdg_code : '' %>" data-value="<%= sdg_code %>">
6
+ <% end %>
7
+ </div>
@@ -0,0 +1,35 @@
1
+ <%= append_stylesheet_pack_tag "decidim_sdgs" %>
2
+ <%= append_javascript_pack_tag "decidim_sdgs" %>
3
+
4
+ <div id="sdgs-modal" class="reveal" data-reveal>
5
+ <div class="modal-content">
6
+ <div class="reveal__header">
7
+ <h3 class="h3 reveal__title"><%= t(".title") %></h3>
8
+ <button class="close-button" data-close aria-label="Close modal" type="button">
9
+ <span aria-hidden="true">&times;</span>
10
+ </button>
11
+ </div>
12
+ <div id="ods">
13
+ <div id="sdg-container">
14
+ <% Decidim::Sdgs::Sdg::SDGS.each_with_index do |sdg_code, idx|
15
+ idx+= 1
16
+ idx_str= idx.to_s.rjust(2, "0") %>
17
+ <div class="sdg-cell" data-value="<%= sdg_code %>">
18
+ <%= image_pack_tag "media/images/ods-#{idx_str}.svg", alt: "Logo SDG #{idx_str}"%>
19
+ <div class="text">
20
+ <p><%= "#{idx_str}. #{t_sdg(sdg_code)}" %></p>
21
+ </div>
22
+ </div>
23
+ <% end %>
24
+ </div>
25
+ </div>
26
+ <div class="reveal__footer">
27
+ <div class="buttons button--double">
28
+ <a class="button button__sm md:button__lg button__secondary" data-close="" role="button"><%= t(".close") %></a>
29
+ </div>
30
+ </div>
31
+
32
+ </div>
33
+ </div>
34
+
35
+
@@ -0,0 +1,14 @@
1
+ <section id="solutions">
2
+ <h2 class="h4 flex items-center gap-2 mb-4">
3
+ <%= resource_type_icon "Decidim::Amendment", class: "fill-tertiary w-6 h-6" %>
4
+ <%= t("decidim.solutions.solutions.count.solutions_count", count: solutions.count) %>
5
+ </h2>
6
+
7
+ <div id="problems-list">
8
+ <% solutions.each do |solution| %>
9
+ <%= link_to resource_locator(solution).path, class: "card__link" do %>
10
+ <%= translated_attribute solution.title %>
11
+ <% end %>
12
+ <% end %>
13
+ </div>
14
+ </section>
@@ -0,0 +1,13 @@
1
+ <div class="card-section">
2
+ <div class="row column">
3
+ <strong><%= t "documents", scope: "decidim.solution.admin.solution.show" %>:</strong>
4
+ <ul id="documents">
5
+ <% solution.documents.each do |document| %>
6
+ <li>
7
+ <%= link_to translated_attribute(document.title), document.url %>
8
+ <small><%= document.file_type %> <%= number_to_human_size(document.file_size) %></small>
9
+ </li>
10
+ <% end %>
11
+ </ul>
12
+ </div>
13
+ </div>