decidim-participatory_processes 0.30.2 → 0.31.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.
- checksums.yaml +4 -4
- data/app/cells/decidim/participatory_process_groups/content_blocks/main_data/content.erb +1 -1
- data/app/cells/decidim/participatory_process_groups/content_blocks/main_data_cell.rb +1 -15
- data/app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats/show.erb +74 -0
- data/app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_cell.rb +29 -0
- data/app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form/citizen_influence.erb +32 -0
- data/app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form/inclusiveness.erb +69 -0
- data/app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form/informativeness.erb +29 -0
- data/app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form/show.erb +10 -0
- data/app/cells/decidim/participatory_processes/content_blocks/democratic_quality_stats_settings_form_cell.rb +81 -0
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb +3 -1
- data/app/cells/decidim/participatory_processes/content_blocks/main_data_cell.rb +10 -2
- data/app/cells/decidim/participatory_processes/indicator/show.erb +11 -0
- data/app/cells/decidim/participatory_processes/indicator_cell.rb +25 -0
- data/app/cells/decidim/participatory_processes/process_dropdown_metadata/metadata.erb +0 -7
- data/app/cells/decidim/participatory_processes/process_filters_cell.rb +2 -0
- data/app/cells/decidim/participatory_processes/process_step/show.erb +1 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/{copy_participatory_process.rb → duplicate_participatory_process.rb} +25 -26
- data/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +16 -4
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/{participatory_process_copies_controller.rb → participatory_process_duplicates_controller.rb} +7 -7
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb +4 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +3 -3
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_imports_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb +4 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_steps_controller.rb +2 -2
- data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +3 -3
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +0 -9
- data/app/forms/decidim/participatory_processes/admin/{participatory_process_copy_form.rb → participatory_process_duplicate_form.rb} +5 -5
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +2 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_group_form.rb +0 -1
- data/app/helpers/decidim/participatory_processes/application_helper.rb +14 -0
- data/app/models/decidim/participatory_process.rb +4 -4
- data/app/models/decidim/participatory_process_group.rb +9 -0
- data/app/permissions/decidim/participatory_processes/permissions.rb +4 -4
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb +0 -1
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_presenter.rb +0 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_democratic_quality_stats_presenter.rb +312 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb +1 -11
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +35 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +1 -3
- data/app/queries/decidim/participatory_processes/participatory_processes_stats_followers_count.rb +31 -0
- data/app/queries/decidim/participatory_processes/participatory_processes_stats_participants_count.rb +27 -0
- data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +0 -1
- data/app/views/decidim/participatory_processes/admin/{participatory_process_copies → participatory_process_duplicates}/_form.html.erb +5 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_duplicates/new.html.erb +19 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +3 -7
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +31 -15
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb +1 -1
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +39 -21
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +42 -24
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +10 -14
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_process_row.html.erb +125 -53
- data/app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb +0 -8
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_processes/manage_trash.html.erb +2 -1
- data/app/views/layouts/decidim/admin/_manage_processes.html.erb +1 -1
- data/app/views/layouts/decidim/admin/participatory_process_group.html.erb +1 -1
- data/config/assets.rb +2 -2
- data/config/locales/ar.yml +0 -13
- data/config/locales/bg.yml +0 -24
- data/config/locales/bs-BA.yml +0 -4
- data/config/locales/ca-IT.yml +319 -25
- data/config/locales/ca.yml +319 -25
- data/config/locales/cs.yml +93 -26
- data/config/locales/de.yml +123 -25
- data/config/locales/el.yml +0 -21
- data/config/locales/en.yml +303 -24
- data/config/locales/es-MX.yml +319 -25
- data/config/locales/es-PY.yml +319 -25
- data/config/locales/es.yml +319 -25
- data/config/locales/eu.yml +304 -25
- data/config/locales/fi-plain.yml +303 -24
- data/config/locales/fi.yml +303 -24
- data/config/locales/fr-CA.yml +86 -24
- data/config/locales/fr.yml +86 -24
- data/config/locales/ga-IE.yml +0 -7
- data/config/locales/gl.yml +0 -19
- data/config/locales/hu.yml +0 -21
- data/config/locales/id-ID.yml +0 -13
- data/config/locales/is-IS.yml +0 -11
- data/config/locales/it.yml +0 -20
- data/config/locales/ja.yml +123 -25
- data/config/locales/lb.yml +0 -20
- data/config/locales/lt.yml +0 -21
- data/config/locales/lv.yml +0 -14
- data/config/locales/nl.yml +0 -20
- data/config/locales/no.yml +0 -21
- data/config/locales/pl.yml +16 -24
- data/config/locales/pt-BR.yml +0 -23
- data/config/locales/pt.yml +0 -20
- data/config/locales/ro-RO.yml +2 -21
- data/config/locales/ru.yml +0 -11
- data/config/locales/sk.yml +0 -14
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +86 -24
- data/config/locales/tr-TR.yml +0 -20
- data/config/locales/uk.yml +0 -11
- data/config/locales/zh-CN.yml +0 -17
- data/config/locales/zh-TW.yml +0 -21
- data/db/migrate/20250403110052_add_democratic_quality_static_page.rb +34 -0
- data/db/migrate/20250605114136_remove_hashtag_from_participatory_processes.rb +7 -0
- data/db/migrate/20250605114415_remove_hashtag_from_participatory_processes_groups.rb +7 -0
- data/decidim-participatory_processes.gemspec +3 -0
- data/lib/decidim/api/participatory_process_group_type.rb +9 -0
- data/lib/decidim/api/participatory_process_input_filter.rb +0 -1
- data/lib/decidim/api/participatory_process_step_type.rb +2 -0
- data/lib/decidim/api/participatory_process_type.rb +17 -11
- data/lib/decidim/participatory_processes/admin_engine.rb +1 -1
- data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +25 -5
- data/lib/decidim/participatory_processes/engine.rb +22 -25
- data/lib/decidim/participatory_processes/participatory_space.rb +1 -4
- data/lib/decidim/participatory_processes/seeds.rb +3 -5
- data/lib/decidim/participatory_processes/test/factories.rb +2 -3
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +72 -22
- data/app/cells/decidim/participatory_processes/content_blocks/metrics_cell.rb +0 -25
- data/app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb +0 -21
- data/app/queries/decidim/participatory_processes/metrics/participatory_process_followers_metric_measure.rb +0 -31
- data/app/queries/decidim/participatory_processes/metrics/participatory_processes_metric_manage.rb +0 -27
- data/app/queries/decidim/participatory_processes/stats_followers_count.rb +0 -60
- data/app/queries/decidim/participatory_processes/stats_participants_count.rb +0 -136
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +0 -19
- data/app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb +0 -25
data/config/locales/sv.yml
CHANGED
@@ -5,16 +5,15 @@ sv:
|
|
5
5
|
participatory_process:
|
6
6
|
announcement: Meddelande
|
7
7
|
area_id: Område
|
8
|
-
copy_categories: Kopiera kategorier
|
9
|
-
copy_components: Kopiera komponenter
|
10
|
-
copy_steps: Kopiera steg
|
11
8
|
decidim_area_id: Område
|
12
9
|
description: Beskrivning
|
13
10
|
developer_group: Arrangör
|
14
11
|
document: Dokument
|
15
12
|
domain: Domän
|
13
|
+
duplicate_categories: Duplicera kategorier
|
14
|
+
duplicate_components: Duplicera komponenter
|
15
|
+
duplicate_steps: Duplicera steg
|
16
16
|
end_date: Slutdatum
|
17
|
-
hashtag: Hashtag
|
18
17
|
hero_image: Startbild
|
19
18
|
import_attachments: Importera bilagor
|
20
19
|
import_categories: Importera kategorier
|
@@ -40,7 +39,6 @@ sv:
|
|
40
39
|
description: Beskrivning
|
41
40
|
developer_group: Arrangör
|
42
41
|
group_url: Webbplats
|
43
|
-
hashtag: Hashtag
|
44
42
|
hero_image: Bild
|
45
43
|
local_area: Område
|
46
44
|
meta_scope: Omfattning
|
@@ -85,15 +83,12 @@ sv:
|
|
85
83
|
admin:
|
86
84
|
actions:
|
87
85
|
activate: Aktivera
|
88
|
-
configure: Konfigurera
|
89
86
|
confirm_delete_process: Är du säker på att du vill ta bort den här processen? Om du ändrar dig kan du återställa den senare.
|
90
87
|
confirm_destroy: Bekräfta radering
|
91
88
|
destroy: Radera
|
92
89
|
duplicate: Duplicera
|
93
90
|
edit: Redigera
|
94
91
|
import_process: Importera
|
95
|
-
menu_hidden: Dölj
|
96
|
-
moderate: Moderera
|
97
92
|
new_process: Ny process
|
98
93
|
new_process_group: Ny grupp av processer
|
99
94
|
new_process_step: Nytt steg
|
@@ -111,7 +106,6 @@ sv:
|
|
111
106
|
participatory_process_groups: Grupper för processer
|
112
107
|
participatory_process_groups_submenu:
|
113
108
|
info: Info
|
114
|
-
landing_page: Landningssida
|
115
109
|
participatory_processes: Processer
|
116
110
|
participatory_processes_submenu:
|
117
111
|
attachment_collections: Mappar
|
@@ -119,7 +113,6 @@ sv:
|
|
119
113
|
attachments: Bilagor
|
120
114
|
components: Komponenter
|
121
115
|
info: Om processen
|
122
|
-
landing_page: Landningssida
|
123
116
|
moderations: Moderering
|
124
117
|
private_users: Medlemmar
|
125
118
|
process_admins: Administratörer för process
|
@@ -135,16 +128,19 @@ sv:
|
|
135
128
|
name: Deltagandeprocess
|
136
129
|
participatory_process_group:
|
137
130
|
fields:
|
131
|
+
actions: Åtgärder
|
138
132
|
title: Titel
|
139
133
|
name: Grupp av processer
|
140
134
|
participatory_process_step:
|
141
135
|
fields:
|
136
|
+
actions: Handlingar
|
142
137
|
end_date: Slutdatum
|
143
138
|
start_date: Startdatum
|
144
139
|
title: Titel
|
145
140
|
name: Steg i process
|
146
141
|
participatory_process_user_role:
|
147
142
|
fields:
|
143
|
+
actions: Handlingar
|
148
144
|
email: E-post
|
149
145
|
name: Namn
|
150
146
|
role: Roll
|
@@ -152,16 +148,16 @@ sv:
|
|
152
148
|
roles:
|
153
149
|
admin: Administratör
|
154
150
|
collaborator: Medarbetare
|
151
|
+
evaluator: Utvärderare
|
155
152
|
moderator: Moderator
|
156
|
-
valuator: Värderare
|
157
153
|
user:
|
158
154
|
fields:
|
159
155
|
invitation_accepted_at: Inbjudan godkänd
|
160
156
|
invitation_sent_at: Inbjudan skickad
|
161
157
|
published: Publicerad
|
162
|
-
|
158
|
+
participatory_process_duplicates:
|
163
159
|
new:
|
164
|
-
|
160
|
+
duplicate: Duplicera
|
165
161
|
select: Välj vilken data du vill duplicera
|
166
162
|
title: Duplicera deltagarprocess
|
167
163
|
participatory_process_groups:
|
@@ -261,7 +257,7 @@ sv:
|
|
261
257
|
update:
|
262
258
|
error: Det gick inte att uppdatera processen.
|
263
259
|
success: Processen har uppdaterats.
|
264
|
-
|
260
|
+
participatory_processes_duplicates:
|
265
261
|
create:
|
266
262
|
error: Det gick inte att duplicera deltagarprocessen.
|
267
263
|
success: Deltagandeprocessen har duplicerats.
|
@@ -343,11 +339,6 @@ sv:
|
|
343
339
|
not_found: 'Typen av process hittades inte i databasen (ID: %{id}).'
|
344
340
|
menu:
|
345
341
|
processes: Processer
|
346
|
-
metrics:
|
347
|
-
participatory_processes:
|
348
|
-
description: Antal deltagandeprocesser i organisationen
|
349
|
-
object: deltagandeprocesser
|
350
|
-
title: Deltagandeprocesser
|
351
342
|
open_data:
|
352
343
|
help:
|
353
344
|
participatory_processes:
|
@@ -358,7 +349,6 @@ sv:
|
|
358
349
|
developer_group: Ansvariga för processen. Organisation eller grupp som står bakom processen.
|
359
350
|
end_date: Slutdatum för processen
|
360
351
|
follows_count: Antal följare
|
361
|
-
hashtag: Processens hashtag, används för Twitter/X
|
362
352
|
id: Unikt id för processen
|
363
353
|
local_area: Geografiskt område för processen. Det område där processen genomförs.
|
364
354
|
participatory_process_group: Grupp av processer, om tillämpbart
|
@@ -408,6 +398,71 @@ sv:
|
|
408
398
|
participatory_processes:
|
409
399
|
admin:
|
410
400
|
content_blocks:
|
401
|
+
democratic_quality_stats_settings_form:
|
402
|
+
citizen_influence:
|
403
|
+
citizen_decisional_intervention:
|
404
|
+
legend: Av alla faser i processen (från att välja frågor till att övervaka genomförande), hur många har allmänheten möjlighet att besluta eller utföra handlingar i?
|
405
|
+
options:
|
406
|
+
five: 80 - 100%
|
407
|
+
four: 60 - 80%
|
408
|
+
one: 0 - 20%
|
409
|
+
three: 40 - 60%
|
410
|
+
two: 20 - 40%
|
411
|
+
citizen_influence_level:
|
412
|
+
options:
|
413
|
+
five: Deltagarna deltog i beslutsfattandet samt i hanteringen av resurserna eller i genomförandet
|
414
|
+
four: Deltagarna hade en beslutsfattande roll
|
415
|
+
one: Deltagare fick information från organisationen
|
416
|
+
three: Deltagarna deltog genom att fördela beslutsfattande makt
|
417
|
+
two: Deltagarna tillfrågades på ett rådgivande sätt eller gav feedback till organisationen
|
418
|
+
inclusiveness:
|
419
|
+
digital_support_offered:
|
420
|
+
legend: Har deltagarna erbjudits digitalt stöd?
|
421
|
+
options:
|
422
|
+
five: 'Ja'
|
423
|
+
two_five: Delvis
|
424
|
+
zero: 'Nej'
|
425
|
+
functional_diversity_invited:
|
426
|
+
legend: Hur är graden av mångfald hos processens agenter och deltagare i relation till mångfalden hos de som påverkas av beslutet?
|
427
|
+
options:
|
428
|
+
five: Bra
|
429
|
+
one: Låg
|
430
|
+
two_five: Tillräcklig
|
431
|
+
zero: Ingen
|
432
|
+
languages_communicated:
|
433
|
+
legend: Hur många språk har använts inom processen?
|
434
|
+
options:
|
435
|
+
five: Mer än hälften av de språk som talas i samhället
|
436
|
+
one: Ett språk
|
437
|
+
two_five: Mindre än hälften av de språk som talas i samhället
|
438
|
+
mobility_meeting_access:
|
439
|
+
legend: Var mötesplatserna för möten ansikte mot ansikte tillgängliga för personer med nedsatt rörlighet?
|
440
|
+
options:
|
441
|
+
five: 'Ja'
|
442
|
+
two_five: Delvis
|
443
|
+
zero: 'Nej'
|
444
|
+
participation_scheduling_times:
|
445
|
+
legend: Deltagarsessionerna har schemalagts vid olika tidpunkter (morgon, middag, eftermiddag, kväll och helger).
|
446
|
+
options:
|
447
|
+
five: 'Ja'
|
448
|
+
two_five: Delvis
|
449
|
+
zero: 'Nej'
|
450
|
+
informativeness:
|
451
|
+
information_provided:
|
452
|
+
legend: Har information lämnats om deltagarnas möjligheter att påverka ämnet som diskuteras? (både i kommunikationen av processen och inbjudningarna, liksom i början av varje debattsession)
|
453
|
+
options:
|
454
|
+
five: Alltid
|
455
|
+
one: Nästan aldrig
|
456
|
+
two_five: Vanligtvis
|
457
|
+
zero: Aldrig
|
458
|
+
name: Informationsförmåga
|
459
|
+
published_information_clarity:
|
460
|
+
legend: Är den publicerade informationen tydlig med beslutsmekanismerna? (t.ex. omröstning, konsensus, direkta förhandlingar)
|
461
|
+
options:
|
462
|
+
five: Full klarhet
|
463
|
+
one: Låg tydlighet
|
464
|
+
two_five: Tillfällig tydlighet
|
465
|
+
zero: Ingen klarhet
|
411
466
|
highlighted_processes:
|
412
467
|
active: Pågående
|
413
468
|
all: Alla
|
@@ -416,7 +471,7 @@ sv:
|
|
416
471
|
new_import:
|
417
472
|
accepted_types:
|
418
473
|
json: JSON
|
419
|
-
|
474
|
+
participatory_process_duplicates:
|
420
475
|
form:
|
421
476
|
slug_help_html: 'URL-slugs används till att generera URL:er till processen. Använd bara bokstäver, siffror och bindestreck, och de måste börja med en bokstav. Exempel: %{url}'
|
422
477
|
participatory_process_groups:
|
@@ -448,6 +503,15 @@ sv:
|
|
448
503
|
title: Allmän information
|
449
504
|
visibility: Synlighet
|
450
505
|
content_blocks:
|
506
|
+
democratic_quality_stats:
|
507
|
+
global_score:
|
508
|
+
note: "*De indikativa värdena mäts på en skala från 1 till 5, där 1 representerar den lägsta och 5 den högsta kvalitetsmätaren."
|
509
|
+
name: Kvalitetsindikator
|
510
|
+
qualitative_metrics:
|
511
|
+
indicators:
|
512
|
+
inclusiveness_tooltip: Bedömer om olika berörda parter är rättvist representerade.
|
513
|
+
informativeness: Informationsförmåga
|
514
|
+
informativeness_tooltip: Mäter graden av tydlighet och information som tillhandahålls i processen.
|
451
515
|
extra_data:
|
452
516
|
name: Steg & varaktighet
|
453
517
|
hero:
|
@@ -465,9 +529,6 @@ sv:
|
|
465
529
|
highlighted_processes:
|
466
530
|
active_spaces: Pågående processer
|
467
531
|
see_all_spaces: Visa alla processer
|
468
|
-
participatory_process_steps:
|
469
|
-
index:
|
470
|
-
back_to_process: Tillbaka till processen
|
471
532
|
participatory_processes:
|
472
533
|
description:
|
473
534
|
area_name: Område
|
@@ -518,6 +579,7 @@ sv:
|
|
518
579
|
related_processes: Relaterade processer
|
519
580
|
statistics:
|
520
581
|
processes_count: Processer
|
582
|
+
processes_count_tooltip: Antalet deltagande processer som är allmänt tillgängliga.
|
521
583
|
layouts:
|
522
584
|
decidim:
|
523
585
|
participatory_process_groups:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -5,15 +5,11 @@ tr:
|
|
5
5
|
participatory_process:
|
6
6
|
announcement: duyuru
|
7
7
|
area_id: alan
|
8
|
-
copy_categories: Kategorileri kopyala
|
9
|
-
copy_components: Bileşenleri kopyala
|
10
|
-
copy_steps: Adımları kopyala
|
11
8
|
decidim_area_id: alan
|
12
9
|
description: Açıklama
|
13
10
|
developer_group: Tanıtım grubu
|
14
11
|
domain: domain
|
15
12
|
end_date: Bitiş tarihi
|
16
|
-
hashtag: Başlık etiketi
|
17
13
|
hero_image: Ana resim
|
18
14
|
local_area: Organizasyon alanı
|
19
15
|
meta_scope: Kapsam meta verileri
|
@@ -33,7 +29,6 @@ tr:
|
|
33
29
|
description: Açıklama
|
34
30
|
developer_group: Tanıtım grubu
|
35
31
|
group_url: Web sitesi
|
36
|
-
hashtag: Etiket
|
37
32
|
hero_image: görüntü
|
38
33
|
local_area: Organizasyon alanı
|
39
34
|
meta_scope: Kapsam meta verileri
|
@@ -72,7 +67,6 @@ tr:
|
|
72
67
|
admin:
|
73
68
|
actions:
|
74
69
|
activate: etkinleştirmek
|
75
|
-
configure: Yapılandır
|
76
70
|
confirm_destroy: Silmeyi onayla
|
77
71
|
destroy: silmek
|
78
72
|
duplicate: Çift
|
@@ -91,7 +85,6 @@ tr:
|
|
91
85
|
participatory_process_groups: Süreç grupları
|
92
86
|
participatory_process_groups_submenu:
|
93
87
|
info: Bilgi
|
94
|
-
landing_page: Açılış sayfası
|
95
88
|
participatory_processes: Süreçler
|
96
89
|
participatory_processes_submenu:
|
97
90
|
attachment_collections: Klasörler
|
@@ -99,7 +92,6 @@ tr:
|
|
99
92
|
attachments: Ekler
|
100
93
|
components: Bileşenler
|
101
94
|
info: Süreç Hakkında
|
102
|
-
landing_page: Açılış sayfası
|
103
95
|
moderations: Denetimler
|
104
96
|
process_admins: İşlemi gerçekleştiren kullanıcılar
|
105
97
|
steps: adımlar
|
@@ -132,14 +124,10 @@ tr:
|
|
132
124
|
admin: yönetici
|
133
125
|
collaborator: işbirlikçi
|
134
126
|
moderator: arabulucu
|
135
|
-
valuator: Bilirkişi
|
136
127
|
user:
|
137
128
|
fields:
|
138
129
|
invitation_accepted_at: Davet kabul edildi
|
139
130
|
invitation_sent_at: Davetiye gönderildi
|
140
|
-
participatory_process_copies:
|
141
|
-
new:
|
142
|
-
copy: kopya
|
143
131
|
participatory_process_groups:
|
144
132
|
destroy:
|
145
133
|
success: Katılımcı süreç grubu başarıyla silindi.
|
@@ -279,11 +267,6 @@ tr:
|
|
279
267
|
title: Katılımcı bir süreç nedir?
|
280
268
|
menu:
|
281
269
|
processes: Süreçler
|
282
|
-
metrics:
|
283
|
-
participatory_processes:
|
284
|
-
description: Bu kuruluştaki katılımcı süreçlerin sayısı
|
285
|
-
object: katılımcı süreçler
|
286
|
-
title: Katılımcı süreçler
|
287
270
|
participatory_process_groups:
|
288
271
|
content_blocks:
|
289
272
|
html_1:
|
@@ -339,9 +322,6 @@ tr:
|
|
339
322
|
name: Vurgulanan süreçler
|
340
323
|
index:
|
341
324
|
title: Katılımcı süreçler
|
342
|
-
participatory_process_steps:
|
343
|
-
index:
|
344
|
-
back_to_process: Süreç sayfasına geri dön
|
345
325
|
participatory_processes:
|
346
326
|
filters:
|
347
327
|
counters:
|
data/config/locales/uk.yml
CHANGED
@@ -4,14 +4,10 @@ uk:
|
|
4
4
|
attributes:
|
5
5
|
participatory_process:
|
6
6
|
announcement: Оголошення
|
7
|
-
copy_categories: Скопіювати категорії
|
8
|
-
copy_components: Копіювати складові
|
9
|
-
copy_steps: Скопіювати кроки
|
10
7
|
description: Опис
|
11
8
|
developer_group: Робочий гурт з просування
|
12
9
|
domain: Домен
|
13
10
|
end_date: Дата закінчення
|
14
|
-
hashtag: Хештег
|
15
11
|
hero_image: Зображення головної сторінки
|
16
12
|
local_area: Дільниця організації
|
17
13
|
meta_scope: Метавідомості обсягу
|
@@ -65,7 +61,6 @@ uk:
|
|
65
61
|
admin:
|
66
62
|
actions:
|
67
63
|
activate: Започаткувати
|
68
|
-
configure: Налаштувати
|
69
64
|
confirm_destroy: Підтвердьте видалення
|
70
65
|
destroy: Видалити
|
71
66
|
duplicate: Створити копію
|
@@ -119,9 +114,6 @@ uk:
|
|
119
114
|
fields:
|
120
115
|
invitation_accepted_at: 'Запрошення прийняте:'
|
121
116
|
invitation_sent_at: 'Запрошення надіслане:'
|
122
|
-
participatory_process_copies:
|
123
|
-
new:
|
124
|
-
copy: Скопіювати
|
125
117
|
participatory_process_groups:
|
126
118
|
destroy:
|
127
119
|
success: Сукупність рухів співучасті успішно видалено.
|
@@ -236,9 +228,6 @@ uk:
|
|
236
228
|
notification_title: Дати для кроку <a href="%{resource_path}">%{resource_title}</a> у <a href="%{participatory_space_url}">%{participatory_space_title}</a> були оновлені.
|
237
229
|
menu:
|
238
230
|
processes: Рухи
|
239
|
-
metrics:
|
240
|
-
participatory_processes:
|
241
|
-
title: Рухи співучасті
|
242
231
|
participatory_process_groups:
|
243
232
|
content_blocks:
|
244
233
|
stats:
|
data/config/locales/zh-CN.yml
CHANGED
@@ -5,15 +5,11 @@ zh-CN:
|
|
5
5
|
participatory_process:
|
6
6
|
announcement: 通 知
|
7
7
|
area_id: 区域
|
8
|
-
copy_categories: 复制类别
|
9
|
-
copy_components: 复制组件
|
10
|
-
copy_steps: 复制步骤
|
11
8
|
decidim_area_id: 区域
|
12
9
|
description: 描述
|
13
10
|
developer_group: 促销者组
|
14
11
|
domain: 域
|
15
12
|
end_date: 结束日期
|
16
|
-
hashtag: 标签
|
17
13
|
hero_image: 首页图像
|
18
14
|
local_area: 组织区域
|
19
15
|
meta_scope: 范围元数据
|
@@ -60,7 +56,6 @@ zh-CN:
|
|
60
56
|
admin:
|
61
57
|
actions:
|
62
58
|
activate: 激活
|
63
|
-
configure: 配置
|
64
59
|
confirm_destroy: 确认删除
|
65
60
|
destroy: 删除
|
66
61
|
duplicate: Duplicate
|
@@ -111,14 +106,10 @@ zh-CN:
|
|
111
106
|
admin: 管理员
|
112
107
|
collaborator: 协作者
|
113
108
|
moderator: 版主
|
114
|
-
valuator: 值者
|
115
109
|
user:
|
116
110
|
fields:
|
117
111
|
invitation_accepted_at: 邀请接受于
|
118
112
|
invitation_sent_at: 邀请发送于
|
119
|
-
participatory_process_copies:
|
120
|
-
new:
|
121
|
-
copy: 复制
|
122
113
|
participatory_process_groups:
|
123
114
|
destroy:
|
124
115
|
success: 参与进程组已成功删除。
|
@@ -257,11 +248,6 @@ zh-CN:
|
|
257
248
|
title: 什么是参与性进程?
|
258
249
|
menu:
|
259
250
|
processes: 进程
|
260
|
-
metrics:
|
261
|
-
participatory_processes:
|
262
|
-
description: 本组织参与进程的数目
|
263
|
-
object: 参与进程
|
264
|
-
title: 参与进程
|
265
251
|
participatory_process_groups:
|
266
252
|
content_blocks:
|
267
253
|
stats:
|
@@ -296,9 +282,6 @@ zh-CN:
|
|
296
282
|
name: 高亮的进程
|
297
283
|
index:
|
298
284
|
title: 参与进程
|
299
|
-
participatory_process_steps:
|
300
|
-
index:
|
301
|
-
back_to_process: 返回进程页面
|
302
285
|
participatory_processes:
|
303
286
|
filters:
|
304
287
|
counters:
|
data/config/locales/zh-TW.yml
CHANGED
@@ -5,16 +5,12 @@ zh-TW:
|
|
5
5
|
participatory_process:
|
6
6
|
announcement: 公告
|
7
7
|
area_id: 區域
|
8
|
-
copy_categories: 複製類別
|
9
|
-
copy_components: 複製組件
|
10
|
-
copy_steps: 複製步驟
|
11
8
|
decidim_area_id: 區域
|
12
9
|
description: 說明
|
13
10
|
developer_group: 促銷團隊
|
14
11
|
document: 文件
|
15
12
|
domain: 網域
|
16
13
|
end_date: 結束日期
|
17
|
-
hashtag: 主題標籤
|
18
14
|
hero_image: 首頁圖片
|
19
15
|
import_attachments: 匯入附件
|
20
16
|
import_categories: 匯入類別
|
@@ -40,7 +36,6 @@ zh-TW:
|
|
40
36
|
description: 說明
|
41
37
|
developer_group: 促銷團隊
|
42
38
|
group_url: 網站
|
43
|
-
hashtag: 主題標籤
|
44
39
|
hero_image: 圖片
|
45
40
|
local_area: 組織區域
|
46
41
|
meta_scope: 元數據範圍
|
@@ -82,13 +77,11 @@ zh-TW:
|
|
82
77
|
admin:
|
83
78
|
actions:
|
84
79
|
activate: 啟動
|
85
|
-
configure: 配置
|
86
80
|
confirm_destroy: 確認刪除
|
87
81
|
destroy: 刪除
|
88
82
|
duplicate: 重複
|
89
83
|
edit: 編輯
|
90
84
|
import_process: 匯入
|
91
|
-
moderate: 管理
|
92
85
|
new_process: 新的程序
|
93
86
|
new_process_group: 新的程序群組
|
94
87
|
new_process_step: 新階段
|
@@ -101,14 +94,12 @@ zh-TW:
|
|
101
94
|
participatory_process_groups: 程序群組
|
102
95
|
participatory_process_groups_submenu:
|
103
96
|
info: 資訊
|
104
|
-
landing_page: 登陸頁面
|
105
97
|
participatory_processes: 程序
|
106
98
|
participatory_processes_submenu:
|
107
99
|
attachment_collections: 資料夾
|
108
100
|
attachment_files: 檔案
|
109
101
|
attachments: 附件
|
110
102
|
components: 组件
|
111
|
-
landing_page: 登陸頁面
|
112
103
|
moderations: 版主
|
113
104
|
process_admins: 程序管理員
|
114
105
|
steps: 分類
|
@@ -140,14 +131,10 @@ zh-TW:
|
|
140
131
|
admin: 管理員
|
141
132
|
collaborator: 合作者
|
142
133
|
moderator: 版主
|
143
|
-
valuator: 評估者
|
144
134
|
user:
|
145
135
|
fields:
|
146
136
|
invitation_accepted_at: 邀請已接受時間
|
147
137
|
invitation_sent_at: 邀請已發送時間
|
148
|
-
participatory_process_copies:
|
149
|
-
new:
|
150
|
-
copy: 複製
|
151
138
|
participatory_process_groups:
|
152
139
|
destroy:
|
153
140
|
success: 參與式流程組成功刪除。
|
@@ -301,11 +288,6 @@ zh-TW:
|
|
301
288
|
not_found: '未在資料庫(ID:%{id}) 中找到此流程類型'
|
302
289
|
menu:
|
303
290
|
processes: 程序
|
304
|
-
metrics:
|
305
|
-
participatory_processes:
|
306
|
-
description: 此組織中的參與式過程數量
|
307
|
-
object: 參與程序
|
308
|
-
title: 參與程序
|
309
291
|
participatory_process_groups:
|
310
292
|
content_blocks:
|
311
293
|
html_1:
|
@@ -359,9 +341,6 @@ zh-TW:
|
|
359
341
|
name: 精選程序
|
360
342
|
index:
|
361
343
|
title: 參與程序
|
362
|
-
participatory_process_steps:
|
363
|
-
index:
|
364
|
-
back_to_process: 返回程序頁
|
365
344
|
participatory_processes:
|
366
345
|
filters:
|
367
346
|
all_types: 所有類型
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddDemocraticQualityStaticPage < ActiveRecord::Migration[7.0]
|
4
|
+
class Organization < ApplicationRecord
|
5
|
+
self.table_name = :decidim_organizations
|
6
|
+
end
|
7
|
+
|
8
|
+
class StaticPage < ApplicationRecord
|
9
|
+
self.table_name = :decidim_static_pages
|
10
|
+
end
|
11
|
+
|
12
|
+
def up
|
13
|
+
Organization.find_each do |organization|
|
14
|
+
StaticPage.find_or_create_by!(slug: "democratic-quality-indicators") do |page|
|
15
|
+
page.decidim_organization_id = organization.id
|
16
|
+
page.title = localized_attribute(organization, :title)
|
17
|
+
page.content = localized_attribute(organization, :content)
|
18
|
+
page.allow_public_access = true
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def localized_attribute(organization, attribute)
|
26
|
+
organization.available_locales.inject({}) do |result, locale|
|
27
|
+
text = I18n.with_locale(locale) do
|
28
|
+
I18n.t(attribute, scope: "decidim.participatory_processes.static_pages.democratic_quality_indicators")
|
29
|
+
end
|
30
|
+
|
31
|
+
result.update(locale => text)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -32,7 +32,10 @@ Gem::Specification.new do |s|
|
|
32
32
|
|
33
33
|
s.add_dependency "decidim-core", Decidim::ParticipatoryProcesses.version
|
34
34
|
|
35
|
+
s.add_development_dependency "decidim-accountability", Decidim::ParticipatoryProcesses.version
|
35
36
|
s.add_development_dependency "decidim-admin", Decidim::ParticipatoryProcesses.version
|
37
|
+
s.add_development_dependency "decidim-budgets", Decidim::ParticipatoryProcesses.version
|
36
38
|
s.add_development_dependency "decidim-dev", Decidim::ParticipatoryProcesses.version
|
37
39
|
s.add_development_dependency "decidim-meetings", Decidim::ParticipatoryProcesses.version
|
40
|
+
s.add_development_dependency "decidim-proposals", Decidim::ParticipatoryProcesses.version
|
38
41
|
end
|
@@ -6,11 +6,20 @@ module Decidim
|
|
6
6
|
class ParticipatoryProcessGroupType < Decidim::Api::Types::BaseObject
|
7
7
|
description "A participatory process group"
|
8
8
|
|
9
|
+
implements Decidim::Core::TimestampsInterface
|
10
|
+
|
9
11
|
field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process group", null: true
|
12
|
+
field :developer_group, Decidim::Core::TranslatedFieldType, "The promoter group of this participatory process group", null: true
|
10
13
|
field :hero_image, GraphQL::Types::String, "The hero image for this participatory process group", null: true
|
11
14
|
field :id, GraphQL::Types::ID, "ID of this participatory process group", null: false
|
15
|
+
field :local_area, Decidim::Core::TranslatedFieldType, "The organization area of this participatory process group", null: true
|
16
|
+
field :meta_scope, Decidim::Core::TranslatedFieldType, "The scope metadata of this participatory process group", null: true
|
12
17
|
field :participatory_processes, [Decidim::ParticipatoryProcesses::ParticipatoryProcessType, { null: true }],
|
13
18
|
description: "Lists all the participatory processes belonging to this group", null: false
|
19
|
+
field :participatory_scope, Decidim::Core::TranslatedFieldType, "What is decided on this participatory process group", null: true
|
20
|
+
field :participatory_structure, Decidim::Core::TranslatedFieldType, "How it is decided on this participatory process group", null: true
|
21
|
+
field :promoted, GraphQL::Types::Boolean, "If this participatory process group is promoted (therefore in the homepage)", null: true
|
22
|
+
field :target, Decidim::Core::TranslatedFieldType, "Who participates in this participatory process group", null: true
|
14
23
|
field :title, Decidim::Core::TranslatedFieldType, "The title of this participatory process group", null: true
|
15
24
|
|
16
25
|
def hero_image
|
@@ -4,7 +4,6 @@ module Decidim
|
|
4
4
|
module ParticipatoryProcesses
|
5
5
|
class ParticipatoryProcessInputFilter < Decidim::Core::BaseInputFilter
|
6
6
|
include Decidim::Core::HasPublishableInputFilter
|
7
|
-
include Decidim::Core::HasHastaggableInputFilter
|
8
7
|
|
9
8
|
graphql_name "ParticipatoryProcessFilter"
|
10
9
|
description "A type used for filtering participatory processes"
|
@@ -6,6 +6,8 @@ module Decidim
|
|
6
6
|
class ParticipatoryProcessStepType < Decidim::Api::Types::BaseObject
|
7
7
|
description "A participatory process step"
|
8
8
|
|
9
|
+
implements Decidim::Core::TimestampsInterface
|
10
|
+
|
9
11
|
field :active, GraphQL::Types::Boolean, "If this step is the active one", null: true
|
10
12
|
field :call_to_action_path, GraphQL::Types::String, "A call to action URL for this step", method: :cta_path, null: true
|
11
13
|
field :call_to_action_text, Decidim::Core::TranslatedFieldType, "The call to action text for this step", method: :cta_text, null: true
|
@@ -10,6 +10,8 @@ module Decidim
|
|
10
10
|
implements Decidim::Core::TimestampsInterface
|
11
11
|
implements Decidim::Core::AttachableInterface
|
12
12
|
implements Decidim::Core::CategoriesContainerInterface
|
13
|
+
implements Decidim::Core::FollowableInterface
|
14
|
+
implements Decidim::Core::ReferableInterface
|
13
15
|
|
14
16
|
description "A participatory process"
|
15
17
|
|
@@ -17,7 +19,6 @@ module Decidim
|
|
17
19
|
field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process.", null: true
|
18
20
|
field :developer_group, Decidim::Core::TranslatedFieldType, "The promoter group of this participatory process.", null: true
|
19
21
|
field :end_date, Decidim::Core::DateType, "This participatory process' end date.", null: true
|
20
|
-
field :hashtag, GraphQL::Types::String, "The hashtag for this participatory process", null: true
|
21
22
|
field :hero_image, GraphQL::Types::String, "The hero image for this participatory process", null: true
|
22
23
|
field :id, GraphQL::Types::ID, "The internal ID for this participatory process", null: false
|
23
24
|
field :local_area, Decidim::Core::TranslatedFieldType, "The organization area of this participatory process.", null: true
|
@@ -25,18 +26,23 @@ module Decidim
|
|
25
26
|
field :participatory_process_group, Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupType,
|
26
27
|
null: true,
|
27
28
|
description: "The participatory process group in which this process belong to"
|
28
|
-
field :participatory_scope, Decidim::Core::TranslatedFieldType, "What is decided on this participatory process
|
29
|
-
field :participatory_structure, Decidim::Core::TranslatedFieldType, "How it is decided on this participatory process
|
29
|
+
field :participatory_scope, Decidim::Core::TranslatedFieldType, "What is decided on this participatory process", null: true
|
30
|
+
field :participatory_structure, Decidim::Core::TranslatedFieldType, "How it is decided on this participatory process", null: true
|
31
|
+
field :private_space, GraphQL::Types::Boolean, "Specifies if the space is public or private", null: true
|
30
32
|
field :promoted, GraphQL::Types::Boolean, "If this participatory process is promoted (therefore in the homepage)", null: true
|
31
33
|
field :published_at, Decidim::Core::DateTimeType, "The time this page was published", null: false
|
32
|
-
field :
|
33
|
-
field :
|
34
|
-
field :
|
35
|
-
field :
|
36
|
-
field :
|
37
|
-
field :
|
38
|
-
field :
|
39
|
-
field :
|
34
|
+
field :short_description, Decidim::Core::TranslatedFieldType, "The short description of this participatory process", null: true
|
35
|
+
field :slug, GraphQL::Types::String, "The slug of the participatory process", null: false
|
36
|
+
field :start_date, Decidim::Core::DateType, "This participatory process' start date", null: true
|
37
|
+
field :steps, [Decidim::ParticipatoryProcesses::ParticipatoryProcessStepType, { null: true }], "All the steps of this participatory process", null: false
|
38
|
+
field :subtitle, Decidim::Core::TranslatedFieldType, "The subtitle of this participatory process", null: true
|
39
|
+
field :target, Decidim::Core::TranslatedFieldType, "Who participates in this participatory process", null: true
|
40
|
+
field :url, GraphQL::Types::String, "The URL of this participatory process", null: true
|
41
|
+
field :weight, GraphQL::Types::Int, "The weight of this participatory process", null: true
|
42
|
+
|
43
|
+
def url
|
44
|
+
Decidim::EngineRouter.main_proxy(object).participatory_process_url(object)
|
45
|
+
end
|
40
46
|
|
41
47
|
def hero_image
|
42
48
|
object.attached_uploader(:hero_image).url
|