decidim-initiatives 0.29.2 → 0.30.0.rc2

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 (112) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb +1 -1
  3. data/app/commands/decidim/initiatives/create_initiative.rb +16 -4
  4. data/app/commands/decidim/initiatives/update_initiative.rb +23 -9
  5. data/app/controllers/concerns/decidim/initiatives/needs_initiative.rb +1 -1
  6. data/app/controllers/decidim/initiatives/admin/application_controller.rb +2 -0
  7. data/app/controllers/decidim/initiatives/admin/component_share_tokens_controller.rb +18 -0
  8. data/app/controllers/decidim/initiatives/admin/initiative_share_tokens_controller.rb +18 -0
  9. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +8 -8
  10. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +3 -2
  11. data/app/controllers/decidim/initiatives/initiative_types_controller.rb +1 -1
  12. data/app/controllers/decidim/initiatives/initiatives_controller.rb +3 -0
  13. data/app/forms/decidim/initiatives/admin/initiative_answer_form.rb +1 -1
  14. data/app/forms/decidim/initiatives/vote_form.rb +1 -1
  15. data/app/helpers/decidim/initiatives/initiative_helper.rb +1 -39
  16. data/app/helpers/decidim/initiatives/initiatives_helper.rb +8 -5
  17. data/app/helpers/decidim/initiatives/scopes_helper.rb +43 -0
  18. data/app/jobs/decidim/initiatives/export_initiatives_job.rb +5 -1
  19. data/app/models/decidim/initiative.rb +40 -27
  20. data/app/models/decidim/initiatives_type_scope.rb +9 -0
  21. data/app/permissions/decidim/initiatives/admin/permissions.rb +7 -0
  22. data/app/permissions/decidim/initiatives/permissions.rb +10 -3
  23. data/app/queries/decidim/initiatives/outdated_validating_initiatives.rb +1 -1
  24. data/app/queries/decidim/initiatives/support_period_finished_initiatives.rb +2 -2
  25. data/app/serializers/decidim/initiatives/download_your_data_initiative_serializer.rb +15 -0
  26. data/app/serializers/decidim/initiatives/initiative_serializer.rb +5 -24
  27. data/app/serializers/decidim/initiatives/open_data_initiative_serializer.rb +54 -0
  28. data/app/services/decidim/initiatives/data_encryptor.rb +1 -1
  29. data/app/services/decidim/initiatives/pdf_signature_example.rb +0 -2
  30. data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +1 -2
  31. data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +7 -0
  32. data/app/views/decidim/initiatives/committee_requests/new.html.erb +1 -2
  33. data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +3 -3
  34. data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +10 -2
  35. data/app/views/decidim/initiatives/initiatives/_form.html.erb +3 -3
  36. data/app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb +16 -13
  37. data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +9 -3
  38. data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +0 -1
  39. data/app/views/decidim/initiatives/initiatives/show.html.erb +7 -8
  40. data/app/views/layouts/decidim/admin/_manage_initiatives.html.erb +11 -0
  41. data/app/views/layouts/decidim/admin/initiatives.html.erb +1 -9
  42. data/config/assets.rb +1 -3
  43. data/config/locales/ar.yml +7 -8
  44. data/config/locales/bg.yml +2 -22
  45. data/config/locales/ca.yml +55 -21
  46. data/config/locales/cs.yml +55 -21
  47. data/config/locales/de.yml +55 -21
  48. data/config/locales/el.yml +2 -9
  49. data/config/locales/en.yml +53 -19
  50. data/config/locales/es-MX.yml +55 -21
  51. data/config/locales/es-PY.yml +55 -21
  52. data/config/locales/es.yml +55 -21
  53. data/config/locales/eu.yml +55 -21
  54. data/config/locales/fi-plain.yml +55 -21
  55. data/config/locales/fi.yml +55 -21
  56. data/config/locales/fr-CA.yml +9 -22
  57. data/config/locales/fr.yml +9 -22
  58. data/config/locales/ga-IE.yml +0 -3
  59. data/config/locales/gl.yml +2 -10
  60. data/config/locales/hu.yml +2 -20
  61. data/config/locales/id-ID.yml +2 -8
  62. data/config/locales/is-IS.yml +0 -9
  63. data/config/locales/it.yml +2 -11
  64. data/config/locales/ja.yml +55 -21
  65. data/config/locales/lb.yml +2 -7
  66. data/config/locales/lt.yml +2 -22
  67. data/config/locales/lv.yml +2 -9
  68. data/config/locales/nl.yml +2 -11
  69. data/config/locales/no.yml +2 -13
  70. data/config/locales/pl.yml +2 -21
  71. data/config/locales/pt-BR.yml +2 -27
  72. data/config/locales/pt.yml +2 -11
  73. data/config/locales/ro-RO.yml +2 -19
  74. data/config/locales/ru.yml +0 -9
  75. data/config/locales/sk.yml +2 -8
  76. data/config/locales/sl.yml +0 -1
  77. data/config/locales/sv.yml +13 -21
  78. data/config/locales/tr-TR.yml +2 -11
  79. data/config/locales/uk.yml +0 -9
  80. data/config/locales/zh-CN.yml +2 -10
  81. data/config/locales/zh-TW.yml +2 -21
  82. data/db/migrate/20241127104718_add_taxonomy_to_initiatives_type_scope.rb +7 -0
  83. data/decidim-initiatives.gemspec +1 -3
  84. data/lib/decidim/api/initiative_api_type.rb +9 -10
  85. data/lib/decidim/api/initiative_committee_member_type.rb +3 -4
  86. data/lib/decidim/api/initiative_type.rb +15 -21
  87. data/lib/decidim/api/initiative_type_interface.rb +1 -5
  88. data/lib/decidim/exporters/initiative_votes_pdf.rb +163 -0
  89. data/lib/decidim/initiatives/admin_engine.rb +68 -49
  90. data/lib/decidim/initiatives/application_form_pdf.rb +181 -0
  91. data/lib/decidim/initiatives/engine.rb +6 -0
  92. data/lib/decidim/initiatives/menu.rb +8 -0
  93. data/lib/decidim/initiatives/participatory_space.rb +8 -1
  94. data/lib/decidim/initiatives/test/factories.rb +5 -8
  95. data/lib/decidim/initiatives/version.rb +1 -1
  96. data/lib/decidim/initiatives.rb +7 -1
  97. metadata +25 -59
  98. data/app/cells/decidim/initiatives_votes/vote/show.erb +0 -39
  99. data/app/cells/decidim/initiatives_votes/vote_cell.rb +0 -58
  100. data/app/packs/entrypoints/decidim_initiatives_initiatives_votes.js +0 -1
  101. data/app/packs/entrypoints/decidim_initiatives_initiatives_votes.scss +0 -1
  102. data/app/packs/entrypoints/decidim_initiatives_print.js +0 -1
  103. data/app/packs/entrypoints/decidim_initiatives_print.scss +0 -1
  104. data/app/packs/stylesheets/decidim/initiatives/initiatives-votes.scss +0 -96
  105. data/app/packs/stylesheets/decidim/initiatives/print-initiative.scss +0 -172
  106. data/app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb +0 -87
  107. data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb +0 -8
  108. data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb +0 -5
  109. data/app/views/decidim/initiatives/initiatives/_linked_initiatives.html.erb +0 -0
  110. data/app/views/decidim/initiatives/initiatives/print.html.erb +0 -161
  111. data/app/views/layouts/decidim/admin/initiatives_votes.pdf.erb +0 -11
  112. data/config/initializers/wicked_pdf.rb +0 -22
@@ -92,7 +92,7 @@ sv:
92
92
  accepted: Tillräckligt många underskrifter
93
93
  created: Skapad
94
94
  discarded: Avvisad
95
- published: Publicerad
95
+ open: Öppna
96
96
  rejected: För få underskrifter
97
97
  validating: Teknisk validering
98
98
  type_id_eq:
@@ -101,7 +101,7 @@ sv:
101
101
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Sök %{collection} med titel, beskrivning, ID eller författarnamn.
102
102
  initiatives_settings:
103
103
  update:
104
- error: Ett fel har inträffat.
104
+ error: Det gick inte att uppdatera inställningarna för initiativ.
105
105
  success: Initiativets inställningar har uppdaterats.
106
106
  menu:
107
107
  attachments: Bilagor
@@ -146,9 +146,8 @@ sv:
146
146
  initiative_start_date: Startdatum
147
147
  initiative_title: Initiativets titel
148
148
  name_and_surname: Namn och efternamn
149
+ nickname: Användarnamn
149
150
  postal_code: Postnummer
150
- scope: Indelning
151
- time_and_date: Tid och datum
152
151
  timestamp: Tidsstämpel
153
152
  titles:
154
153
  initiatives: Initiativ
@@ -191,8 +190,8 @@ sv:
191
190
  badges:
192
191
  initiatives:
193
192
  conditions:
194
- - Gå till deltagarutrymmet för initiativ
195
- - Följ stegen för att skapa ett nytt initiativ
193
+ - Gå till deltagarutrymmet för initiativ
194
+ - Följ stegen för att skapa ett nytt initiativ
196
195
  description: Detta märke beviljas när du startar nya initiativ och samarbetar med andra för att genomföra dem.
197
196
  description_another: Användaren har publicerat %{score} initiativ.
198
197
  description_own: Du har publicerat %{score} initiativ.
@@ -266,7 +265,7 @@ sv:
266
265
  new: Ny
267
266
  photos: Foton
268
267
  update:
269
- error: Ett fel har inträffat.
268
+ error: Det gick inte att uppdatera initiativet.
270
269
  success: Initiativet har uppdaterats.
271
270
  initiatives_settings:
272
271
  edit:
@@ -280,7 +279,7 @@ sv:
280
279
  title: Inställningar för initiativ
281
280
  initiatives_type_scopes:
282
281
  create:
283
- error: Ett fel har inträffat.
282
+ error: Det gick inte att skapa ett nytt utrymme för initiativet.
284
283
  success: En ny indelning har skapats för initiativtypen.
285
284
  destroy:
286
285
  success: Indelningen har tagit borts.
@@ -291,11 +290,11 @@ sv:
291
290
  create: Skapa
292
291
  title: Skapa indelning till initiativtyp
293
292
  update:
294
- error: Ett fel har inträffat.
293
+ error: Det gick inte att uppdatera indelningen.
295
294
  success: Indelningen har uppdaterats.
296
295
  initiatives_types:
297
296
  create:
298
- error: Ett fel har inträffat.
297
+ error: Det gick inte att skapa initiativtypen.
299
298
  success: En ny initiativtyp har skapats. Du måste ange minst ett utrymme för denna initiativtyp för att den ska användas.
300
299
  destroy:
301
300
  success: Initiativtypen har tagits bort.
@@ -312,7 +311,7 @@ sv:
312
311
  create: Skapa
313
312
  title: Ny initiativtyp
314
313
  update:
315
- error: Ett fel har inträffat.
314
+ error: Det gick inte att skapa initiativtypen.
316
315
  success: Initiativtypen har uppdaterats.
317
316
  admin_log:
318
317
  initiative:
@@ -330,7 +329,7 @@ sv:
330
329
  accepted: Tillräckligt många underskrifter
331
330
  created: Skapad
332
331
  discarded: Bortagna
333
- published: Publicerade
332
+ open: Öppna
334
333
  rejected: För få underskrifter
335
334
  validating: Teknisk validering
336
335
  application_helper:
@@ -428,10 +427,7 @@ sv:
428
427
  email_subject: "%{applicant_nickname} vill gå med i ditt initiativ"
429
428
  notification_title: <a href="%{applicant_profile_url}">%{applicant_nickname}</a> ansökte om att gå med i kampanjgruppen för ditt initiativ <a href="%{resource_url}">%{resource_title}</a>. För att acceptera eller avvisa klickar du <a href="%{resource_url}/edit">här</a>.
430
429
  form:
431
- add_documents: Lägg till dokument
432
430
  add_image: Lägg till bild
433
- attachment_legend: "(Valfritt) Lägg till en bilaga"
434
- edit_documents: Redigera dokument
435
431
  edit_image: Redigera bild
436
432
  image_legend: "(Valfritt) Lägg till en bild"
437
433
  index:
@@ -520,9 +516,7 @@ sv:
520
516
  phone_number: Telefonnummer
521
517
  place_date: Plats, datum
522
518
  postal_code: Postnummer
523
- print: Skriv ut
524
519
  province: Region/Land
525
- section: 'Om det begärs av organisationen, skriv ut och fyll i detta formulär för att skicka där det anges:'
526
520
  signature: Underskrift
527
521
  result:
528
522
  answer_title: Initiativet har besvarats.
@@ -544,7 +538,6 @@ sv:
544
538
  other: " underskrifter"
545
539
  vote_cabin:
546
540
  already_voted: Redan undertecknad
547
- verification_required: Verifiera ditt konto för att skriva under initiativet
548
541
  vote: Signera
549
542
  votes_blocked: Underskrifter är avaktiverade
550
543
  votes_count:
@@ -579,7 +572,7 @@ sv:
579
572
  accepted: Tillräckligt många underskrifter
580
573
  created: Skapad
581
574
  discarded: Bortagen
582
- published: Publicerad
575
+ open: Öppna
583
576
  rejected: För få underskrifter
584
577
  validating: Teknisk validering
585
578
  states:
@@ -587,7 +580,7 @@ sv:
587
580
  expired: Utgångna
588
581
  unavailable_scope: Ej tillgänglig indelning
589
582
  update:
590
- error: Ett fel har inträffat.
583
+ error: Det gick inte att uppdatera initiativet.
591
584
  success: Initiativet har uppdaterats.
592
585
  menu:
593
586
  initiatives: Initiativ
@@ -597,7 +590,6 @@ sv:
597
590
  comment: Kommentera
598
591
  initiatives_type:
599
592
  actions:
600
- create: Skapa
601
593
  title: Åtgärder
602
594
  vote: Underteckna
603
595
  layouts:
@@ -75,7 +75,6 @@ tr:
75
75
  accepted: Yeterince imza
76
76
  created: Oluşturuldu
77
77
  discarded: Yok sayıldı
78
- published: Yayınlandı
79
78
  rejected: Yeterince imza yok
80
79
  validating: Teknik doğrulama
81
80
  type_id_eq:
@@ -117,8 +116,6 @@ tr:
117
116
  initiative_title: Girişim başlığı
118
117
  name_and_surname: Ad ve soyadı
119
118
  postal_code: Posta kodu
120
- scope: Kapsam
121
- time_and_date: Saat ve tarih
122
119
  timestamp: Zaman Damgası
123
120
  titles:
124
121
  initiatives: Girişimler
@@ -158,8 +155,8 @@ tr:
158
155
  badges:
159
156
  initiatives:
160
157
  conditions:
161
- - Intiatives'in katılım alanına git
162
- - Yeni bir girişim oluşturmak için adımları izleyin
158
+ - Intiatives'in katılım alanına git
159
+ - Yeni bir girişim oluşturmak için adımları izleyin
163
160
  description: Bu rozet, yeni girişimler başlattığınızda, bunları gerçekleştirmek için başkalarıyla ortaklık kurduğunuzda verilir.
164
161
  description_another: Bu katılımcı, yayınlanan %{score} girişimi aldı.
165
162
  name: Yayınlanmış girişimler
@@ -247,7 +244,6 @@ tr:
247
244
  accepted: Yeterince imza
248
245
  created: Oluşturuldu
249
246
  discarded: Yok sayıldı
250
- published: Yayınlandı
251
247
  rejected: Yeterince imza yok
252
248
  validating: Teknik doğrulama
253
249
  application_helper:
@@ -394,9 +390,7 @@ tr:
394
390
  phone_number: Telefon numarası
395
391
  place_date: Yer, Tarih
396
392
  postal_code: Posta Kodu
397
- print: baskı
398
393
  province: İlçe / İl
399
- section: 'Kuruluş tarafından istenirse, lütfen belirtilen yerlerde göndermek için bu formu yazdırın ve doldurun:'
400
394
  signature: İmza
401
395
  result:
402
396
  initiative_rejected_reason: Bu girişim, imza eksikliği nedeniyle reddedildi.
@@ -411,7 +405,6 @@ tr:
411
405
  other: " imzalar"
412
406
  vote_cabin:
413
407
  already_voted: Zaten imzalanmış
414
- verification_required: Girişimi imzalamak için hesabınızı doğrulayın
415
408
  vote: İmza
416
409
  votes_blocked: İmzalama devre dışı
417
410
  votes_count:
@@ -439,7 +432,6 @@ tr:
439
432
  accepted: Yeterince imza
440
433
  created: Oluşturuldu
441
434
  discarded: Yok sayıldı
442
- published: Yayınlandı
443
435
  rejected: Yeterince imza yok
444
436
  validating: Teknik doğrulama
445
437
  states:
@@ -451,7 +443,6 @@ tr:
451
443
  resources:
452
444
  initiatives_type:
453
445
  actions:
454
- create: Oluştur
455
446
  title: Eylemler
456
447
  vote: İmza
457
448
  layouts:
@@ -62,9 +62,6 @@ uk:
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: Різновиди починів
@@ -132,7 +129,6 @@ uk:
132
129
  admin_states:
133
130
  created: Створені
134
131
  discarded: Відкинуті
135
- published: Оприлюднено
136
132
  validating: Технічна перевірка
137
133
  application_helper:
138
134
  filter_state_values:
@@ -210,7 +206,6 @@ uk:
210
206
  recent: Найновіші
211
207
  print:
212
208
  city: Місто
213
- print: Друк
214
209
  result:
215
210
  initiative_rejected_reason: Цей почин був відхилений через недостатню підтримку.
216
211
  signatures_count:
@@ -244,10 +239,6 @@ uk:
244
239
  expired: Строк дії яких закінчився
245
240
  menu:
246
241
  initiatives: Почини
247
- resources:
248
- initiatives_type:
249
- actions:
250
- create: Створити
251
242
  layouts:
252
243
  decidim:
253
244
  initiative_creation_header:
@@ -72,7 +72,6 @@ zh-CN:
72
72
  accepted: 足够的签名
73
73
  created: 已创建
74
74
  discarded: 丢弃的
75
- published: 已发布
76
75
  rejected: 签名不足
77
76
  validating: 技术验证
78
77
  type_id_eq:
@@ -114,8 +113,6 @@ zh-CN:
114
113
  initiative_title: 倡议标题
115
114
  name_and_surname: 姓名:
116
115
  postal_code: 邮政编码
117
- scope: 范围
118
- time_and_date: 时间和日期
119
116
  timestamp: 时间戳
120
117
  titles:
121
118
  initiatives: 倡议
@@ -150,8 +147,8 @@ zh-CN:
150
147
  badges:
151
148
  initiatives:
152
149
  conditions:
153
- - 转到Intiatives的参与空间
154
- - 跟随步骤创建新的倡议
150
+ - 转到Intiatives的参与空间
151
+ - 跟随步骤创建新的倡议
155
152
  description: 当你发起新的倡议,与其他人合作执行这些倡议时,将颁发这个徽章。
156
153
  description_another: 此参与者已经发布了 %{score} 项倡议。
157
154
  name: 已发布的活动
@@ -238,7 +235,6 @@ zh-CN:
238
235
  accepted: 足够的签名
239
236
  created: 已创建
240
237
  discarded: 丢弃的
241
- published: 已发布
242
238
  rejected: 签名不足
243
239
  validating: 技术验证
244
240
  application_helper:
@@ -344,14 +340,12 @@ zh-CN:
344
340
  recently_published: 最近发布的
345
341
  print:
346
342
  city: 城市
347
- print: 打印
348
343
  result:
349
344
  initiative_rejected_reason: 这项倡议由于没有签字而被拒绝。
350
345
  signatures_count:
351
346
  other: " 签名"
352
347
  vote_cabin:
353
348
  already_voted: 已签名
354
- verification_required: 验证您的帐户以签署倡议
355
349
  vote: 签名
356
350
  votes_blocked: 签名已禁用
357
351
  votes_count:
@@ -378,7 +372,6 @@ zh-CN:
378
372
  accepted: 足够的签名
379
373
  created: 已创建
380
374
  discarded: 丢弃的
381
- published: 已发布
382
375
  rejected: 签名不足
383
376
  validating: 技术验证
384
377
  states:
@@ -390,7 +383,6 @@ zh-CN:
390
383
  resources:
391
384
  initiatives_type:
392
385
  actions:
393
- create: 创建
394
386
  title: 行动
395
387
  vote: 签名
396
388
  layouts:
@@ -88,7 +88,6 @@ zh-TW:
88
88
  accepted: 足夠的簽署數
89
89
  created: 已建立
90
90
  discarded: 已捨棄
91
- published: 已發佈
92
91
  rejected: 不足夠的簽署數
93
92
  validating: 技術驗證
94
93
  type_id_eq:
@@ -97,7 +96,6 @@ zh-TW:
97
96
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: 透過標題、描述、ID 或作者姓名搜尋 %{collection}
98
97
  initiatives_settings:
99
98
  update:
100
- error: 出現了一個錯誤.
101
99
  success: 倡議設定已成功更新.
102
100
  menu:
103
101
  attachments: 附件
@@ -138,8 +136,6 @@ zh-TW:
138
136
  initiative_title: 倡議標題
139
137
  name_and_surname: 名字與姓氏
140
138
  postal_code: 郵政編碼
141
- scope: 範圍
142
- time_and_date: 時間與日期
143
139
  timestamp: 時間戳記
144
140
  titles:
145
141
  initiatives: 倡議
@@ -182,8 +178,8 @@ zh-TW:
182
178
  badges:
183
179
  initiatives:
184
180
  conditions:
185
- - 前往倡議參與空間
186
- - '"按照以下步驟創建新的倡議'
181
+ - 前往倡議參與空間
182
+ - '"按照以下步驟創建新的倡議'
187
183
  description: 此徽章是當你發起新的倡議,與他人合作進行時所授予的。
188
184
  description_another: 該參與者已成功發佈 %{score} 項倡議。
189
185
  description_own: 你已經發佈了 %{score} 項倡議。
@@ -253,7 +249,6 @@ zh-TW:
253
249
  new: 新的
254
250
  photos: 圖片
255
251
  update:
256
- error: 出現了一個錯誤.
257
252
  success: 倡議已成功更新.
258
253
  initiatives_settings:
259
254
  edit:
@@ -267,7 +262,6 @@ zh-TW:
267
262
  title: 倡議設定
268
263
  initiatives_type_scopes:
269
264
  create:
270
- error: 出現了一個錯誤.
271
265
  success: 已為給定的倡議類型建立新範圍.
272
266
  destroy:
273
267
  success: 範圍已成功刪除.
@@ -278,11 +272,8 @@ zh-TW:
278
272
  create: 建立
279
273
  title: 建立倡議類型範圍
280
274
  update:
281
- error: 出現了一個錯誤.
282
275
  success: 範圍已成功更新.
283
276
  initiatives_types:
284
- create:
285
- error: 出現了一個錯誤.
286
277
  destroy:
287
278
  success: 該倡議類型已成功刪除.
288
279
  edit:
@@ -296,7 +287,6 @@ zh-TW:
296
287
  create: 建立
297
288
  title: 新的倡議類型
298
289
  update:
299
- error: 出現了一個錯誤.
300
290
  success: 該倡議類型已成功更新.
301
291
  admin_log:
302
292
  initiative:
@@ -314,7 +304,6 @@ zh-TW:
314
304
  accepted: 足夠的簽署數
315
305
  created: 已建立
316
306
  discarded: 已捨棄
317
- published: 已發佈
318
307
  rejected: 不足夠的簽署數
319
308
  validating: 技術驗證
320
309
  application_helper:
@@ -410,8 +399,6 @@ zh-TW:
410
399
  email_outro: '你收到這個通知是因為你是該倡議 %{resource_title} 的作者。'
411
400
  email_subject: "%{applicant_nickname} 想加入你的倡議"
412
401
  notification_title: <a href="%{applicant_profile_url}">%{applicant_nickname}</a> 申請加入你的倡議 <a href="%{resource_url}">%{resource_title}</a> 的推動委員會。點擊<a href="%{resource_url}/edit">這裡</a>接受或拒絕申請。
413
- form:
414
- attachment_legend: "(可選) 新增附件"
415
402
  index:
416
403
  uninitialized: 尚未由管理員設置倡議。
417
404
  initiative_signatures:
@@ -492,9 +479,7 @@ zh-TW:
492
479
  phone_number: 電話號碼
493
480
  place_date: 地點、日期
494
481
  postal_code: 郵遞區號/郵政編碼
495
- print: 列印
496
482
  province: 省份/州
497
- section: '如果組織要求,請打印並填寫此表格,並按指示提交:'
498
483
  signature: 簽名
499
484
  result:
500
485
  answer_title: 這個倡議已經有回應了。
@@ -507,7 +492,6 @@ zh-TW:
507
492
  other: " 簽名"
508
493
  vote_cabin:
509
494
  already_voted: 已簽署
510
- verification_required: 驗證您的帳戶以簽署該倡議
511
495
  vote: 簽署
512
496
  votes_blocked: 簽署已禁用
513
497
  votes_count:
@@ -536,7 +520,6 @@ zh-TW:
536
520
  accepted: 足夠的簽署數
537
521
  created: 已建立
538
522
  discarded: 已捨棄
539
- published: 已發佈
540
523
  rejected: 簽署數不足
541
524
  validating: 技術驗證
542
525
  states:
@@ -544,7 +527,6 @@ zh-TW:
544
527
  expired: 已過期
545
528
  unavailable_scope: 不可用的範圍
546
529
  update:
547
- error: 出現了一個錯誤.
548
530
  success: 倡議已成功更新.
549
531
  menu:
550
532
  initiatives: 倡議
@@ -554,7 +536,6 @@ zh-TW:
554
536
  comment: 評論
555
537
  initiatives_type:
556
538
  actions:
557
- create: 建立
558
539
  title: 操作
559
540
  vote: 簽署
560
541
  layouts:
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddTaxonomyToInitiativesTypeScope < ActiveRecord::Migration[7.0]
4
+ def change
5
+ add_reference :decidim_initiatives_type_scopes, :decidim_taxonomy, index: true
6
+ end
7
+ end
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  "homepage_uri" => "https://decidim.org",
18
18
  "source_code_uri" => "https://github.com/decidim/decidim"
19
19
  }
20
- s.required_ruby_version = "~> 3.2.0"
20
+ s.required_ruby_version = "~> 3.3.0"
21
21
 
22
22
  s.name = "decidim-initiatives"
23
23
  s.summary = "Decidim initiatives module"
@@ -34,8 +34,6 @@ Gem::Specification.new do |s|
34
34
  s.add_dependency "decidim-comments", Decidim::Initiatives.version
35
35
  s.add_dependency "decidim-core", Decidim::Initiatives.version
36
36
  s.add_dependency "decidim-verifications", Decidim::Initiatives.version
37
- s.add_dependency "hexapdf", "~> 0.32.0"
38
- s.add_dependency "wicked_pdf", "~> 2.1"
39
37
 
40
38
  s.add_development_dependency "decidim-dev", Decidim::Initiatives.version
41
39
  s.add_development_dependency "decidim-meetings", Decidim::Initiatives.version
@@ -3,24 +3,23 @@
3
3
  module Decidim
4
4
  module Initiatives
5
5
  class InitiativeApiType < Decidim::Api::Types::BaseObject
6
+ implements Decidim::Core::TimestampsInterface
7
+
6
8
  graphql_name "InitiativeType"
7
9
  description "An initiative type"
8
10
 
9
- field :id, GraphQL::Types::ID, "The internal ID for this initiative type", null: false
10
- field :title, Decidim::Core::TranslatedFieldType, "Initiative type name", null: true
11
- field :description, Decidim::Core::TranslatedFieldType, "This is the initiative type description", null: true
12
- field :created_at, Decidim::Core::DateTimeType, "The date this initiative type was created", null: true
13
- field :updated_at, Decidim::Core::DateTimeType, "The date this initiative type was updated", null: true
14
11
  field :banner_image, GraphQL::Types::String, "Banner image", null: true
15
12
  field :collect_user_extra_fields, GraphQL::Types::Boolean, "Collect participant personal data on signature", null: true
13
+ field :description, Decidim::Core::TranslatedFieldType, "This is the initiative type description", null: true
16
14
  field :extra_fields_legal_information, GraphQL::Types::String, "Legal information about the collection of personal data", null: true
15
+ field :id, GraphQL::Types::ID, "The internal ID for this initiative type", null: false
16
+ field :initiatives, [Decidim::Initiatives::InitiativeType, { null: true }], "The initiatives that have this type", null: false
17
17
  field :minimum_committee_members, GraphQL::Types::Int, "Minimum of committee members", null: true
18
- field :validate_sms_code_on_votes, GraphQL::Types::Boolean, "Add SMS code validation step to signature process", null: true
19
- field :undo_online_signatures_enabled, GraphQL::Types::Boolean, "Enable participants to undo their online signatures", null: true
20
- field :promoting_committee_enabled, GraphQL::Types::Boolean, "If promoting committee is enabled", method: :promoting_committee_enabled, null: true
18
+ field :promoting_committee_enabled, GraphQL::Types::Boolean, "If promoting committee is enabled", null: true
21
19
  field :signature_type, GraphQL::Types::String, "Signature type of the initiative", null: true
22
-
23
- field :initiatives, [Decidim::Initiatives::InitiativeType, { null: true }], "The initiatives that have this type", null: false
20
+ field :title, Decidim::Core::TranslatedFieldType, "Initiative type name", null: true
21
+ field :undo_online_signatures_enabled, GraphQL::Types::Boolean, "Enable participants to undo their online signatures", null: true
22
+ field :validate_sms_code_on_votes, GraphQL::Types::Boolean, "Add SMS code validation step to signature process", null: true
24
23
 
25
24
  def banner_image
26
25
  object.attached_uploader(:banner_image).url
@@ -4,15 +4,14 @@ module Decidim
4
4
  module Initiatives
5
5
  # This type represents an initiative committee member.
6
6
  class InitiativeCommitteeMemberType < Decidim::Api::Types::BaseObject
7
+ implements Decidim::Core::TimestampsInterface
8
+
7
9
  graphql_name "InitiativeCommitteeMemberType"
8
10
  description "An initiative committee member"
9
11
 
10
12
  field :id, GraphQL::Types::ID, "Internal ID for this member of the committee", null: false
11
- field :user, Decidim::Core::UserType, "The decidim user for this initiative committee member", null: true
12
-
13
13
  field :state, GraphQL::Types::String, "Type of the committee member", null: true
14
- field :created_at, Decidim::Core::DateTimeType, "The date this initiative committee member was created", null: true
15
- field :updated_at, Decidim::Core::DateTimeType, "The date this initiative committee member was updated", null: true
14
+ field :user, Decidim::Core::UserType, "The decidim user for this initiative committee member", null: true
16
15
  end
17
16
  end
18
17
  end
@@ -12,38 +12,32 @@ module Decidim
12
12
 
13
13
  description "A initiative"
14
14
 
15
+ field :author, Decidim::Core::AuthorInterface, "The initiative author", null: false
16
+ field :committee_members, [Decidim::Initiatives::InitiativeCommitteeMemberType, { null: true }], "The committee members list", null: true
15
17
  field :description, Decidim::Core::TranslatedFieldType, "The description of this initiative.", null: true
16
- field :slug, GraphQL::Types::String, null: false
17
18
  field :hashtag, GraphQL::Types::String, "The hashtag for this initiative", null: true
18
- field :published_at, Decidim::Core::DateTimeType, "The time this initiative was published", null: false
19
- field :reference, GraphQL::Types::String, "Reference prefix for this initiative", null: false
20
- field :state, GraphQL::Types::String, "Current status of the initiative", null: true
21
- field :signature_type, GraphQL::Types::String, "Signature type of the initiative", null: true
22
- field :signature_start_date, Decidim::Core::DateType, "The signature start date", null: false
23
- field :signature_end_date, Decidim::Core::DateType, "The signature end date", null: false
24
- field :offline_votes, GraphQL::Types::Int, "The number of offline votes in this initiative", method: :offline_votes_count, null: true
25
- field :online_votes, GraphQL::Types::Int, "The number of online votes in this initiative", method: :online_votes_count, null: true
26
- field :initiative_votes_count, GraphQL::Types::Int,
27
- description: "The number of votes in this initiative",
28
- deprecation_reason: "initiativeVotesCount has been collapsed in onlineVotes parameter",
29
- null: true
30
19
  field :initiative_supports_count, GraphQL::Types::Int,
31
20
  description: "The number of supports in this initiative",
32
21
  method: :online_votes_count,
33
22
  deprecation_reason: "initiativeSupportsCount has been collapsed in onlineVotes parameter",
34
23
  null: true
35
-
36
- field :author, Decidim::Core::AuthorInterface, "The initiative author", null: false
37
-
38
- def initiative_votes_count
39
- object.online_votes_count
40
- end
24
+ field :initiative_votes_count, GraphQL::Types::Int,
25
+ description: "The number of votes in this initiative",
26
+ deprecation_reason: "initiativeVotesCount has been collapsed in onlineVotes parameter",
27
+ null: true, method: :online_votes_count
28
+ field :offline_votes, GraphQL::Types::Int, "The number of offline votes in this initiative", method: :offline_votes_count, null: true
29
+ field :online_votes, GraphQL::Types::Int, "The number of online votes in this initiative", method: :online_votes_count, null: true
30
+ field :published_at, Decidim::Core::DateTimeType, "The time this initiative was published", null: false
31
+ field :reference, GraphQL::Types::String, "Reference prefix for this initiative", null: false
32
+ field :signature_end_date, Decidim::Core::DateType, "The signature end date", null: false
33
+ field :signature_start_date, Decidim::Core::DateType, "The signature start date", null: false
34
+ field :signature_type, GraphQL::Types::String, "Signature type of the initiative", null: true
35
+ field :slug, GraphQL::Types::String, "The slug of the initiative", null: false
36
+ field :state, GraphQL::Types::String, "Current status of the initiative", null: true
41
37
 
42
38
  def author
43
39
  object.user_group || object.author
44
40
  end
45
-
46
- field :committee_members, [Decidim::Initiatives::InitiativeCommitteeMemberType, { null: true }], null: true
47
41
  end
48
42
  end
49
43
  end
@@ -8,11 +8,7 @@ module Decidim
8
8
  include Decidim::Api::Types::BaseInterface
9
9
  description "An interface that can be used in Initiative objects."
10
10
 
11
- field :initiative_type, Decidim::Initiatives::InitiativeApiType, "The object's initiative type", null: true
12
-
13
- def initiative_type
14
- object.type
15
- end
11
+ field :initiative_type, Decidim::Initiatives::InitiativeApiType, "The object's initiative type", null: true, method: :type
16
12
  end
17
13
  end
18
14
  end