decidim-elections 0.26.1 → 0.26.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/elections/election_vote_cta_cell.rb +8 -3
- data/app/cells/decidim/votings/content_blocks/highlighted_votings/show.erb +1 -1
- data/app/cells/decidim/votings/content_blocks/highlighted_votings_cell.rb +1 -0
- data/app/cells/decidim/votings/content_blocks/landing_page/description/show.erb +2 -13
- data/app/cells/decidim/votings/content_blocks/landing_page/description_cell.rb +0 -8
- data/app/cells/decidim/votings/content_blocks/landing_page/header/show.erb +2 -2
- data/app/commands/decidim/elections/admin/add_user_as_trustee.rb +21 -11
- data/app/commands/decidim/elections/admin/create_question.rb +2 -6
- data/app/commands/decidim/elections/admin/setup_election.rb +3 -1
- data/app/commands/decidim/elections/admin/update_question.rb +0 -1
- data/app/commands/decidim/votings/admin/destroy_ballot_style.rb +1 -1
- data/app/controllers/decidim/elections/admin/questions_controller.rb +5 -0
- data/app/controllers/decidim/votings/census/admin/census_controller.rb +1 -1
- data/app/controllers/decidim/votings/votings_controller.rb +2 -0
- data/app/forms/decidim/elections/admin/question_form.rb +0 -2
- data/app/forms/decidim/elections/admin/setup_form.rb +43 -0
- data/app/forms/decidim/votings/census/admin/datum_form.rb +4 -0
- data/app/helpers/decidim/elections/votes_helper.rb +3 -1
- data/app/mailers/decidim/elections/trustee_mailer.rb +28 -0
- data/app/models/decidim/elections/election.rb +2 -2
- data/app/models/decidim/elections/question.rb +1 -1
- data/app/packs/src/decidim/elections/admin/pending_action.js +2 -0
- data/app/packs/src/decidim/elections/admin/trustees_process.js +2 -0
- data/app/packs/src/decidim/elections/broken_promises_handler.js +11 -0
- data/app/packs/src/decidim/elections/trustee/key_ceremony.js +3 -0
- data/app/packs/src/decidim/elections/trustee/tally.js +3 -0
- data/app/packs/src/decidim/elections/voter/casting-vote.js +3 -0
- data/app/packs/src/decidim/elections/voter/setup-vote.js +9 -0
- data/app/packs/src/decidim/votings/in-person-vote.js +3 -0
- data/app/packs/src/decidim/votings/voting-description-cell.js +1 -8
- data/app/permissions/decidim/votings/admin/permissions.rb +3 -1
- data/app/presenters/decidim/votings/admin_log/ballot_style_presenter.rb +5 -1
- data/app/views/decidim/elections/admin/questions/_form.html.erb +0 -4
- data/app/views/decidim/elections/admin/steps/_create_election.html.erb +14 -1
- data/app/views/decidim/elections/admin/steps/index.html.erb +2 -0
- data/app/views/decidim/elections/shared/_broken_promises_modal.html.erb +33 -0
- data/app/views/decidim/elections/trustee_mailer/notification.html.erb +5 -0
- data/app/views/decidim/elections/trustee_zone/elections/show.html.erb +3 -0
- data/app/views/decidim/elections/votes/_server_error_modal.html.erb +28 -0
- data/app/views/decidim/elections/votes/_show_casting.html.erb +2 -0
- data/app/views/decidim/elections/votes/new.html.erb +11 -6
- data/app/views/decidim/votings/admin/votings/_form.html.erb +6 -6
- data/app/views/decidim/votings/polling_officer_zone/in_person_votes/new.html.erb +2 -0
- data/app/views/decidim/votings/polling_officer_zone/in_person_votes/show.html.erb +2 -0
- data/app/views/decidim/votings/votings/_check_fields.html.erb +13 -15
- data/app/views/decidim/votings/votings/_promoted_voting.html.erb +1 -1
- data/app/views/decidim/votings/votings/check_census.html.erb +5 -1
- data/config/locales/ar.yml +9 -2
- data/config/locales/ca.yml +48 -13
- data/config/locales/cs.yml +55 -19
- data/config/locales/de.yml +38 -18
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +48 -14
- data/config/locales/es-MX.yml +57 -22
- data/config/locales/es-PY.yml +52 -17
- data/config/locales/es.yml +52 -17
- data/config/locales/eu.yml +3 -16
- data/config/locales/fi-plain.yml +49 -15
- data/config/locales/fi.yml +49 -15
- data/config/locales/fr-CA.yml +50 -16
- data/config/locales/fr.yml +50 -16
- data/config/locales/ga-IE.yml +3 -0
- data/config/locales/gl.yml +10 -14
- data/config/locales/hu.yml +14 -1
- data/config/locales/it.yml +7 -18
- data/config/locales/ja.yml +49 -16
- data/config/locales/lt.yml +1427 -0
- data/config/locales/lv.yml +0 -1
- data/config/locales/nl.yml +15 -17
- data/config/locales/no.yml +8 -4
- data/config/locales/oc-FR.yml +1 -0
- data/config/locales/pl.yml +9 -17
- data/config/locales/pt-BR.yml +4 -17
- data/config/locales/pt.yml +4 -17
- data/config/locales/ro-RO.yml +2 -15
- data/config/locales/sv.yml +53 -10
- data/config/locales/tr-TR.yml +8 -1
- data/config/locales/zh-CN.yml +7 -1
- data/db/migrate/20220615102642_remove_description_from_elections_questions.rb +7 -0
- data/lib/decidim/api/election_question_type.rb +0 -1
- data/lib/decidim/elections/admin_engine.rb +4 -1
- data/lib/decidim/elections/component.rb +0 -12
- data/lib/decidim/elections/test/factories.rb +0 -1
- data/lib/decidim/elections/version.rb +1 -1
- metadata +19 -12
data/config/locales/sv.yml
CHANGED
@@ -12,7 +12,6 @@ sv:
|
|
12
12
|
start_time: Röstningsstart vid
|
13
13
|
title: Titel
|
14
14
|
question:
|
15
|
-
description: Beskrivning
|
16
15
|
max_selections: Maximalt antal val
|
17
16
|
title: Titel
|
18
17
|
voting:
|
@@ -45,12 +44,18 @@ sv:
|
|
45
44
|
decidim/elections/question:
|
46
45
|
one: Fråga
|
47
46
|
other: Frågor
|
47
|
+
decidim/voting:
|
48
|
+
one: Omröstning
|
49
|
+
other: Omröstningar
|
48
50
|
decidim/votings/census/dataset:
|
49
51
|
one: Datamängd
|
50
52
|
other: Datamängder
|
51
53
|
decidim/votings/census/datum:
|
52
54
|
one: Datum
|
53
55
|
other: Datum
|
56
|
+
decidim/votings/polling_officer:
|
57
|
+
one: Röstmottagare
|
58
|
+
other: Röstmottagare
|
54
59
|
decidim/votings/polling_station:
|
55
60
|
one: Vallokal
|
56
61
|
other: Vallokaler
|
@@ -80,6 +85,7 @@ sv:
|
|
80
85
|
label: Bekräftad
|
81
86
|
values:
|
82
87
|
'false': Bekräftad
|
88
|
+
'true': Ej Validerad
|
83
89
|
components:
|
84
90
|
elections:
|
85
91
|
actions:
|
@@ -96,6 +102,7 @@ sv:
|
|
96
102
|
destroy: Förstör
|
97
103
|
edit: Redigera
|
98
104
|
import: Importera förslag till svar
|
105
|
+
manage_answers: Hantera svar
|
99
106
|
manage_questions: Hantera frågor
|
100
107
|
manage_steps: Hanterade steg
|
101
108
|
new: Ny %{name}
|
@@ -120,6 +127,8 @@ sv:
|
|
120
127
|
create: Skapa svar
|
121
128
|
title: Nytt svar
|
122
129
|
not_selected: Inte vald
|
130
|
+
select:
|
131
|
+
disable: Avmarkera svar
|
123
132
|
selected: Valda
|
124
133
|
update:
|
125
134
|
invalid: Det gick inte att uppdatera svaret
|
@@ -195,6 +204,8 @@ sv:
|
|
195
204
|
key_ceremony:
|
196
205
|
continue: Fortsätt
|
197
206
|
title: Nyckelceremoni
|
207
|
+
key_ceremony_ended:
|
208
|
+
title: Redo att börja
|
198
209
|
processing: Bearbetar...
|
199
210
|
results_published:
|
200
211
|
answer: Svar
|
@@ -262,6 +273,7 @@ sv:
|
|
262
273
|
results_title: Resultat
|
263
274
|
started: Startad
|
264
275
|
title: Omröstningslogg
|
276
|
+
vote_title: Omröstningsprocess
|
265
277
|
filters:
|
266
278
|
active: Aktiv
|
267
279
|
all: Allt
|
@@ -278,6 +290,10 @@ sv:
|
|
278
290
|
percentage: "%{count}%"
|
279
291
|
selected: Valda
|
280
292
|
title: Omröstningsresultat
|
293
|
+
votes:
|
294
|
+
one: "%{count} röster"
|
295
|
+
other: "%{count} röster"
|
296
|
+
zero: "%{count} röster"
|
281
297
|
show:
|
282
298
|
action_button:
|
283
299
|
change_vote: Ändra din röst
|
@@ -285,6 +301,8 @@ sv:
|
|
285
301
|
vote_again: Rösta om
|
286
302
|
election_log: Omröstningslogg
|
287
303
|
preview: Förhandsgranska
|
304
|
+
verify:
|
305
|
+
already_voted: Redan röstat?
|
288
306
|
voting_period_status:
|
289
307
|
finished: Omröstningen började den %{start_time} och slutade den %{end_time}
|
290
308
|
upcoming: Omröstningen börjar den %{start_time}
|
@@ -341,7 +359,7 @@ sv:
|
|
341
359
|
start: Start
|
342
360
|
status:
|
343
361
|
completed: Slutförd
|
344
|
-
pending:
|
362
|
+
pending: Avvaktande
|
345
363
|
processing: Bearbetar
|
346
364
|
trustees:
|
347
365
|
show:
|
@@ -350,6 +368,7 @@ sv:
|
|
350
368
|
action_required:
|
351
369
|
'false': 'Nej'
|
352
370
|
name: Åtgärd krävs?
|
371
|
+
'true': Utför åtgärd
|
353
372
|
bb_status: Status
|
354
373
|
election: Val
|
355
374
|
voting_period: Röstningsperiod
|
@@ -361,7 +380,6 @@ sv:
|
|
361
380
|
ballot_decision:
|
362
381
|
audit: "( Granska valsedel )"
|
363
382
|
back: Starta om omröstningsprocessen
|
364
|
-
cast: Rösta
|
365
383
|
confirm:
|
366
384
|
answer: Svar
|
367
385
|
answer_number: svara %{number}
|
@@ -379,6 +397,8 @@ sv:
|
|
379
397
|
text: 'Du kan kontrollera att din röst har lagts till i röstsedeln med följande identifierare: <strong class="evote__poll-id">%{e_vote_poll_id}</strong>'
|
380
398
|
failed:
|
381
399
|
header: Röst ej framgångsrik
|
400
|
+
modal:
|
401
|
+
close: Stäng
|
382
402
|
try_again: Försök igen
|
383
403
|
header:
|
384
404
|
ballot_decision: Lägg eller granska din röst
|
@@ -398,10 +418,13 @@ sv:
|
|
398
418
|
selections: "%{selected} av %{max_selections}<br> val"
|
399
419
|
onboarding_modal:
|
400
420
|
close: Stäng fönstret
|
421
|
+
create_account: Skapa konto
|
401
422
|
no_account: Nej tack.
|
402
423
|
verify:
|
403
424
|
content:
|
404
425
|
heading: Verifiera din röst
|
426
|
+
error:
|
427
|
+
header: Hittade inga omröstningar!
|
405
428
|
form:
|
406
429
|
back: Tillbaka till Decidim
|
407
430
|
submit: Kontrollera
|
@@ -441,6 +464,12 @@ sv:
|
|
441
464
|
title: Åtgärder
|
442
465
|
new:
|
443
466
|
create: Skapa
|
467
|
+
content_blocks:
|
468
|
+
landing_page:
|
469
|
+
metrics:
|
470
|
+
name: Omröstningsmetrik
|
471
|
+
timeline:
|
472
|
+
name: Omröstningstidslinje
|
444
473
|
index:
|
445
474
|
not_published: Ej publicerade
|
446
475
|
published: Publicerad
|
@@ -475,12 +504,14 @@ sv:
|
|
475
504
|
fields:
|
476
505
|
email: E-post
|
477
506
|
name: Namn
|
507
|
+
name: Röstmottagare
|
478
508
|
polling_station:
|
479
509
|
fields:
|
480
510
|
address: Adress
|
481
511
|
polling_station_managers: Koordinatorer
|
482
512
|
polling_station_president: Ordförande
|
483
513
|
title: Titel
|
514
|
+
name: Röststation
|
484
515
|
voting:
|
485
516
|
fields:
|
486
517
|
created_at: Skapad den
|
@@ -492,6 +523,11 @@ sv:
|
|
492
523
|
title: Åtgärder
|
493
524
|
view: Visa
|
494
525
|
results:
|
526
|
+
result_types:
|
527
|
+
blank_answers: Tomma svar
|
528
|
+
blank_ballots: Tomma röstsedlar
|
529
|
+
total_ballots: Totalt antal röstsedlar
|
530
|
+
valid_ballots: Giltiga röstsedlar
|
495
531
|
selected: Valda
|
496
532
|
totals: Totalt
|
497
533
|
show:
|
@@ -545,6 +581,8 @@ sv:
|
|
545
581
|
edit:
|
546
582
|
update: Uppdatera
|
547
583
|
form:
|
584
|
+
promoted: Annonserad
|
585
|
+
slug: Slug
|
548
586
|
title: Titel
|
549
587
|
voting_type:
|
550
588
|
hybrid: Hybrid
|
@@ -554,10 +592,6 @@ sv:
|
|
554
592
|
create: Skapa
|
555
593
|
title: Ny omröstning
|
556
594
|
census:
|
557
|
-
admin:
|
558
|
-
census:
|
559
|
-
new:
|
560
|
-
submit: Skicka in csv
|
561
595
|
document_types:
|
562
596
|
dni: ID-kort
|
563
597
|
nie: Personnummer
|
@@ -567,9 +601,6 @@ sv:
|
|
567
601
|
download: Ladda ner
|
568
602
|
content_blocks:
|
569
603
|
landing_page:
|
570
|
-
description:
|
571
|
-
show_less: Läs mindre
|
572
|
-
show_more: Läs mer
|
573
604
|
metrics:
|
574
605
|
heading: Metrik
|
575
606
|
polling_stations:
|
@@ -585,6 +616,7 @@ sv:
|
|
585
616
|
pages:
|
586
617
|
home:
|
587
618
|
highlighted_votings:
|
619
|
+
active_votings: Activa omröstningar
|
588
620
|
see_all_votings: Se alla omröstningar
|
589
621
|
polling_officer_zone:
|
590
622
|
closures:
|
@@ -599,6 +631,7 @@ sv:
|
|
599
631
|
heading: Omräkning
|
600
632
|
modal_ballots_count_error:
|
601
633
|
close_modal: Stäng
|
634
|
+
total_people: 'Totala människor:'
|
602
635
|
polling_station: 'Vallokal:'
|
603
636
|
show:
|
604
637
|
heading: Omräkning
|
@@ -608,6 +641,7 @@ sv:
|
|
608
641
|
confirm: Fortsätt
|
609
642
|
in_person_votes:
|
610
643
|
in_person_form:
|
644
|
+
date_of_birth: Födelsedatum
|
611
645
|
day: Dag
|
612
646
|
day_placeholder: DD
|
613
647
|
document_number: Dokumentnummer
|
@@ -641,6 +675,7 @@ sv:
|
|
641
675
|
unassigned: Otilldelad
|
642
676
|
polling_station_closure_recount:
|
643
677
|
signed: Signerat
|
678
|
+
total_ballots: 'Totalt antal röstsedlar:'
|
644
679
|
polling_stations:
|
645
680
|
actions:
|
646
681
|
confirm_destroy: Är du säker?
|
@@ -649,6 +684,8 @@ sv:
|
|
649
684
|
new: Ny
|
650
685
|
title: Åtgärder
|
651
686
|
votings:
|
687
|
+
access_code_modal:
|
688
|
+
title: Få behörighetskod
|
652
689
|
check_census:
|
653
690
|
check_status: Kontrollera status
|
654
691
|
title: Kan jag rösta?
|
@@ -658,11 +695,16 @@ sv:
|
|
658
695
|
day_placeholder: DD
|
659
696
|
document_number: Dokumentnummer
|
660
697
|
document_number_placeholder: ID-nummer
|
698
|
+
document_type: Dokumenttyp
|
661
699
|
month: Månad
|
662
700
|
month_placeholder: MM
|
663
701
|
postal_code: Postnummer
|
664
702
|
year: År
|
665
703
|
year_placeholder: ÅÅÅÅ
|
704
|
+
count:
|
705
|
+
title:
|
706
|
+
one: "%{count} omröstning"
|
707
|
+
other: "%{count} omröstningar"
|
666
708
|
elections_log:
|
667
709
|
election_log: Omröstningslogg
|
668
710
|
title: Omröstningslogg
|
@@ -684,6 +726,7 @@ sv:
|
|
684
726
|
access_code: Behörighetskod
|
685
727
|
access_code_placeholder: Behörighetskod
|
686
728
|
start_voting: Starta omröstningen
|
729
|
+
step: Identifikation
|
687
730
|
orders:
|
688
731
|
label: 'Sortera omröstningar efter:'
|
689
732
|
random: Slumpmässig
|
data/config/locales/tr-TR.yml
CHANGED
@@ -12,7 +12,6 @@ tr:
|
|
12
12
|
start_time: Oylama başlangıcı
|
13
13
|
title: Başlık
|
14
14
|
question:
|
15
|
-
description: Açıklama
|
16
15
|
max_selections: Maksimum seçim sayısı
|
17
16
|
min_selections: Yukarıdakilerden hiçbiri
|
18
17
|
title: Başlık
|
@@ -252,6 +251,11 @@ tr:
|
|
252
251
|
older: Daha eski
|
253
252
|
recent: En son
|
254
253
|
trustee_zone:
|
254
|
+
elections:
|
255
|
+
tally_steps:
|
256
|
+
back: Geri
|
257
|
+
list:
|
258
|
+
status: Statü
|
255
259
|
menu:
|
256
260
|
trustee_zone: Vekil bölgesi
|
257
261
|
trustees:
|
@@ -302,6 +306,9 @@ tr:
|
|
302
306
|
feedback: Bize geri bildirim verin
|
303
307
|
header: Oy onaylandı
|
304
308
|
text: 'Aşağıdaki tanımlayıcıyla oyunuzun başarıyla oy sandığına eklenip eklenmediğini kontrol edebilirsiniz: <strong class = "evote__poll-id">%{e_vote_poll_id} </strong>'
|
309
|
+
failed:
|
310
|
+
modal:
|
311
|
+
close: Kapat
|
305
312
|
header:
|
306
313
|
confirm: Oyunu onayla
|
307
314
|
confirmed: Oy onaylandı
|
data/config/locales/zh-CN.yml
CHANGED
@@ -12,7 +12,6 @@ zh-CN:
|
|
12
12
|
start_time: 投票开始于
|
13
13
|
title: 标题
|
14
14
|
question:
|
15
|
-
description: 描述
|
16
15
|
max_selections: 最大选择数
|
17
16
|
min_selections: 上面没有一个选项
|
18
17
|
title: 标题
|
@@ -185,6 +184,10 @@ zh-CN:
|
|
185
184
|
label: 排序选举方式
|
186
185
|
older: 更旧的
|
187
186
|
recent: 最近的
|
187
|
+
trustee_zone:
|
188
|
+
elections:
|
189
|
+
tally_steps:
|
190
|
+
back: 后退
|
188
191
|
votes:
|
189
192
|
confirm:
|
190
193
|
answer: 答案
|
@@ -201,6 +204,9 @@ zh-CN:
|
|
201
204
|
feedback: 给我们一些反馈
|
202
205
|
header: 已确认投票
|
203
206
|
text: '您可以检查您的投票是否已成功地添加到选票箱,其标识符如下: <strong class="evote__poll-id">%{e_vote_poll_id}</strong>'
|
207
|
+
failed:
|
208
|
+
modal:
|
209
|
+
close: 关闭
|
204
210
|
header:
|
205
211
|
confirm: 确认您的投票
|
206
212
|
confirmed: 已确认投票
|
@@ -11,7 +11,6 @@ module Decidim
|
|
11
11
|
|
12
12
|
field :id, GraphQL::Types::ID, "The internal ID of this question", null: false
|
13
13
|
field :title, Decidim::Core::TranslatedFieldType, "The title for this question", null: false
|
14
|
-
field :description, Decidim::Core::TranslatedFieldType, "The description for this question", null: false
|
15
14
|
field :max_selections, GraphQL::Types::Int, "The maximum number of possible selections for this question", null: false
|
16
15
|
field :weight, GraphQL::Types::Int, "The ordering weight for this question", null: true
|
17
16
|
field :random_answers_order, GraphQL::Types::Boolean, "Should this question order answers in random order?", null: true
|
@@ -58,11 +58,14 @@ module Decidim
|
|
58
58
|
next unless component
|
59
59
|
|
60
60
|
link = Decidim::EngineRouter.admin_proxy(component).trustees_path(locale: I18n.locale)
|
61
|
+
|
62
|
+
has_election_components = current_participatory_space.components.select { |c| c.manifest_name == "elections" }.any?
|
63
|
+
|
61
64
|
menu.add_item :trustees,
|
62
65
|
I18n.t("trustees", scope: "decidim.elections.admin.menu"),
|
63
66
|
link,
|
67
|
+
if: has_election_components && (allowed_to?(:manage, :trustees) || current_user.admin?),
|
64
68
|
position: 100,
|
65
|
-
if: allowed_to?(:manage, :trustees),
|
66
69
|
active: is_active_link?(link)
|
67
70
|
end
|
68
71
|
end
|
@@ -113,9 +113,6 @@ Decidim.register_component(:elections) do |component|
|
|
113
113
|
{
|
114
114
|
election: upcoming_election,
|
115
115
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
116
|
-
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
117
|
-
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
118
|
-
end,
|
119
116
|
max_selections: Faker::Number.between(from: 1, to: 3),
|
120
117
|
weight: Faker::Number.number(digits: 1),
|
121
118
|
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
|
@@ -213,9 +210,6 @@ Decidim.register_component(:elections) do |component|
|
|
213
210
|
{
|
214
211
|
election: finished_election,
|
215
212
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
216
|
-
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
217
|
-
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
218
|
-
end,
|
219
213
|
max_selections: 2,
|
220
214
|
weight: Faker::Number.number(digits: 1),
|
221
215
|
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
|
@@ -336,9 +330,6 @@ Decidim.register_component(:elections) do |component|
|
|
336
330
|
{
|
337
331
|
election: election_with_results,
|
338
332
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
339
|
-
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
340
|
-
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
341
|
-
end,
|
342
333
|
max_selections: 2,
|
343
334
|
weight: Faker::Number.number(digits: 1),
|
344
335
|
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
|
@@ -456,9 +447,6 @@ Decidim.register_component(:elections) do |component|
|
|
456
447
|
{
|
457
448
|
election: ongoing_election,
|
458
449
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
459
|
-
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
460
|
-
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
461
|
-
end,
|
462
450
|
max_selections: 2,
|
463
451
|
weight: Faker::Number.number(digits: 1),
|
464
452
|
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
|
@@ -170,7 +170,6 @@ FactoryBot.define do
|
|
170
170
|
|
171
171
|
election
|
172
172
|
title { generate_localized_title }
|
173
|
-
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
174
173
|
min_selections { 1 }
|
175
174
|
max_selections { 1 }
|
176
175
|
weight { Faker::Number.number(digits: 1) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-elections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonardo Diez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: decidim-bulletin_board
|
@@ -59,42 +59,42 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.26.
|
62
|
+
version: 0.26.3
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.26.
|
69
|
+
version: 0.26.3
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: decidim-forms
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.26.
|
76
|
+
version: 0.26.3
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.26.
|
83
|
+
version: 0.26.3
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: decidim-proposals
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - '='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.26.
|
90
|
+
version: 0.26.3
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.26.
|
97
|
+
version: 0.26.3
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rack-attack
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,28 +115,28 @@ dependencies:
|
|
115
115
|
requirements:
|
116
116
|
- - '='
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.26.
|
118
|
+
version: 0.26.3
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - '='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.26.
|
125
|
+
version: 0.26.3
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: decidim-dev
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - '='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.26.
|
132
|
+
version: 0.26.3
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - '='
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.26.
|
139
|
+
version: 0.26.3
|
140
140
|
description: The Elections module adds elections to any participatory space.
|
141
141
|
email:
|
142
142
|
- leo@codegram.com
|
@@ -359,6 +359,7 @@ files:
|
|
359
359
|
- app/jobs/decidim/votings/census/admin/create_datum_job.rb
|
360
360
|
- app/jobs/decidim/votings/census/admin/export_access_codes_job.rb
|
361
361
|
- app/jobs/decidim/votings/census/admin/generate_access_codes_job.rb
|
362
|
+
- app/mailers/decidim/elections/trustee_mailer.rb
|
362
363
|
- app/mailers/decidim/elections/vote_accepted_mailer.rb
|
363
364
|
- app/mailers/decidim/votings/access_code_mailer.rb
|
364
365
|
- app/mailers/decidim/votings/census/export_mailer.rb
|
@@ -417,6 +418,7 @@ files:
|
|
417
418
|
- app/packs/src/decidim/elections/admin/pending_action.js
|
418
419
|
- app/packs/src/decidim/elections/admin/trustees_process.js
|
419
420
|
- app/packs/src/decidim/elections/admin/vote_statistics.js
|
421
|
+
- app/packs/src/decidim/elections/broken_promises_handler.js
|
420
422
|
- app/packs/src/decidim/elections/election_log.js
|
421
423
|
- app/packs/src/decidim/elections/onboarding.js
|
422
424
|
- app/packs/src/decidim/elections/trustee/key_ceremony.js
|
@@ -538,6 +540,8 @@ files:
|
|
538
540
|
- app/views/decidim/elections/elections/index.html.erb
|
539
541
|
- app/views/decidim/elections/elections/index.js.erb
|
540
542
|
- app/views/decidim/elections/elections/show.html.erb
|
543
|
+
- app/views/decidim/elections/shared/_broken_promises_modal.html.erb
|
544
|
+
- app/views/decidim/elections/trustee_mailer/notification.html.erb
|
541
545
|
- app/views/decidim/elections/trustee_zone/elections/_backup_modal.html.erb
|
542
546
|
- app/views/decidim/elections/trustee_zone/elections/_key_ceremony_steps.html.erb
|
543
547
|
- app/views/decidim/elections/trustee_zone/elections/_restore_modal.html.erb
|
@@ -554,6 +558,7 @@ files:
|
|
554
558
|
- app/views/decidim/elections/votes/_new_question.html.erb
|
555
559
|
- app/views/decidim/elections/votes/_new_question_modal.html.erb
|
556
560
|
- app/views/decidim/elections/votes/_onboarding_modal.html.erb
|
561
|
+
- app/views/decidim/elections/votes/_server_error_modal.html.erb
|
557
562
|
- app/views/decidim/elections/votes/_show_casted.html.erb
|
558
563
|
- app/views/decidim/elections/votes/_show_casting.html.erb
|
559
564
|
- app/views/decidim/elections/votes/_show_failed.html.erb
|
@@ -684,6 +689,7 @@ files:
|
|
684
689
|
- config/locales/mt.yml
|
685
690
|
- config/locales/nl.yml
|
686
691
|
- config/locales/no.yml
|
692
|
+
- config/locales/oc-FR.yml
|
687
693
|
- config/locales/om-ET.yml
|
688
694
|
- config/locales/pl.yml
|
689
695
|
- config/locales/pt-BR.yml
|
@@ -749,6 +755,7 @@ files:
|
|
749
755
|
- db/migrate/20210422124826_add_verifiable_results_to_decidim_elections_election.rb
|
750
756
|
- db/migrate/20210426072845_add_signed_at_to_polling_station_closure.rb
|
751
757
|
- db/migrate/20210427131742_add_validated_at_to_votings_polling_station_closures.rb
|
758
|
+
- db/migrate/20220615102642_remove_description_from_elections_questions.rb
|
752
759
|
- db/seeds/Exampledocument.pdf
|
753
760
|
- db/seeds/city.jpeg
|
754
761
|
- db/seeds/city2.jpeg
|