decidim-initiatives 0.27.4 → 0.28.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -3
  3. data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb +17 -18
  4. data/app/cells/decidim/initiatives/initiative_cell.rb +6 -1
  5. data/app/cells/decidim/initiatives/initiative_dropdown_metadata_cell.rb +19 -0
  6. data/app/cells/decidim/initiatives/initiative_g_cell.rb +31 -0
  7. data/app/cells/decidim/initiatives/initiative_metadata_g_cell.rb +62 -0
  8. data/app/cells/decidim/initiatives/initiative_s_cell.rb +15 -0
  9. data/app/cells/decidim/initiatives_votes/vote/show.erb +25 -19
  10. data/app/cells/decidim/initiatives_votes/vote_cell.rb +3 -1
  11. data/app/commands/decidim/initiatives/admin/accept_initiative.rb +40 -0
  12. data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +1 -1
  13. data/app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb +1 -1
  14. data/app/commands/decidim/initiatives/admin/discard_initiative.rb +40 -0
  15. data/app/commands/decidim/initiatives/admin/publish_initiative.rb +1 -1
  16. data/app/commands/decidim/initiatives/admin/reject_initiative.rb +40 -0
  17. data/app/commands/decidim/initiatives/admin/send_initiative_to_technical_validation.rb +2 -2
  18. data/app/commands/decidim/initiatives/admin/unpublish_initiative.rb +1 -1
  19. data/app/commands/decidim/initiatives/admin/update_initiative.rb +1 -1
  20. data/app/commands/decidim/initiatives/admin/update_initiative_answer.rb +1 -1
  21. data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +1 -1
  22. data/app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb +1 -1
  23. data/app/commands/decidim/initiatives/admin/update_initiatives_settings.rb +1 -1
  24. data/app/commands/decidim/initiatives/attachment_methods.rb +2 -24
  25. data/app/commands/decidim/initiatives/create_initiative.rb +19 -14
  26. data/app/commands/decidim/initiatives/send_initiative_to_technical_validation.rb +2 -2
  27. data/app/commands/decidim/initiatives/spawn_committee_request.rb +1 -1
  28. data/app/commands/decidim/initiatives/unvote_initiative.rb +1 -1
  29. data/app/commands/decidim/initiatives/update_initiative.rb +9 -2
  30. data/app/commands/decidim/initiatives/validate_mobile_phone.rb +2 -2
  31. data/app/commands/decidim/initiatives/vote_initiative.rb +5 -5
  32. data/app/constraints/decidim/initiatives/current_initiative.rb +1 -1
  33. data/app/controllers/concerns/decidim/initiatives/admin/filterable.rb +2 -2
  34. data/app/controllers/concerns/decidim/initiatives/needs_initiative.rb +1 -1
  35. data/app/controllers/decidim/initiatives/admin/answers_controller.rb +3 -0
  36. data/app/controllers/decidim/initiatives/admin/committee_requests_controller.rb +2 -0
  37. data/app/controllers/decidim/initiatives/admin/components_controller.rb +3 -0
  38. data/app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb +2 -0
  39. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +17 -6
  40. data/app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb +3 -0
  41. data/app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb +2 -0
  42. data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +30 -0
  43. data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +14 -0
  44. data/app/controllers/decidim/initiatives/admin/initiatives_types_permissions_controller.rb +21 -0
  45. data/app/controllers/decidim/initiatives/admin/moderations/reports_controller.rb +2 -2
  46. data/app/controllers/decidim/initiatives/admin/moderations_controller.rb +4 -2
  47. data/app/controllers/decidim/initiatives/application_controller.rb +0 -1
  48. data/app/controllers/decidim/initiatives/authorization_create_modals_controller.rb +25 -0
  49. data/app/controllers/decidim/initiatives/authorization_sign_modals_controller.rb +2 -2
  50. data/app/controllers/decidim/initiatives/committee_requests_controller.rb +0 -2
  51. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +62 -115
  52. data/app/controllers/decidim/initiatives/initiative_signatures_controller.rb +113 -81
  53. data/app/controllers/decidim/initiatives/initiative_types_controller.rb +7 -0
  54. data/app/controllers/decidim/initiatives/initiatives_controller.rb +37 -17
  55. data/app/controllers/decidim/initiatives/versions_controller.rb +0 -1
  56. data/app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb +1 -1
  57. data/app/events/decidim/initiatives/admin/support_threshold_reached_event.rb +1 -1
  58. data/app/events/decidim/initiatives/approve_membership_request_event.rb +12 -12
  59. data/app/events/decidim/initiatives/create_initiative_event.rb +6 -6
  60. data/app/events/decidim/initiatives/endorse_initiative_event.rb +1 -1
  61. data/app/events/decidim/initiatives/extend_initiative_event.rb +1 -1
  62. data/app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb +1 -1
  63. data/app/events/decidim/initiatives/milestone_completed_event.rb +1 -1
  64. data/app/events/decidim/initiatives/revoke_membership_request_event.rb +12 -12
  65. data/app/events/decidim/initiatives/spawn_committee_request_event.rb +12 -12
  66. data/app/forms/decidim/initiatives/admin/initiative_form.rb +1 -1
  67. data/app/forms/decidim/initiatives/initiative_form.rb +22 -31
  68. data/app/forms/decidim/initiatives/previous_form.rb +4 -0
  69. data/app/forms/decidim/initiatives/vote_form.rb +11 -11
  70. data/app/helpers/decidim/initiatives/admin/initiatives_helper.rb +1 -1
  71. data/app/helpers/decidim/initiatives/application_helper.rb +4 -61
  72. data/app/helpers/decidim/initiatives/initiative_helper.rb +48 -5
  73. data/app/helpers/decidim/initiatives/initiatives_helper.rb +33 -12
  74. data/app/jobs/decidim/initiatives/export_initiatives_job.rb +1 -1
  75. data/app/models/decidim/initiative.rb +17 -20
  76. data/app/models/decidim/initiatives_vote.rb +1 -1
  77. data/app/packs/entrypoints/decidim_initiatives.js +3 -0
  78. data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_initiatives.svg +42 -1
  79. data/app/packs/src/decidim/initiatives/application.js +0 -1
  80. data/app/packs/src/decidim/initiatives/scoped_type.js +1 -1
  81. data/app/packs/stylesheets/decidim/initiatives/initiatives-votes.scss +21 -21
  82. data/app/packs/stylesheets/decidim/initiatives/print-initiative.scss +59 -31
  83. data/app/packs/stylesheets/initiatives.scss +171 -0
  84. data/app/permissions/decidim/initiatives/permissions.rb +3 -3
  85. data/app/presenters/decidim/initiatives/admin_log/initiative_presenter.rb +2 -2
  86. data/app/presenters/decidim/initiatives/admin_log/initiatives_settings_presenter.rb +2 -2
  87. data/app/presenters/decidim/initiatives/admin_log/initiatives_type_presenter.rb +2 -2
  88. data/app/queries/decidim/initiatives/organization_prioritized_initiatives.rb +1 -1
  89. data/app/queries/decidim/initiatives/similar_initiatives.rb +2 -2
  90. data/app/queries/decidim/initiatives/support_period_finished_initiatives.rb +1 -1
  91. data/app/queries/decidim/initiatives/user_authorizations.rb +1 -1
  92. data/app/services/decidim/initiatives/pdf_signature_example.rb +44 -52
  93. data/app/views/decidim/initiatives/_modal.html.erb +15 -0
  94. data/app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb +21 -19
  95. data/app/views/decidim/initiatives/admin/answers/edit.html.erb +41 -27
  96. data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +41 -48
  97. data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +8 -7
  98. data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +111 -95
  99. data/app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb +7 -7
  100. data/app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb +87 -0
  101. data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +72 -60
  102. data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb +8 -0
  103. data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb +5 -78
  104. data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +76 -75
  105. data/app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb +7 -8
  106. data/app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb +17 -5
  107. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/_form.html.erb +11 -6
  108. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb +16 -22
  109. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb +17 -15
  110. data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +93 -76
  111. data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +35 -33
  112. data/app/views/decidim/initiatives/admin/initiatives_types/edit.html.erb +16 -12
  113. data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +39 -48
  114. data/app/views/decidim/initiatives/admin/initiatives_types/new.html.erb +16 -9
  115. data/app/views/decidim/initiatives/committee_requests/new.html.erb +21 -19
  116. data/app/views/decidim/initiatives/create_initiative/_share_committee_link.html.erb +15 -20
  117. data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +62 -100
  118. data/app/views/decidim/initiatives/create_initiative/finish.html.erb +24 -28
  119. data/app/views/decidim/initiatives/create_initiative/promotal_committee.html.erb +15 -17
  120. data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +32 -46
  121. data/app/views/decidim/initiatives/initiative_signatures/_wizard_steps.html.erb +15 -19
  122. data/app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb +25 -36
  123. data/app/views/decidim/initiatives/initiative_signatures/finish.html.erb +5 -16
  124. data/app/views/decidim/initiatives/initiative_signatures/sms_code.html.erb +8 -19
  125. data/app/views/decidim/initiatives/initiative_signatures/sms_phone_number.html.erb +8 -20
  126. data/app/views/decidim/initiatives/initiatives/_committee_members.html.erb +48 -66
  127. data/app/views/decidim/initiatives/initiatives/_form.html.erb +49 -95
  128. data/app/views/decidim/initiatives/initiatives/_initiative_badge.html.erb +3 -5
  129. data/app/views/decidim/initiatives/initiatives/_initiative_hero.html.erb +13 -0
  130. data/app/views/decidim/initiatives/initiatives/_initiatives.html.erb +6 -15
  131. data/app/views/decidim/initiatives/initiatives/_interactions.html.erb +1 -1
  132. data/app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb +28 -0
  133. data/app/views/decidim/initiatives/initiatives/_progress_bar.html.erb +2 -6
  134. data/app/views/decidim/initiatives/initiatives/_result.html.erb +15 -21
  135. data/app/views/decidim/initiatives/initiatives/_send_to_technical_validation.html.erb +3 -3
  136. data/app/views/decidim/initiatives/initiatives/_tags_type.html.erb +1 -0
  137. data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +9 -9
  138. data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +7 -7
  139. data/app/views/decidim/initiatives/initiatives/edit.html.erb +63 -68
  140. data/app/views/decidim/initiatives/initiatives/index.html.erb +17 -18
  141. data/app/views/decidim/initiatives/initiatives/index.js.erb +0 -5
  142. data/app/views/decidim/initiatives/initiatives/print.html.erb +123 -120
  143. data/app/views/decidim/initiatives/initiatives/show.html.erb +188 -70
  144. data/app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb +2 -2
  145. data/app/views/decidim/initiatives/initiatives_type_scopes/search.html.erb +2 -1
  146. data/app/views/decidim/initiatives/versions/show.html.erb +14 -5
  147. data/app/views/layouts/decidim/_initiative_creation_header.html.erb +17 -28
  148. data/app/views/layouts/decidim/_initiative_header.html.erb +3 -23
  149. data/app/views/layouts/decidim/_initiative_header_steps.html.erb +4 -12
  150. data/app/views/layouts/decidim/_initiative_signature_creation_header.html.erb +5 -26
  151. data/app/views/layouts/decidim/admin/initiative.html.erb +12 -13
  152. data/app/views/layouts/decidim/admin/initiatives.html.erb +40 -11
  153. data/app/views/layouts/decidim/initiative.html.erb +16 -11
  154. data/app/views/layouts/decidim/initiative_creation.html.erb +7 -18
  155. data/app/views/layouts/decidim/initiative_head.html.erb +15 -0
  156. data/app/views/layouts/decidim/initiative_signature_creation.html.erb +3 -11
  157. data/config/assets.rb +0 -1
  158. data/config/environment.rb +3 -0
  159. data/config/initializers/wicked_pdf.rb +1 -1
  160. data/config/locales/ar.yml +1 -92
  161. data/config/locales/ca.yml +65 -104
  162. data/config/locales/cs.yml +70 -109
  163. data/config/locales/de.yml +71 -110
  164. data/config/locales/el.yml +1 -97
  165. data/config/locales/en.yml +69 -108
  166. data/config/locales/es-MX.yml +65 -104
  167. data/config/locales/es-PY.yml +65 -104
  168. data/config/locales/es.yml +65 -104
  169. data/config/locales/eu.yml +171 -161
  170. data/config/locales/fi-plain.yml +67 -106
  171. data/config/locales/fi.yml +67 -106
  172. data/config/locales/fr-CA.yml +72 -106
  173. data/config/locales/fr.yml +70 -104
  174. data/config/locales/ga-IE.yml +0 -35
  175. data/config/locales/gl.yml +1 -87
  176. data/config/locales/hu.yml +25 -107
  177. data/config/locales/id-ID.yml +1 -88
  178. data/config/locales/is-IS.yml +1 -57
  179. data/config/locales/it.yml +6 -111
  180. data/config/locales/ja.yml +63 -109
  181. data/config/locales/lb.yml +6 -73
  182. data/config/locales/lt.yml +72 -101
  183. data/config/locales/lv.yml +1 -98
  184. data/config/locales/nl.yml +6 -103
  185. data/config/locales/no.yml +6 -114
  186. data/config/locales/pl.yml +11 -111
  187. data/config/locales/pt-BR.yml +21 -116
  188. data/config/locales/pt.yml +6 -111
  189. data/config/locales/ro-RO.yml +13 -108
  190. data/config/locales/ru.yml +1 -65
  191. data/config/locales/sk.yml +1 -84
  192. data/config/locales/sl.yml +3 -5
  193. data/config/locales/sq-AL.yml +1 -0
  194. data/config/locales/sv.yml +20 -107
  195. data/config/locales/th-TH.yml +1 -0
  196. data/config/locales/tr-TR.yml +9 -111
  197. data/config/locales/uk.yml +1 -65
  198. data/config/locales/zh-CN.yml +6 -102
  199. data/config/locales/zh-TW.yml +31 -97
  200. data/db/migrate/20171017091734_add_scopes_for_all_initiative_types.rb +1 -1
  201. data/db/migrate/20171017095143_update_initiative_scoped_type.rb +1 -1
  202. data/db/migrate/20191002082220_move_signature_type_to_initative_type.rb +1 -1
  203. data/lib/decidim/api/initiative_committee_member_type.rb +2 -2
  204. data/lib/decidim/initiatives/admin_engine.rb +13 -93
  205. data/lib/decidim/initiatives/content_blocks/registry_manager.rb +22 -0
  206. data/lib/decidim/initiatives/engine.rb +45 -23
  207. data/lib/decidim/initiatives/menu.rb +150 -0
  208. data/lib/decidim/initiatives/participatory_space.rb +6 -91
  209. data/lib/decidim/initiatives/query_extensions.rb +5 -5
  210. data/lib/decidim/initiatives/seeds.rb +95 -0
  211. data/lib/decidim/initiatives/test/factories.rb +25 -7
  212. data/lib/decidim/initiatives/version.rb +1 -1
  213. data/lib/decidim/initiatives.rb +1 -1
  214. data/lib/tasks/decidim_initiatives.rake +2 -2
  215. data/lib/tasks/initiatives/upgrade/decidim_initiatives_upgrade_tasks.rake +1 -1
  216. metadata +49 -75
  217. data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb +0 -28
  218. data/app/cells/decidim/initiatives/initiative_m/author.erb +0 -10
  219. data/app/cells/decidim/initiatives/initiative_m/footer.erb +0 -28
  220. data/app/cells/decidim/initiatives/initiative_m/tags.erb +0 -9
  221. data/app/cells/decidim/initiatives/initiative_m_cell.rb +0 -77
  222. data/app/controllers/decidim/initiatives/widgets_controller.rb +0 -30
  223. data/app/packs/stylesheets/decidim/initiatives/admin.scss +0 -33
  224. data/app/packs/stylesheets/decidim/initiatives/initiatives.scss +0 -64
  225. data/app/packs/stylesheets/decidim/initiatives/popularity_item.scss +0 -76
  226. data/app/packs/stylesheets/decidim/initiatives/statistics.scss +0 -15
  227. data/app/views/decidim/initiatives/create_initiative/_finish_help.html.erb +0 -2
  228. data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +0 -40
  229. data/app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb +0 -23
  230. data/app/views/decidim/initiatives/initiatives/_author.html.erb +0 -35
  231. data/app/views/decidim/initiatives/initiatives/_count.html.erb +0 -1
  232. data/app/views/decidim/initiatives/initiatives/_filters.html.erb +0 -33
  233. data/app/views/decidim/initiatives/initiatives/_filters_small_view.html.erb +0 -18
  234. data/app/views/decidim/initiatives/initiatives/_index_header.html.erb +0 -44
  235. data/app/views/decidim/initiatives/initiatives/_tags.html.erb +0 -7
  236. data/app/views/decidim/initiatives/versions/index.html.erb +0 -8
  237. data/db/seeds/city.jpeg +0 -0
  238. data/db/seeds/city2.jpeg +0 -0
  239. data/lib/decidim/initiatives/initiatives_filter_form_builder.rb +0 -56
  240. data/lib/gem_overrides/origami/date.rb +0 -47
@@ -27,6 +27,11 @@ module Decidim
27
27
 
28
28
  translatable_fields :title, :description, :answer
29
29
 
30
+ delegate :type, :scope, :scope_name, :supports_required, to: :scoped_type, allow_nil: true
31
+ delegate :document_number_authorization_handler, :promoting_committee_enabled?, :attachments_enabled?,
32
+ :promoting_committee_enabled?, :custom_signature_end_date_enabled?, :area_enabled?, to: :type
33
+ delegate :name, to: :area, prefix: true, allow_nil: true
34
+
30
35
  belongs_to :organization,
31
36
  foreign_key: "decidim_organization_id",
32
37
  class_name: "Decidim::Organization"
@@ -35,10 +40,6 @@ module Decidim
35
40
  class_name: "Decidim::InitiativesTypeScope",
36
41
  inverse_of: :initiatives
37
42
 
38
- delegate :type, :scope, :scope_name, :supports_required, to: :scoped_type, allow_nil: true
39
- delegate :attachments_enabled?, :promoting_committee_enabled?, :custom_signature_end_date_enabled?, :area_enabled?, to: :type
40
- delegate :name, to: :area, prefix: true, allow_nil: true
41
-
42
43
  has_many :votes,
43
44
  foreign_key: "decidim_initiative_id",
44
45
  class_name: "Decidim::InitiativesVote",
@@ -79,7 +80,7 @@ module Decidim
79
80
  .or(currently_unsignable)
80
81
  }
81
82
  scope :published, -> { where.not(published_at: nil) }
82
- scope :with_state, ->(state) { where(state: state) if state.present? }
83
+ scope :with_state, ->(state) { where(state:) if state.present? }
83
84
 
84
85
  scope_search_multi :with_any_state, [:accepted, :rejected, :answered, :open, :closed]
85
86
 
@@ -100,12 +101,7 @@ module Decidim
100
101
  scope :order_by_most_recent, -> { order(created_at: :desc) }
101
102
  scope :order_by_supports, -> { order(Arel.sql("(coalesce((online_votes->>'total')::int,0) + coalesce((offline_votes->>'total')::int,0)) DESC")) }
102
103
  scope :order_by_most_recently_published, -> { order(published_at: :desc) }
103
- scope :order_by_most_commented, lambda {
104
- select("decidim_initiatives.*")
105
- .left_joins(:comments)
106
- .group("decidim_initiatives.id")
107
- .order(Arel.sql("count(decidim_comments_comments.id) desc"))
108
- }
104
+ scope :order_by_most_commented, -> { order(comments_count: :desc) }
109
105
  scope :future_spaces, -> { none }
110
106
  scope :past_spaces, -> { closed }
111
107
 
@@ -156,7 +152,7 @@ module Decidim
156
152
  datetime: :published_at
157
153
  },
158
154
  index_on_create: ->(_initiative) { false },
159
- # is Resourceable instead of ParticipatorySpaceResourceable so we can't use `visible?`
155
+ # is Resourceable instead of ParticipatorySpaceResourceable so we cannot use `visible?`
160
156
  index_on_update: ->(initiative) { initiative.published? })
161
157
 
162
158
  def self.log_presenter_class_for(_log)
@@ -167,9 +163,6 @@ module Decidim
167
163
  [:with_any_state, :with_any_type, :with_any_scope, :with_any_area]
168
164
  end
169
165
 
170
- delegate :document_number_authorization_handler, :promoting_committee_enabled?, to: :type
171
- delegate :type, :scope, :scope_name, to: :scoped_type, allow_nil: true
172
-
173
166
  # Public: Overrides participatory space's banner image with the banner image defined
174
167
  # for the initiative type.
175
168
  #
@@ -184,7 +177,7 @@ module Decidim
184
177
  end
185
178
 
186
179
  # Public: Check if an initiative has been created by an individual person.
187
- # If it's false, then it has been created by an authorized organization.
180
+ # If it is false, then it has been created by an authorized organization.
188
181
  #
189
182
  # Returns a Boolean
190
183
  def created_by_individual?
@@ -240,14 +233,14 @@ module Decidim
240
233
  end
241
234
 
242
235
  # Public: Overrides scopes enabled flag available in other models like
243
- # participatory space or assemblies. For initiatives it won't be directly
236
+ # participatory space or assemblies. For initiatives it will not be directly
244
237
  # managed by the user and it will be enabled by default.
245
238
  def scopes_enabled?
246
239
  true
247
240
  end
248
241
 
249
242
  # Public: Overrides scopes enabled attribute value.
250
- # For initiatives it won't be directly
243
+ # For initiatives it will not be directly
251
244
  # managed by the user and it will be enabled by default.
252
245
  def scopes_enabled
253
246
  true
@@ -439,13 +432,17 @@ module Decidim
439
432
  committee_members.approved.count >= minimum_committee_members
440
433
  end
441
434
 
435
+ def missing_committee_members
436
+ minimum_committee_members - committee_members.approved.count
437
+ end
438
+
442
439
  def component
443
440
  nil
444
441
  end
445
442
 
446
443
  # Public: Checks if the type the initiative belongs to enables SMS code
447
444
  # verification step. Tis configuration is ignored if the organization
448
- # doesn't have the sms authorization available
445
+ # does not have the sms authorization available
449
446
  #
450
447
  # Returns a Boolean
451
448
  def validate_sms_code_on_votes?
@@ -475,7 +472,7 @@ module Decidim
475
472
  private
476
473
 
477
474
  # Private: This is just an alias because the naming on InitiativeTypeScope
478
- # is very confusing. The `scopes` method doesn't return Decidim::Scope but
475
+ # is very confusing. The `scopes` method does not return Decidim::Scope but
479
476
  # Decidim::InitiativeTypeScopes.
480
477
  #
481
478
  # ¯\_(ツ)_/¯
@@ -26,7 +26,7 @@ module Decidim
26
26
 
27
27
  after_commit :update_counter_cache, on: [:create, :destroy]
28
28
 
29
- scope :for_scope, ->(scope) { where(scope: scope) }
29
+ scope :for_scope, ->(scope) { where(scope:) }
30
30
 
31
31
  # Public: Generates a hashed representation of the initiative support.
32
32
  #
@@ -4,3 +4,6 @@ import "src/decidim/initiatives/scoped_type"
4
4
 
5
5
  // Images
6
6
  require.context("../images", true)
7
+
8
+ // CSS
9
+ import "stylesheets/initiatives.scss"
@@ -1 +1,42 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="initiatives-svg" width="1080" height="1080" x="0" y="0" enable-background="new 0 0 1080 1080" version="1.1" viewBox="0 0 1080 1080" xml:space="preserve"><g id="initiatives" class="stroke-primary"><polygon id="contact" fill="#31536E" points="500.5 967.5 580.5 967.5 610.5 911.5 470.5 911.5" class="fill-primary"/><g id="cap"><path id="_x35_0-pct_4_" fill="#31536E" fill-opacity=".5" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M687.5,682.054c0,14.054-11.393,25.446-25.446,25.446H418.946c-14.054,0-25.446-11.393-25.446-25.446v-0.106 c0-14.055,11.393-25.447,25.446-25.447h243.106c14.055,0,25.447,11.393,25.447,25.446V682.054z" class="fill-primary"/><path id="_x32_5-pct_6_" fill="#31536E" fill-opacity=".25" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M687.5,733.054c0,14.054-11.393,25.446-25.446,25.446H418.946c-14.054,0-25.446-11.393-25.446-25.446v-0.106 c0-14.055,11.393-25.447,25.446-25.447h243.106c14.055,0,25.447,11.393,25.447,25.446V733.054z" class="fill-primary"/><path id="_x35_0-pct_5_" fill="#31536E" fill-opacity=".5" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M687.5,784.054c0,14.054-11.393,25.446-25.446,25.446H418.946c-14.054,0-25.446-11.393-25.446-25.446v-0.106 c0-14.055,11.393-25.447,25.446-25.447h243.106c14.055,0,25.447,11.393,25.447,25.446V784.054z" class="fill-primary"/><path id="_x32_5-pct_5_" fill="#31536E" fill-opacity=".25" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M687.5,835.054c0,14.054-11.393,25.446-25.446,25.446H418.946c-14.054,0-25.446-11.393-25.446-25.446v-0.106 c0-14.055,11.393-25.447,25.446-25.447h243.106c14.055,0,25.447,11.393,25.447,25.446V835.054z" class="fill-primary"/><path id="_x35_0-pct_6_" fill="#31536E" fill-opacity=".5" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M687.5,886.054c0,14.054-11.393,25.446-25.446,25.446H418.946c-14.054,0-25.446-11.393-25.446-25.446v-0.106 c0-14.055,11.393-25.447,25.446-25.447h243.106c14.055,0,25.447,11.393,25.447,25.446V886.054z" class="fill-primary"/></g><path id="glass" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M789.571,371.337c0-137.578-111.529-249.079-249.107-249.079S291.357,233.801,291.357,371.379 c0,80.795,38.475,152.121,98.09,198.121h-0.022c27.35,24,47.839,54.127,58.972,87.004l183.387-0.06 c10.664-31.493,29.915-59.944,55.556-83.944h-0.022C749.299,527.5,789.571,453.998,789.571,371.337z"/><g id="filament"><path id="_x35_0-pct_7_" fill="#31536E" fill-opacity=".5" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M491.354,656.5c0,0,28.136-43.203,34.573-59.054c5.723-14.089,14.573-59.054,14.573-59.054s8.851,44.966,14.573,59.055 c6.438,15.85,34.573,59.053,34.573,59.053H540.5H491.354z" class="fill-primary"/><path id="_x32_5-pct_7_" fill="#31536E" fill-opacity=".25" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M496.393,407.685c28.994,28.995,44.37,131.34,44.37,131.34s-102.346-15.375-131.34-44.37 c-28.995-28.995-33.032-71.969-9.016-95.985C424.423,374.653,467.396,378.69,496.393,407.685z" class="fill-primary"/><path id="_x32_5-pct_8_" fill="#31536E" fill-opacity=".25" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="16" d="M671.747,494.655c-28.994,28.995-131.34,44.371-131.34,44.371s15.375-102.346,44.37-131.34 c28.994-28.996,71.97-33.032,95.984-9.016C704.779,422.686,700.742,465.66,671.747,494.655z" class="fill-primary"/><line x1="462.749" x2="540.5" y1="461.011" y2="538.393" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/><line x1="540.5" x2="618.421" y1="538.393" y2="461.011" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="8"/></g><g id="stars_4" class="stars"><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M130.5,374.396c0-14.688-18.667-35.355-35.355-35.355c15.355,0,35.355-20.333,35.355-35.355c0,15.022,16.666,35.355,35.355,35.355 C146.833,339.041,130.5,359.708,130.5,374.396z"/><g><circle cx="919.852" cy="859.217" r="13.5" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="903.353" x2="882.14" y1="842.481" y2="821.269" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="937.294" x2="958.507" y1="876.423" y2="897.636" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="936.587" x2="957.8" y1="843.188" y2="821.976" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="903.353" x2="882.14" y1="876.423" y2="897.636" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="885.448" x2="859.286" y1="566.135" y2="592.299" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="850.094" x2="823.931" y1="601.49" y2="627.654" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="884.741" x2="858.578" y1="627.654" y2="601.49" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="849.387" x2="823.224" y1="592.299" y2="566.135" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><path fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4" d="M945.602,73.542c0,0-21.564,4.034-26.516,8.981c-4.948,4.948-8.982,26.516-8.982,26.516s-4.035-21.565-8.982-26.516 c-4.948-4.947-26.516-8.981-26.516-8.981s22.077-4.547,26.516-8.983c4.438-4.438,8.982-26.515,8.982-26.515 s4.034,21.564,8.982,26.515C924.035,69.506,945.602,73.542,945.602,73.542z"/><g><circle cx="962.656" cy="362.498" r="16.604" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="926.755" cy="362.498" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="962.656" cy="398.399" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="998.558" cy="362.498" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="962.656" cy="326.597" r="6.432" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="108.246" x2="163.149" y1="727.014" y2="781.919" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="163.149" x2="108.246" y1="727.014" y2="781.919" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="117.5" x2="90.5" y1="754.041" y2="754.041" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="155.5" x2="182.5" y1="754.041" y2="754.041" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="136.5" x2="136.5" y1="773.041" y2="800.041" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="136.5" x2="136.5" y1="735.041" y2="708.041" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g><g><line x1="320" x2="320" y1="54.041" y2="133.041" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><line x1="359" x2="280" y1="94.041" y2="94.041" fill="none" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="300" cy="113.541" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="300" cy="73.541" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="340" cy="113.541" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/><circle cx="340" cy="73.541" r="7.039" fill="#FFD92B" stroke="#31536E" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"/></g></g></g></svg>
1
+ <svg width="540" height="540" viewBox="0 0 540 540" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M250.25 483.75H290.25L305.25 455.75H235.25L250.25 483.75Z" fill="#3E4C5C"/>
3
+ <path d="M343.75 341.027C343.75 348.054 338.054 353.75 331.027 353.75H209.473C202.446 353.75 196.75 348.053 196.75 341.027V340.974C196.75 333.946 202.447 328.25 209.473 328.25H331.026C338.054 328.25 343.75 333.947 343.75 340.973V341.027H343.75Z" fill="#3E4C5C" fill-opacity="0.5" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M343.75 366.527C343.75 373.554 338.054 379.25 331.027 379.25H209.473C202.446 379.25 196.75 373.553 196.75 366.527V366.474C196.75 359.446 202.447 353.75 209.473 353.75H331.026C338.054 353.75 343.75 359.447 343.75 366.473V366.527H343.75Z" fill="#3E4C5C" fill-opacity="0.25" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M343.75 392.027C343.75 399.054 338.054 404.75 331.027 404.75H209.473C202.446 404.75 196.75 399.053 196.75 392.027V391.974C196.75 384.946 202.447 379.25 209.473 379.25H331.026C338.054 379.25 343.75 384.947 343.75 391.973V392.027H343.75Z" fill="#3E4C5C" fill-opacity="0.5" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M343.75 417.527C343.75 424.554 338.054 430.25 331.027 430.25H209.473C202.446 430.25 196.75 424.553 196.75 417.527V417.474C196.75 410.446 202.447 404.75 209.473 404.75H331.026C338.054 404.75 343.75 410.447 343.75 417.473V417.527H343.75Z" fill="#3E4C5C" fill-opacity="0.25" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M343.75 443.027C343.75 450.054 338.054 455.75 331.027 455.75H209.473C202.446 455.75 196.75 450.053 196.75 443.027V442.974C196.75 435.946 202.447 430.25 209.473 430.25H331.026C338.054 430.25 343.75 435.947 343.75 442.973V443.027H343.75Z" fill="#3E4C5C" fill-opacity="0.5" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
8
+ <path d="M394.785 185.668C394.785 116.879 339.02 61.1289 270.231 61.1289C201.442 61.1289 145.678 116.9 145.678 185.689C145.678 226.087 164.915 261.75 194.723 284.75H194.712C208.387 296.75 218.631 311.813 224.198 328.252L315.891 328.222C321.223 312.475 330.849 298.25 343.669 286.25H343.658C374.649 263.75 394.785 226.999 394.785 185.668Z" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
9
+ <path d="M245.676 328.249C245.676 328.249 259.744 306.648 262.962 298.722C265.824 291.678 270.249 269.195 270.249 269.195C270.249 269.195 274.674 291.678 277.535 298.723C280.754 306.648 294.822 328.249 294.822 328.249H270.249H245.676Z" fill="#3E4C5C" fill-opacity="0.5" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
10
+ <path d="M248.196 203.842C262.693 218.339 270.381 269.512 270.381 269.512C270.381 269.512 219.208 261.824 204.711 247.327C190.214 232.829 188.195 211.342 200.203 199.334C212.211 187.326 233.698 189.344 248.196 203.842Z" fill="#3E4C5C" fill-opacity="0.25" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
11
+ <path d="M335.873 247.327C321.376 261.824 270.203 269.512 270.203 269.512C270.203 269.512 277.891 218.339 292.388 203.842C306.885 189.344 328.373 187.326 340.38 199.334C352.389 211.342 350.371 232.829 335.873 247.327Z" fill="#3E4C5C" fill-opacity="0.25" stroke="#3E4C5C" stroke-width="8" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
12
+ <path d="M231.375 230.504L270.251 269.195" stroke="#3E4C5C" stroke-width="4" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
13
+ <path d="M270.25 269.195L309.211 230.504" stroke="#3E4C5C" stroke-width="4" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
14
+ <path d="M65.2498 187.197C65.2498 179.853 55.9163 169.519 47.5723 169.519C55.2498 169.519 65.2498 159.353 65.2498 151.842C65.2498 159.353 73.5828 169.519 82.9273 169.519C73.4163 169.519 65.2498 179.853 65.2498 187.197Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
15
+ <path d="M459.926 436.357C463.654 436.357 466.676 433.335 466.676 429.607C466.676 425.879 463.654 422.857 459.926 422.857C456.198 422.857 453.176 425.879 453.176 429.607C453.176 433.335 456.198 436.357 459.926 436.357Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
16
+ <path d="M451.677 421.239L441.07 410.633" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
17
+ <path d="M468.646 438.209L479.253 448.815" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
18
+ <path d="M468.293 421.592L478.899 410.986" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
19
+ <path d="M451.677 438.209L441.07 448.815" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
20
+ <path d="M442.724 283.066L429.643 296.148" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
21
+ <path d="M425.046 300.744L411.965 313.826" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
22
+ <path d="M442.371 313.826L429.289 300.744" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
23
+ <path d="M424.693 296.148L411.611 283.066" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
24
+ <path d="M472.801 36.7705C472.801 36.7705 462.019 38.7875 459.543 41.261C457.069 43.735 455.052 54.519 455.052 54.519C455.052 54.519 453.034 43.7365 450.561 41.261C448.087 38.7875 437.303 36.7705 437.303 36.7705C437.303 36.7705 448.341 34.497 450.561 32.279C452.78 30.06 455.052 19.0215 455.052 19.0215C455.052 19.0215 457.069 29.8035 459.543 32.279C462.017 34.7525 472.801 36.7705 472.801 36.7705Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
25
+ <path d="M481.329 189.551C485.914 189.551 489.631 185.834 489.631 181.249C489.631 176.664 485.914 172.947 481.329 172.947C476.744 172.947 473.027 176.664 473.027 181.249C473.027 185.834 476.744 189.551 481.329 189.551Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
26
+ <path d="M463.378 184.465C465.154 184.465 466.594 183.025 466.594 181.249C466.594 179.473 465.154 178.033 463.378 178.033C461.602 178.033 460.162 179.473 460.162 181.249C460.162 183.025 461.602 184.465 463.378 184.465Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
27
+ <path d="M481.329 202.414C483.105 202.414 484.545 200.975 484.545 199.198C484.545 197.422 483.105 195.982 481.329 195.982C479.553 195.982 478.113 197.422 478.113 199.198C478.113 200.975 479.553 202.414 481.329 202.414Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
28
+ <path d="M499.279 184.465C501.055 184.465 502.495 183.025 502.495 181.249C502.495 179.473 501.055 178.033 499.279 178.033C497.502 178.033 496.062 179.473 496.062 181.249C496.062 183.025 497.502 184.465 499.279 184.465Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
29
+ <path d="M481.329 166.514C483.105 166.514 484.545 165.074 484.545 163.298C484.545 161.522 483.105 160.082 481.329 160.082C479.553 160.082 478.113 161.522 478.113 163.298C478.113 165.074 479.553 166.514 481.329 166.514Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
30
+ <path d="M54.123 363.506L81.5745 390.958" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
31
+ <path d="M81.5745 363.506L54.123 390.958" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
32
+ <path d="M58.75 377.02H45.25" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
33
+ <path d="M77.75 377.02H91.25" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
34
+ <path d="M68.25 386.52V400.02" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
35
+ <path d="M68.25 367.52V354.02" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
36
+ <path d="M160 27.0195V66.5195" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
37
+ <path d="M179.5 47.0195H140" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
38
+ <path d="M150 60.289C151.944 60.289 153.519 58.7133 153.519 56.7695C153.519 54.8257 151.944 53.25 150 53.25C148.056 53.25 146.48 54.8257 146.48 56.7695C146.48 58.7133 148.056 60.289 150 60.289Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
39
+ <path d="M150 40.289C151.944 40.289 153.519 38.7133 153.519 36.7695C153.519 34.8257 151.944 33.25 150 33.25C148.056 33.25 146.48 34.8257 146.48 36.7695C146.48 38.7133 148.056 40.289 150 40.289Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
40
+ <path d="M170 60.289C171.944 60.289 173.519 58.7133 173.519 56.7695C173.519 54.8257 171.944 53.25 170 53.25C168.056 53.25 166.48 54.8257 166.48 56.7695C166.48 58.7133 168.056 60.289 170 60.289Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
41
+ <path d="M170 40.289C171.944 40.289 173.519 38.7133 173.519 36.7695C173.519 34.8257 171.944 33.25 170 33.25C168.056 33.25 166.48 34.8257 166.48 36.7695C166.48 38.7133 168.056 40.289 170 40.289Z" fill="#EBC34B" stroke="#3E4C5C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
42
+ </svg>
@@ -1,3 +1,2 @@
1
- import "src/decidim/editor"
2
1
  import "src/decidim/initiatives/scoped_type"
3
2
  import "src/decidim/initiatives/identity_selector_dialog"
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable camelcase */
2
- const controlSelector = function(source, prefix, currentValueKey) {
2
+ const controlSelector = function (source, prefix, currentValueKey) {
3
3
  if (source.length) {
4
4
  let currentValue = source.data(currentValueKey),
5
5
  searchUrl = source.data(`${prefix}-search-url`),
@@ -1,5 +1,5 @@
1
- @media all{
2
- .initiative-title{
1
+ @media all {
2
+ .initiative-title {
3
3
  border: 1pt solid black;
4
4
  margin: 15pt 0;
5
5
  font-size: 12pt;
@@ -7,12 +7,12 @@
7
7
  text-align: center;
8
8
  }
9
9
 
10
- .initiatives-votes-table{
10
+ .initiatives-votes-table {
11
11
  width: 100%;
12
12
  display: block;
13
13
  border: 1pt solid black;
14
14
 
15
- .initiatives-votes-table-header{
15
+ .initiatives-votes-table-header {
16
16
  background-color: lightgray;
17
17
  display: inline-block;
18
18
  width: 100%;
@@ -21,76 +21,76 @@
21
21
  border-bottom: 1pt solid black;
22
22
  }
23
23
 
24
- .initiatives-votes-table-row{
24
+ .initiatives-votes-table-row {
25
25
  width: 100%;
26
26
  display: inline-block;
27
27
  min-height: 33pt;
28
28
  }
29
29
 
30
- .initiatives-votes-table-row::after{
31
- content: '';
30
+ .initiatives-votes-table-row::after {
31
+ content: "";
32
32
  display: inline-block;
33
33
  clear: both;
34
34
  }
35
35
 
36
- .initiatives-votes-table-row:last-child{
36
+ .initiatives-votes-table-row:last-child {
37
37
  border-bottom: 0;
38
38
  }
39
39
 
40
- .initiatives-votes-table-cell{
40
+ .initiatives-votes-table-cell {
41
41
  padding-left: 5pt;
42
42
  word-wrap: break-word;
43
43
  display: inline-block;
44
44
  float: left;
45
45
  min-height: 36pt;
46
46
 
47
- .cell-content{
47
+ .cell-content {
48
48
  font-size: 10pt;
49
49
  word-wrap: break-word;
50
50
  }
51
51
  }
52
52
 
53
- .checkbox-cell{
53
+ .checkbox-cell {
54
54
  width: 36pt;
55
55
  }
56
56
 
57
- .initiatives-votes-table-cell:last-child{
57
+ .initiatives-votes-table-cell:last-child {
58
58
  border-right: 0;
59
59
  }
60
60
 
61
- .w11{
61
+ .w11 {
62
62
  width: 10.8%;
63
63
  }
64
64
 
65
- .w20{
65
+ .w20 {
66
66
  width: 19%;
67
67
  }
68
68
  }
69
69
 
70
- .no-border{
70
+ .no-border {
71
71
  border: none !important;
72
72
  }
73
73
  }
74
74
 
75
- @page{
75
+ @page {
76
76
  size: A4;
77
77
  margin: 17mm 17mm 11mm 11mm;
78
78
  }
79
79
 
80
- @media print{
81
- .title-bar{
80
+ @media print {
81
+ .title-bar {
82
82
  display: none;
83
83
  }
84
84
 
85
- .layout-nav{
85
+ .layout-nav {
86
86
  display: none;
87
87
  }
88
88
 
89
- .button.expanded{
89
+ .button.expanded {
90
90
  display: none;
91
91
  }
92
92
 
93
- .page-break{
93
+ .page-break {
94
94
  page-break-before: auto;
95
95
  }
96
96
  }
@@ -1,20 +1,20 @@
1
- @media all{
2
- .printable{
1
+ @media all {
2
+ .printable {
3
3
  width: 80%;
4
4
  margin-left: auto;
5
5
  margin-right: auto;
6
6
  }
7
7
 
8
- .initiative-letterhead{
8
+ .initiative-letterhead {
9
9
  font-size: 14pt;
10
10
  font-weight: bold;
11
11
 
12
- img{
12
+ img {
13
13
  margin-right: 5pt;
14
14
  }
15
15
  }
16
16
 
17
- .initiative-print-title{
17
+ .initiative-print-title {
18
18
  border: 1pt solid black;
19
19
  margin: 15pt 0;
20
20
  font-size: 12pt;
@@ -22,12 +22,12 @@
22
22
  text-align: center;
23
23
  }
24
24
 
25
- .print-table{
25
+ .print-table {
26
26
  width: 100%;
27
27
  display: block;
28
28
  border: 1pt solid black;
29
29
 
30
- .print-table-header{
30
+ .print-table-header {
31
31
  background-color: lightgray;
32
32
  display: inline-block;
33
33
  width: 100%;
@@ -37,108 +37,136 @@
37
37
  border-bottom: 1pt solid black;
38
38
  }
39
39
 
40
- .print-table-row{
40
+ .print-table-row {
41
41
  width: 100%;
42
42
  display: inline-block;
43
43
  min-height: 33pt;
44
44
  border-bottom: 1pt solid black;
45
45
  }
46
46
 
47
- .print-table-row::after{
48
- content: '';
47
+ .print-table-row::after {
48
+ content: "";
49
49
  display: inline-block;
50
50
  clear: both;
51
51
  }
52
52
 
53
- .print-table-row:last-child{
53
+ .print-table-row:last-child {
54
54
  border-bottom: 0;
55
55
  }
56
56
 
57
- .print-table-cell{
57
+ .print-table-cell {
58
58
  padding-left: 5pt;
59
59
  display: inline-block;
60
60
  float: left;
61
61
  border-right: 1pt solid black;
62
62
  min-height: 36pt;
63
63
 
64
- .cell-content{
64
+ .cell-content {
65
65
  font-size: 10pt;
66
66
  word-wrap: break-word;
67
67
  }
68
68
  }
69
69
 
70
- .checkbox-cell{
70
+ .checkbox-cell {
71
71
  width: 36pt;
72
72
  }
73
73
 
74
- .print-table-cell:last-child{
74
+ .print-table-cell:last-child {
75
75
  border-right: 0;
76
76
  }
77
77
 
78
- .w33{
78
+ .w33 {
79
79
  width: 33%;
80
80
  }
81
81
 
82
- .w66{
82
+ .w66 {
83
83
  width: 66%;
84
84
  }
85
85
 
86
- .w50{
86
+ .w50 {
87
87
  width: 50%;
88
88
  }
89
89
  }
90
90
 
91
- .no-border{
91
+ .no-border {
92
92
  border: none !important;
93
93
  }
94
94
 
95
- .print-section-title{
95
+ .print-section-title {
96
96
  font-size: 12pt;
97
97
  font-weight: bold;
98
98
  margin-top: 15pt;
99
99
  }
100
100
 
101
- .print-initiative-legal-text{
101
+ .print-initiative-legal-text {
102
102
  font-size: 10pt;
103
103
  margin-top: 80pt;
104
104
  }
105
105
  }
106
106
 
107
- @page{
107
+ @page {
108
108
  size: A4;
109
109
  margin: 17mm 17mm 11mm 11mm;
110
110
  }
111
111
 
112
- @media print{
113
- .process-header{
112
+ @media print {
113
+ h3.print-section-title {
114
114
  display: none;
115
115
  }
116
116
 
117
- .main-nav{
117
+ .print-button {
118
118
  display: none;
119
119
  }
120
120
 
121
- .title-bar{
121
+ .omnipresent-banner {
122
122
  display: none;
123
123
  }
124
124
 
125
- .layout-nav{
125
+ .decidim-accessibility-indicator {
126
126
  display: none;
127
127
  }
128
128
 
129
- .button.expanded{
129
+ .decidim-accessibility-badge {
130
130
  display: none;
131
131
  }
132
132
 
133
- .page-break{
133
+ .decidim-accessibility-report {
134
+ display: none;
135
+ }
136
+
137
+ .process-header {
138
+ display: none;
139
+ }
140
+
141
+ header {
142
+ display: none;
143
+ }
144
+
145
+ .main-nav {
146
+ display: none;
147
+ }
148
+
149
+ .title-bar {
150
+ display: none;
151
+ }
152
+
153
+ .layout-nav {
154
+ display: none;
155
+ }
156
+
157
+ .button.expanded {
158
+ display: none;
159
+ }
160
+
161
+ .page-break {
134
162
  page-break-before: auto;
135
163
  }
136
164
 
137
- .main-footer{
165
+ .main-footer {
138
166
  display: none;
139
167
  }
140
168
 
141
- .mini-footer{
169
+ .mini-footer {
142
170
  display: none;
143
171
  }
144
172
  }