decidim-initiatives 0.28.5 → 0.29.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/cells/decidim/initiatives/initiative_g_cell.rb +6 -4
  4. data/app/cells/decidim/initiatives_votes/vote_cell.rb +1 -3
  5. data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +9 -58
  6. data/app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb +5 -43
  7. data/app/commands/decidim/initiatives/admin/update_initiative.rb +25 -42
  8. data/app/commands/decidim/initiatives/admin/update_initiative_answer.rb +3 -4
  9. data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +11 -61
  10. data/app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb +2 -33
  11. data/app/commands/decidim/initiatives/admin/update_initiatives_settings.rb +2 -35
  12. data/app/commands/decidim/initiatives/approve_membership_request.rb +1 -1
  13. data/app/commands/decidim/initiatives/create_initiative.rb +6 -7
  14. data/app/commands/decidim/initiatives/revoke_membership_request.rb +1 -1
  15. data/app/commands/decidim/initiatives/spawn_committee_request.rb +4 -5
  16. data/app/commands/decidim/initiatives/update_initiative.rb +3 -3
  17. data/app/commands/decidim/initiatives/validate_sms_code.rb +3 -3
  18. data/app/controllers/concerns/decidim/initiatives/needs_initiative.rb +1 -1
  19. data/app/controllers/decidim/initiatives/admin/answers_controller.rb +1 -1
  20. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +7 -6
  21. data/app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb +1 -1
  22. data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +2 -2
  23. data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +2 -2
  24. data/app/controllers/decidim/initiatives/application_controller.rb +5 -2
  25. data/app/controllers/decidim/initiatives/committee_requests_controller.rb +1 -2
  26. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +1 -1
  27. data/app/controllers/decidim/initiatives/initiatives_controller.rb +2 -2
  28. data/app/events/decidim/initiatives/approve_membership_request_event.rb +9 -29
  29. data/app/events/decidim/initiatives/create_initiative_event.rb +17 -36
  30. data/app/events/decidim/initiatives/revoke_membership_request_event.rb +10 -33
  31. data/app/events/decidim/initiatives/spawn_committee_request_event.rb +10 -33
  32. data/app/forms/decidim/initiatives/admin/initiative_answer_form.rb +1 -1
  33. data/app/forms/decidim/initiatives/admin/initiative_form.rb +3 -3
  34. data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +2 -2
  35. data/app/forms/decidim/initiatives/initiative_form.rb +11 -1
  36. data/app/forms/decidim/initiatives/vote_form.rb +2 -2
  37. data/app/helpers/decidim/initiatives/initiative_helper.rb +0 -74
  38. data/app/helpers/decidim/initiatives/initiatives_helper.rb +0 -7
  39. data/app/models/decidim/initiative.rb +1 -1
  40. data/app/packs/entrypoints/decidim_initiatives_admin.js +0 -2
  41. data/app/packs/src/decidim/initiatives/admin/invite_users.js +1 -1
  42. data/app/permissions/decidim/initiatives/admin/permissions.rb +2 -2
  43. data/app/permissions/decidim/initiatives/permissions.rb +0 -14
  44. data/app/serializers/decidim/initiatives/initiative_serializer.rb +1 -1
  45. data/app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb +1 -1
  46. data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +1 -2
  47. data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +6 -6
  48. data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +65 -59
  49. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/_form.html.erb +1 -1
  50. data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +1 -1
  51. data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +1 -1
  52. data/app/views/decidim/initiatives/committee_requests/new.html.erb +3 -4
  53. data/app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb +1 -1
  54. data/app/views/decidim/initiatives/initiatives/_interactions.html.erb +1 -1
  55. data/app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb +1 -1
  56. data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +1 -1
  57. data/app/views/decidim/initiatives/initiatives/print.html.erb +2 -2
  58. data/app/views/decidim/initiatives/initiatives/show.html.erb +2 -3
  59. data/app/views/layouts/decidim/_initiative_header.html.erb +6 -6
  60. data/app/views/layouts/decidim/initiative.html.erb +2 -2
  61. data/app/views/layouts/decidim/initiative_head.html.erb +1 -1
  62. data/config/initializers/wicked_pdf.rb +6 -4
  63. data/config/locales/ar.yml +0 -7
  64. data/config/locales/bg.yml +1 -3
  65. data/config/locales/ca.yml +7 -14
  66. data/config/locales/cs.yml +5 -13
  67. data/config/locales/de.yml +7 -14
  68. data/config/locales/el.yml +0 -4
  69. data/config/locales/en.yml +6 -13
  70. data/config/locales/es-MX.yml +7 -14
  71. data/config/locales/es-PY.yml +7 -14
  72. data/config/locales/es.yml +6 -13
  73. data/config/locales/eu.yml +51 -58
  74. data/config/locales/fi-plain.yml +6 -13
  75. data/config/locales/fi.yml +21 -28
  76. data/config/locales/fr-CA.yml +3 -5
  77. data/config/locales/fr.yml +2 -4
  78. data/config/locales/ga-IE.yml +0 -1
  79. data/config/locales/gl.yml +0 -4
  80. data/config/locales/he-IL.yml +0 -6
  81. data/config/locales/hu.yml +1 -4
  82. data/config/locales/id-ID.yml +0 -4
  83. data/config/locales/is-IS.yml +0 -8
  84. data/config/locales/it.yml +1 -3
  85. data/config/locales/ja.yml +8 -15
  86. data/config/locales/lb.yml +1 -1
  87. data/config/locales/lt.yml +0 -3
  88. data/config/locales/lv.yml +0 -4
  89. data/config/locales/nl.yml +0 -4
  90. data/config/locales/no.yml +0 -2
  91. data/config/locales/pl.yml +5 -2
  92. data/config/locales/pt-BR.yml +1 -17
  93. data/config/locales/pt.yml +0 -2
  94. data/config/locales/ro-RO.yml +0 -12
  95. data/config/locales/ru.yml +0 -9
  96. data/config/locales/sk.yml +0 -4
  97. data/config/locales/sv.yml +69 -194
  98. data/config/locales/tr-TR.yml +1 -3
  99. data/config/locales/uk.yml +0 -9
  100. data/config/locales/zh-CN.yml +0 -3
  101. data/config/locales/zh-TW.yml +0 -3
  102. data/decidim-initiatives.gemspec +3 -2
  103. data/lib/decidim/api/initiative_api_type.rb +2 -2
  104. data/lib/decidim/initiatives/engine.rb +1 -0
  105. data/lib/decidim/initiatives/menu.rb +12 -1
  106. data/lib/decidim/initiatives/seeds.rb +89 -64
  107. data/lib/decidim/initiatives/version.rb +1 -1
  108. data/lib/decidim/initiatives.rb +0 -12
  109. data/lib/tasks/decidim_initiatives.rake +3 -3
  110. data/lib/tasks/initiatives/upgrade/decidim_initiatives_upgrade_tasks.rake +9 -11
  111. metadata +33 -25
  112. data/app/forms/decidim/initiatives/previous_form.rb +0 -24
  113. data/app/packs/entrypoints/decidim_initiatives_admin.scss +0 -1
  114. data/app/packs/stylesheets/decidim/initiatives/admin/initiatives.scss +0 -13
  115. data/app/queries/decidim/initiatives/similar_initiatives.rb +0 -54
  116. data/config/locales/bn-BD.yml +0 -1
  117. data/config/locales/bs-BA.yml +0 -1
@@ -243,6 +243,10 @@ pl:
243
243
  most_recent: Najnowsze
244
244
  exports:
245
245
  initiatives: Inicjatywy
246
+ index:
247
+ initiatives_types:
248
+ alert_html: "<p>Musisz utworzyć co najmniej jeden typ inicjatywy, aby uczestnicy mogli rozpocząć tworzenie inicjatyw.</p><p> %{link}</p>"
249
+ button: Nowy typ inicjatywy
246
250
  initiatives:
247
251
  edit:
248
252
  accept: Akceptuj inicjatywę
@@ -298,7 +302,7 @@ pl:
298
302
  initiatives_types:
299
303
  create:
300
304
  error: Wystąpił błąd.
301
- success: Utworzono nowy typ inicjatywy.
305
+ success: Nowy typ inicjatywy został pomyślnie utworzony. Musisz zdefiniować co najmniej jeden zakres dla tego typu inicjatywy, aby można go było użyć.
302
306
  destroy:
303
307
  success: Typ inicjatywy został usunięty.
304
308
  edit:
@@ -554,7 +558,6 @@ pl:
554
558
  other: " podpisy"
555
559
  vote_cabin:
556
560
  already_voted: Już podpisano
557
- supports_required: "Wymagane %{total_supports} podpisów"
558
561
  verification_required: Zweryfikuj swoje konto, aby podpisać inicjatywę
559
562
  vote: Podpisz
560
563
  votes_blocked: Podpisywanie wyłączone
@@ -89,7 +89,6 @@ pt-BR:
89
89
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Pesquisar %{collection} por título, descrição, ID ou nome do autor.
90
90
  initiatives_settings:
91
91
  update:
92
- error: Ocorreu um erro.
93
92
  success: As configurações de iniciativas foram atualizadas com sucesso.
94
93
  menu:
95
94
  attachments: Anexos
@@ -238,8 +237,6 @@ pt-BR:
238
237
  edit: Editar
239
238
  new: Novo
240
239
  photos: Fotos
241
- update:
242
- error: Ocorreu um erro.
243
240
  initiatives_settings:
244
241
  form:
245
242
  comments: Mais comentado
@@ -249,20 +246,13 @@ pt-BR:
249
246
  signatures: Mais assinadas
250
247
  title: Configurações de iniciativas
251
248
  initiatives_type_scopes:
252
- create:
253
- error: Ocorreu um erro.
254
249
  edit:
255
250
  title: Editar o âmbito do tipo de iniciativa
256
251
  update: Atualizar
257
252
  new:
258
253
  create: Criar
259
254
  title: Criar âmbito de tipo de iniciativa
260
- update:
261
- error: Ocorreu um erro.
262
255
  initiatives_types:
263
- create:
264
- error: Ocorreu um erro.
265
- success: Um novo tipo de iniciativa foi criado com sucesso.
266
256
  edit:
267
257
  update: Atualizar
268
258
  form:
@@ -275,8 +265,6 @@ pt-BR:
275
265
  new:
276
266
  create: Criar
277
267
  title: Novo tipo de iniciativa
278
- update:
279
- error: Ocorreu um erro.
280
268
  admin_log:
281
269
  initiative:
282
270
  publish: "%{user_name} publicou a iniciativa %{resource_name}"
@@ -471,7 +459,7 @@ pt-BR:
471
459
  phone_number: Número de telefone
472
460
  place_date: Local, data
473
461
  postal_code: CEP/CEP
474
- print: Impressão
462
+ print: Imprimir
475
463
  province: Cidade/Estado
476
464
  section: 'Se solicitado pela organização, por favor imprima e preencha este formulário para enviar quando indicado:'
477
465
  signature: Assinatura
@@ -492,7 +480,6 @@ pt-BR:
492
480
  other: " assinaturas"
493
481
  vote_cabin:
494
482
  already_voted: Já assinadas
495
- supports_required: "São necessárias %{total_supports} assinaturas"
496
483
  verification_required: Confirme sua conta para assinar a iniciativa
497
484
  vote: Placa
498
485
  votes_blocked: Assinatura desativada
@@ -533,14 +520,11 @@ pt-BR:
533
520
  accepted: Aceitaram
534
521
  expired: Expirado
535
522
  unavailable_scope: Escopo não disponível
536
- update:
537
- error: Ocorreu um erro.
538
523
  menu:
539
524
  initiatives: Iniciativas
540
525
  resources:
541
526
  initiatives_type:
542
527
  actions:
543
- create: Criar
544
528
  title: Ações
545
529
  vote: Voto
546
530
  layouts:
@@ -437,7 +437,6 @@ pt:
437
437
  other: " assinaturas"
438
438
  vote_cabin:
439
439
  already_voted: Já assinou
440
- supports_required: "%{total_supports} assinaturas necessárias"
441
440
  verification_required: Verifique a sua conta para assinar a iniciativa
442
441
  vote: Assinar
443
442
  votes_blocked: Assinatura desativada
@@ -481,7 +480,6 @@ pt:
481
480
  comment: Comentários
482
481
  initiatives_type:
483
482
  actions:
484
- create: Criar
485
483
  title: Ações
486
484
  vote: Assinar
487
485
  layouts:
@@ -220,10 +220,6 @@ ro:
220
220
  exports:
221
221
  initiatives: Inițiative
222
222
  initiatives:
223
- accept:
224
- success: Inițiativa a fost acceptată cu succes.
225
- discard:
226
- success: Inițiativa a fost anulată cu succes.
227
223
  edit:
228
224
  accept: Acceptă inițiativa
229
225
  confirm: Sigur dorești asta?
@@ -246,12 +242,6 @@ ro:
246
242
  edit: Editare
247
243
  new: Nou
248
244
  photos: Poze
249
- publish:
250
- success: Inițiativa a fost publicată cu succes.
251
- reject:
252
- success: Inițiativa a fost respinsă.
253
- unpublish:
254
- success: Inițiativa a fost ascunsă cu succes.
255
245
  update:
256
246
  error: A apărut o eroare.
257
247
  success: Inițiativa a fost actualizată cu succes.
@@ -487,7 +477,6 @@ ro:
487
477
  other: " semnături"
488
478
  vote_cabin:
489
479
  already_voted: Deja semnat
490
- supports_required: "%{total_supports} semnături necesare"
491
480
  verification_required: Verifică-ți contul pentru a semna inițiativa
492
481
  vote: Semnare
493
482
  votes_blocked: Semnarea este dezactivată
@@ -532,7 +521,6 @@ ro:
532
521
  comment: Comentează
533
522
  initiatives_type:
534
523
  actions:
535
- create: Creează
536
524
  title: Acțiuni
537
525
  vote: Semnare
538
526
  layouts:
@@ -62,9 +62,6 @@ ru:
62
62
  created_at: 'Создано:'
63
63
  title: Виды починов
64
64
  name: Вид почина
65
- initiatives_votes:
66
- fields:
67
- scope: Охват
68
65
  titles:
69
66
  initiatives: Почины
70
67
  initiatives_types: Виды починов
@@ -210,7 +207,6 @@ ru:
210
207
  recent: Самые последние
211
208
  print:
212
209
  city: Город
213
- print: Распечатать
214
210
  result:
215
211
  initiative_rejected_reason: Этот почин был отвергнут из-за недостатка поддержки.
216
212
  signatures_count:
@@ -220,7 +216,6 @@ ru:
220
216
  other: " подписей"
221
217
  vote_cabin:
222
218
  already_voted: Уже подписали
223
- supports_required: "Требуется %{total_supports} подписей"
224
219
  vote: Подписать
225
220
  votes_blocked: Подписание отключено
226
221
  votes_count:
@@ -245,10 +240,6 @@ ru:
245
240
  expired: Истекшие
246
241
  menu:
247
242
  initiatives: Почины
248
- resources:
249
- initiatives_type:
250
- actions:
251
- create: Создать
252
243
  layouts:
253
244
  decidim:
254
245
  initiative_creation_header:
@@ -89,7 +89,6 @@ sk:
89
89
  initiative_title: Názov iniciatívy
90
90
  name_and_surname: Meno a priezvisko
91
91
  postal_code: Poštové smerovacie číslo
92
- scope: Rozsah
93
92
  time_and_date: Čas a dátum
94
93
  timestamp: Časová pečiatka
95
94
  titles:
@@ -276,7 +275,6 @@ sk:
276
275
  recent: Najnovšie
277
276
  print:
278
277
  city: Mesto
279
- print: Tlač
280
278
  result:
281
279
  initiative_rejected_reason: Táto iniciatíva bola zamietnutá z dôvodu nedostatočnej podpory.
282
280
  signatures_count:
@@ -286,7 +284,6 @@ sk:
286
284
  other: "podpisy"
287
285
  vote_cabin:
288
286
  already_voted: Už ste podpísal
289
- supports_required: "Vyžaduje sa%{total_supports} podpisov"
290
287
  verification_required: Overte svoj účet, aby ste podpísali iniciatívu
291
288
  vote: Podpísať
292
289
  votes_blocked: Podpis zakázaný
@@ -316,7 +313,6 @@ sk:
316
313
  resources:
317
314
  initiatives_type:
318
315
  actions:
319
- create: Vytvoriť
320
316
  title: Akcia
321
317
  vote: Hlasovanie
322
318
  layouts: