decidim-proposals 0.26.2 → 0.27.0.rc2
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/proposals/highlighted_proposals_for_component_cell.rb +9 -1
- data/app/cells/decidim/proposals/proposal_m_cell.rb +5 -7
- data/app/commands/decidim/proposals/accept_access_to_collaborative_draft.rb +1 -1
- data/app/commands/decidim/proposals/admin/answer_proposal.rb +1 -1
- data/app/commands/decidim/proposals/admin/assign_proposals_to_valuator.rb +1 -1
- data/app/commands/decidim/proposals/admin/create_proposal.rb +8 -2
- data/app/commands/decidim/proposals/admin/create_proposal_note.rb +2 -2
- data/app/commands/decidim/proposals/admin/discard_participatory_text.rb +1 -1
- data/app/commands/decidim/proposals/admin/import_participatory_text.rb +1 -1
- data/app/commands/decidim/proposals/admin/import_proposals.rb +1 -1
- data/app/commands/decidim/proposals/admin/merge_proposals.rb +1 -1
- data/app/commands/decidim/proposals/admin/notify_proposal_answer.rb +1 -1
- data/app/commands/decidim/proposals/admin/publish_answers.rb +1 -1
- data/app/commands/decidim/proposals/admin/split_proposals.rb +1 -1
- data/app/commands/decidim/proposals/admin/unassign_proposals_from_valuator.rb +1 -1
- data/app/commands/decidim/proposals/admin/update_participatory_text.rb +1 -1
- data/app/commands/decidim/proposals/admin/update_proposal.rb +8 -2
- data/app/commands/decidim/proposals/admin/update_proposal_category.rb +5 -3
- data/app/commands/decidim/proposals/admin/update_proposal_scope.rb +3 -3
- data/app/commands/decidim/proposals/create_collaborative_draft.rb +5 -5
- data/app/commands/decidim/proposals/create_proposal.rb +1 -1
- data/app/commands/decidim/proposals/destroy_proposal.rb +1 -1
- data/app/commands/decidim/proposals/publish_collaborative_draft.rb +1 -1
- data/app/commands/decidim/proposals/publish_proposal.rb +1 -1
- data/app/commands/decidim/proposals/reject_access_to_collaborative_draft.rb +1 -1
- data/app/commands/decidim/proposals/request_access_to_collaborative_draft.rb +1 -1
- data/app/commands/decidim/proposals/unvote_proposal.rb +1 -1
- data/app/commands/decidim/proposals/update_collaborative_draft.rb +1 -1
- data/app/commands/decidim/proposals/update_proposal.rb +8 -2
- data/app/commands/decidim/proposals/vote_proposal.rb +1 -1
- data/app/commands/decidim/proposals/withdraw_collaborative_draft.rb +1 -1
- data/app/commands/decidim/proposals/withdraw_proposal.rb +1 -1
- data/app/controllers/concerns/decidim/proposals/orderable.rb +7 -5
- data/app/controllers/decidim/proposals/admin/proposals_controller.rb +7 -7
- data/app/controllers/decidim/proposals/collaborative_drafts_controller.rb +8 -8
- data/app/controllers/decidim/proposals/proposal_votes_controller.rb +1 -1
- data/app/controllers/decidim/proposals/proposals_controller.rb +24 -17
- data/app/events/decidim/proposals/publish_proposal_event.rb +8 -0
- data/app/forms/decidim/proposals/admin/import_participatory_text_form.rb +4 -4
- data/app/forms/decidim/proposals/admin/proposal_base_form.rb +4 -4
- data/app/forms/decidim/proposals/admin/proposal_form.rb +2 -0
- data/app/forms/decidim/proposals/admin/proposals_fork_form.rb +2 -2
- data/app/forms/decidim/proposals/admin/proposals_import_form.rb +1 -1
- data/app/forms/decidim/proposals/proposal_form.rb +11 -4
- data/app/forms/decidim/proposals/proposal_wizard_create_step_form.rb +3 -0
- data/app/helpers/decidim/proposals/admin/proposal_bulk_actions_helper.rb +4 -0
- data/app/helpers/decidim/proposals/application_helper.rb +4 -6
- data/app/helpers/decidim/proposals/proposal_cells_helper.rb +1 -3
- data/app/helpers/decidim/proposals/proposal_wizard_helper.rb +7 -7
- data/app/jobs/decidim/proposals/notify_proposals_mentioned_job.rb +1 -1
- data/app/models/decidim/proposals/collaborative_draft.rb +10 -0
- data/app/models/decidim/proposals/collaborative_draft_collaborator_request.rb +0 -2
- data/app/models/decidim/proposals/proposal.rb +47 -8
- data/app/queries/decidim/proposals/filtered_proposals.rb +1 -1
- data/app/queries/decidim/proposals/similar_proposals.rb +1 -1
- data/app/services/decidim/proposals/proposal_search.rb +16 -71
- data/app/views/decidim/proposals/admin/proposals/_form.html.erb +1 -1
- data/app/views/decidim/proposals/admin/proposals/publish_answers.js.erb +1 -1
- data/app/views/decidim/proposals/admin/proposals/update_attribute.js.erb +26 -0
- data/app/views/decidim/proposals/collaborative_drafts/_edit_form_fields.html.erb +8 -16
- data/app/views/decidim/proposals/collaborative_drafts/_filters.html.erb +4 -4
- data/app/views/decidim/proposals/collaborative_drafts/edit.html.erb +3 -1
- data/app/views/decidim/proposals/collaborative_drafts/new.html.erb +3 -1
- data/app/views/decidim/proposals/proposals/_edit_form_fields.html.erb +13 -36
- data/app/views/decidim/proposals/proposals/_filters.html.erb +5 -5
- data/app/views/decidim/proposals/proposals/_proposals.html.erb +5 -5
- data/app/views/decidim/proposals/proposals/complete.html.erb +3 -1
- data/app/views/decidim/proposals/proposals/edit.html.erb +3 -1
- data/app/views/decidim/proposals/proposals/edit_draft.html.erb +3 -1
- data/app/views/decidim/proposals/proposals/new.html.erb +3 -1
- data/config/locales/ar.yml +1 -9
- data/config/locales/bg.yml +1 -4
- data/config/locales/ca.yml +13 -8
- data/config/locales/cs.yml +12 -7
- data/config/locales/de.yml +54 -6
- data/config/locales/el.yml +1 -6
- data/config/locales/en.yml +10 -6
- data/config/locales/es-MX.yml +12 -7
- data/config/locales/es-PY.yml +12 -7
- data/config/locales/es.yml +12 -7
- data/config/locales/eu.yml +1 -9
- data/config/locales/fi-plain.yml +11 -6
- data/config/locales/fi.yml +11 -6
- data/config/locales/fr-CA.yml +12 -6
- data/config/locales/fr.yml +12 -6
- data/config/locales/ga-IE.yml +1 -2
- data/config/locales/gl.yml +8 -9
- data/config/locales/hu.yml +8 -6
- data/config/locales/id-ID.yml +1 -5
- data/config/locales/is-IS.yml +2 -2
- data/config/locales/it.yml +2 -9
- data/config/locales/ja.yml +11 -6
- data/config/locales/lb.yml +1 -0
- data/config/locales/lt.yml +996 -0
- data/config/locales/lv.yml +1 -6
- data/config/locales/nl.yml +2 -9
- data/config/locales/no.yml +1 -6
- data/config/locales/pl.yml +1 -9
- data/config/locales/pt-BR.yml +1 -9
- data/config/locales/pt.yml +1 -9
- data/config/locales/ro-RO.yml +2 -9
- data/config/locales/ru.yml +1 -1
- data/config/locales/sk.yml +1 -6
- data/config/locales/sl.yml +1 -0
- data/config/locales/sr-CS.yml +1 -2
- data/config/locales/sv.yml +8 -12
- data/config/locales/tr-TR.yml +1 -9
- data/config/locales/uk.yml +1 -1
- data/config/locales/zh-CN.yml +1 -9
- data/db/migrate/20180529110230_move_authorships_to_coauthorships.rb +1 -0
- data/lib/decidim/proposals/component.rb +19 -14
- data/lib/decidim/proposals/import/proposal_answer_creator.rb +21 -19
- data/lib/decidim/proposals/test/factories.rb +1 -1
- data/lib/decidim/proposals/version.rb +1 -1
- metadata +25 -28
- data/app/services/decidim/proposals/collaborative_draft_search.rb +0 -59
- data/app/views/decidim/proposals/admin/proposals/_js-callout.html.erb +0 -6
- data/app/views/decidim/proposals/admin/proposals/update_category.js.erb +0 -26
- data/app/views/decidim/proposals/admin/proposals/update_scope.js.erb +0 -27
data/config/locales/lv.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
lv:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -36,10 +37,6 @@ lv:
|
|
36
37
|
valuator_role_id: Vērtētāja vārds
|
37
38
|
errors:
|
38
39
|
models:
|
39
|
-
participatory_text:
|
40
|
-
attributes:
|
41
|
-
document:
|
42
|
-
invalid_document_type: 'Nederīgs dokumenta tips. Pieņemtie formāti ir: %{valid_mime_types}'
|
43
40
|
proposal:
|
44
41
|
attributes:
|
45
42
|
add_documents:
|
@@ -485,7 +482,6 @@ lv:
|
|
485
482
|
all: Visi
|
486
483
|
filter_origin_values:
|
487
484
|
all: Visi
|
488
|
-
citizens: Pilsoņi
|
489
485
|
meetings: Sanāksmes
|
490
486
|
official: Oficiālā
|
491
487
|
user_groups: Grupas
|
@@ -654,7 +650,6 @@ lv:
|
|
654
650
|
one: "%{count} priekšlikums"
|
655
651
|
other: "%{count} priekšlikumi"
|
656
652
|
edit:
|
657
|
-
add_documents: Dokumenti
|
658
653
|
attachment_legend: "(Pēc izvēles) Pievienojiet pielikumu"
|
659
654
|
back: Atpakaļ
|
660
655
|
select_a_category: Lūdzu, izvēlieties kategoriju
|
data/config/locales/nl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
nl:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -42,10 +43,6 @@ nl:
|
|
42
43
|
valuator_role_id: Naam beoordelaar
|
43
44
|
errors:
|
44
45
|
models:
|
45
|
-
participatory_text:
|
46
|
-
attributes:
|
47
|
-
document:
|
48
|
-
invalid_document_type: 'Ongeldig documenttype. Aanvaarde formaten zijn: %{valid_mime_types}'
|
49
46
|
proposal:
|
50
47
|
attributes:
|
51
48
|
add_documents:
|
@@ -557,9 +554,9 @@ nl:
|
|
557
554
|
all: Alle
|
558
555
|
filter_origin_values:
|
559
556
|
all: Alle
|
560
|
-
citizens: Burgers
|
561
557
|
meetings: vergaderingen
|
562
558
|
official: Officieel
|
559
|
+
participants: Deelnemers
|
563
560
|
user_groups: Groepen
|
564
561
|
filter_scope_values:
|
565
562
|
all: Alle
|
@@ -732,12 +729,8 @@ nl:
|
|
732
729
|
description: De coördinaten worden bijgewerkt bij het klikken op de 'preview' knop. Het adres verandert echter niet.
|
733
730
|
instructions: Je kunt het punt op de kaart verplaatsen.
|
734
731
|
edit:
|
735
|
-
add_documents: Documenten
|
736
|
-
add_images: Bestand
|
737
732
|
attachment_legend: "(Optioneel) Voeg een bijlage toe"
|
738
733
|
back: Terug
|
739
|
-
delete_document: Document verwijderen
|
740
|
-
delete_image: Afbeelding verwijderen
|
741
734
|
gallery_legend: "(Optioneel) Voeg een afbeelding toe aan het voorstel"
|
742
735
|
select_a_category: Selecteer een categorie
|
743
736
|
send: Verzenden
|
data/config/locales/no.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
"no":
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -39,10 +40,6 @@
|
|
39
40
|
keep_authors: Behold originale forfattere
|
40
41
|
errors:
|
41
42
|
models:
|
42
|
-
participatory_text:
|
43
|
-
attributes:
|
44
|
-
document:
|
45
|
-
invalid_document_type: 'Ugyldig dokumenttype. Godkjente formater er: %{valid_mime_types}'
|
46
43
|
proposal:
|
47
44
|
attributes:
|
48
45
|
add_documents:
|
@@ -537,7 +534,6 @@
|
|
537
534
|
all: Alle
|
538
535
|
filter_origin_values:
|
539
536
|
all: Alle
|
540
|
-
citizens: Borgere
|
541
537
|
meetings: Møter
|
542
538
|
official: Offisiell
|
543
539
|
user_groups: Grupper
|
@@ -701,7 +697,6 @@
|
|
701
697
|
one: "%{count} forslag"
|
702
698
|
other: "%{count} forslag"
|
703
699
|
edit:
|
704
|
-
add_documents: Dokumenter
|
705
700
|
attachment_legend: "(Valgfritt) Legg til et vedlegg"
|
706
701
|
back: Tilbake
|
707
702
|
select_a_category: Velg en kategori
|
data/config/locales/pl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pl:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -41,10 +42,6 @@ pl:
|
|
41
42
|
valuator_role_id: Imię weryfikatora
|
42
43
|
errors:
|
43
44
|
models:
|
44
|
-
participatory_text:
|
45
|
-
attributes:
|
46
|
-
document:
|
47
|
-
invalid_document_type: 'Nieprawidłowy typ dokumentu. Akceptowane formaty to: %{valid_mime_types}'
|
48
45
|
proposal:
|
49
46
|
attributes:
|
50
47
|
add_documents:
|
@@ -536,7 +533,6 @@ pl:
|
|
536
533
|
all: Wszystko
|
537
534
|
filter_origin_values:
|
538
535
|
all: Wszystko
|
539
|
-
citizens: Obywatele
|
540
536
|
meetings: Spotkania
|
541
537
|
official: Urzędnik
|
542
538
|
user_groups: Grupy użytkowników
|
@@ -714,12 +710,8 @@ pl:
|
|
714
710
|
many: "%{count} propozycji"
|
715
711
|
other: "%{count} propozycji"
|
716
712
|
edit:
|
717
|
-
add_documents: Dokumenty
|
718
|
-
add_images: Plik
|
719
713
|
attachment_legend: "(Opcjonalnie) Dodaj załącznik"
|
720
714
|
back: Wróć
|
721
|
-
delete_document: Usuń dokument
|
722
|
-
delete_image: Usuń obraz
|
723
715
|
gallery_legend: "(Opcjonalnie) Dodaj obraz do karty propozycji"
|
724
716
|
select_a_category: Wybierz kategorię
|
725
717
|
send: Wyślij
|
data/config/locales/pt-BR.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pt-BR:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -42,10 +43,6 @@ pt-BR:
|
|
42
43
|
valuator_role_id: Nome do Avaliador
|
43
44
|
errors:
|
44
45
|
models:
|
45
|
-
participatory_text:
|
46
|
-
attributes:
|
47
|
-
document:
|
48
|
-
invalid_document_type: 'Tipo de documento inválido. Formatos aceitos são: %{valid_mime_types}'
|
49
46
|
proposal:
|
50
47
|
attributes:
|
51
48
|
add_documents:
|
@@ -527,7 +524,6 @@ pt-BR:
|
|
527
524
|
all: Todos
|
528
525
|
filter_origin_values:
|
529
526
|
all: Todos
|
530
|
-
citizens: Cidadãos
|
531
527
|
meetings: Reuniões
|
532
528
|
official: Oficial
|
533
529
|
user_groups: Grupos de usuários
|
@@ -702,12 +698,8 @@ pt-BR:
|
|
702
698
|
description: As coordenadas serão atualizadas quando clicar no botão 'visualizar'. No entanto, o endereço não muda.
|
703
699
|
instructions: Você pode mover o ponto no mapa.
|
704
700
|
edit:
|
705
|
-
add_documents: Documentos
|
706
|
-
add_images: Arquivo
|
707
701
|
attachment_legend: "(Opcional) Adicione um anexo"
|
708
702
|
back: Voltar
|
709
|
-
delete_document: Apagar Documento
|
710
|
-
delete_image: Excluir Imagem
|
711
703
|
gallery_legend: "(Opcional) Adicione uma imagem à carta da proposta"
|
712
704
|
select_a_category: Selecione uma categoria
|
713
705
|
send: Enviar
|
data/config/locales/pt.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pt:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -42,10 +43,6 @@ pt:
|
|
42
43
|
valuator_role_id: Nome do avaliador
|
43
44
|
errors:
|
44
45
|
models:
|
45
|
-
participatory_text:
|
46
|
-
attributes:
|
47
|
-
document:
|
48
|
-
invalid_document_type: 'Tipo de documento inválido. Os formatos aceites são: %{valid_mime_types}'
|
49
46
|
proposal:
|
50
47
|
attributes:
|
51
48
|
add_documents:
|
@@ -561,7 +558,6 @@ pt:
|
|
561
558
|
all: Todos
|
562
559
|
filter_origin_values:
|
563
560
|
all: Todos
|
564
|
-
citizens: Cidadãos
|
565
561
|
meetings: Reuniões
|
566
562
|
official: Oficial
|
567
563
|
user_groups: Grupos
|
@@ -736,12 +732,8 @@ pt:
|
|
736
732
|
description: As coordenadas serão actualizadas quando clicar no botão ‘pré-visualização’. No entanto, o endereço não será alterado.
|
737
733
|
instructions: Pode mover o ponto no mapa.
|
738
734
|
edit:
|
739
|
-
add_documents: Documentos
|
740
|
-
add_images: Ficheiro
|
741
735
|
attachment_legend: "(Opcional) Adicione um anexo"
|
742
736
|
back: Voltar
|
743
|
-
delete_document: Apagar Documento
|
744
|
-
delete_image: Apagar Imagem
|
745
737
|
gallery_legend: "(Opcional) Adicionar uma imagem ao cartão da proposta"
|
746
738
|
select_a_category: Por favor selecione uma categoria
|
747
739
|
send: Enviar
|
data/config/locales/ro-RO.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ro:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -42,10 +43,6 @@ ro:
|
|
42
43
|
valuator_role_id: Numele evaluatorului
|
43
44
|
errors:
|
44
45
|
models:
|
45
|
-
participatory_text:
|
46
|
-
attributes:
|
47
|
-
document:
|
48
|
-
invalid_document_type: 'Tip de document invalid. Formatele acceptate sunt: %{valid_mime_types}'
|
49
46
|
proposal:
|
50
47
|
attributes:
|
51
48
|
add_documents:
|
@@ -587,9 +584,9 @@ ro:
|
|
587
584
|
all: Toate
|
588
585
|
filter_origin_values:
|
589
586
|
all: Toate
|
590
|
-
citizens: Cetățeni
|
591
587
|
meetings: Întâlniri
|
592
588
|
official: Oficial
|
589
|
+
participants: Participanți
|
593
590
|
user_groups: Grupuri
|
594
591
|
filter_scope_values:
|
595
592
|
all: Toate
|
@@ -765,12 +762,8 @@ ro:
|
|
765
762
|
description: Coordonatele vor fi actualizate când apeși pe butonul 'previzualizează'. Cu toate acestea, adresa nu se schimbă.
|
766
763
|
instructions: Poți muta punctul de pe hartă.
|
767
764
|
edit:
|
768
|
-
add_documents: Documente
|
769
|
-
add_images: Fişier
|
770
765
|
attachment_legend: "(Opțional) Adaugă un atașament"
|
771
766
|
back: Înapoi
|
772
|
-
delete_document: Șterge documentul
|
773
|
-
delete_image: Șterge imaginea
|
774
767
|
gallery_legend: "(Opțional) Adaugă o imagine la cardul de propunere"
|
775
768
|
select_a_category: Te rugăm selectează o categorie
|
776
769
|
send: Trimite
|
data/config/locales/ru.yml
CHANGED
data/config/locales/sk.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sk:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -39,10 +40,6 @@ sk:
|
|
39
40
|
valuator_role_id: Meno hodnotiteľa
|
40
41
|
errors:
|
41
42
|
models:
|
42
|
-
participatory_text:
|
43
|
-
attributes:
|
44
|
-
document:
|
45
|
-
invalid_document_type: 'Neplatný typ dokumentu. Prijateľné formáty sú: %{valid_mime_types} '
|
46
43
|
proposal:
|
47
44
|
attributes:
|
48
45
|
add_documents:
|
@@ -489,7 +486,6 @@ sk:
|
|
489
486
|
all: Všetko
|
490
487
|
filter_origin_values:
|
491
488
|
all: Všetko
|
492
|
-
citizens: Občania
|
493
489
|
meetings: Stretnutie
|
494
490
|
official: Oficiálne
|
495
491
|
user_groups: Skupiny užívateľov
|
@@ -662,7 +658,6 @@ sk:
|
|
662
658
|
many: "%{count} návrhov"
|
663
659
|
other: "%{count} návrhov"
|
664
660
|
edit:
|
665
|
-
add_documents: Dokumenty
|
666
661
|
attachment_legend: "(Voliteľné) Pridanie prílohy"
|
667
662
|
back: Zadná
|
668
663
|
select_a_category: Vyberte kategóriu
|
data/config/locales/sl.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sr:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -109,8 +110,6 @@ sr:
|
|
109
110
|
valuator: Procenjivač
|
110
111
|
valuators: Procenjivači
|
111
112
|
proposals:
|
112
|
-
edit:
|
113
|
-
add_documents: Dokumenti
|
114
113
|
show:
|
115
114
|
back_to_list: Nazad na listu
|
116
115
|
estimated_cost: Procenjen trošak
|
data/config/locales/sv.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sv:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -42,10 +43,6 @@ sv:
|
|
42
43
|
valuator_role_id: Värderarens namn
|
43
44
|
errors:
|
44
45
|
models:
|
45
|
-
participatory_text:
|
46
|
-
attributes:
|
47
|
-
document:
|
48
|
-
invalid_document_type: 'Ogiltig dokumenttyp. Godkända format är: %{valid_mime_types}'
|
49
46
|
proposal:
|
50
47
|
attributes:
|
51
48
|
add_documents:
|
@@ -465,7 +462,7 @@ sv:
|
|
465
462
|
title: Uppdatera förslag
|
466
463
|
update: Uppdatera
|
467
464
|
form:
|
468
|
-
attachment_legend: "(
|
465
|
+
attachment_legend: "(Frivilligt) Lägg till en bilaga"
|
469
466
|
created_in_meeting: Detta förslag kommer från ett möte
|
470
467
|
delete_attachment: Ta bort bilaga
|
471
468
|
select_a_category: Välj en kategori
|
@@ -580,9 +577,9 @@ sv:
|
|
580
577
|
all: Alla
|
581
578
|
filter_origin_values:
|
582
579
|
all: Alla
|
583
|
-
citizens: Medborgare
|
584
580
|
meetings: Möten
|
585
581
|
official: Officiella
|
582
|
+
participants: Deltagare
|
586
583
|
user_groups: Grupper
|
587
584
|
filter_scope_values:
|
588
585
|
all: Alla
|
@@ -623,7 +620,7 @@ sv:
|
|
623
620
|
error: Det gick inte att skapa det gemensamma utkastet
|
624
621
|
success: Det gemensamma utkastet har skapats.
|
625
622
|
edit:
|
626
|
-
attachment_legend: "(
|
623
|
+
attachment_legend: "(Frivilligt) Lägg till en bilaga"
|
627
624
|
back: Tillbaka
|
628
625
|
select_a_category: Välj en kategori
|
629
626
|
send: Skicka
|
@@ -645,6 +642,7 @@ sv:
|
|
645
642
|
filter_by: Filtrera efter
|
646
643
|
unfold: Veckla ut
|
647
644
|
new:
|
645
|
+
add_file: Lägg till fil
|
648
646
|
send: Fortsätt
|
649
647
|
new_collaborative_draft_button:
|
650
648
|
new_collaborative_draft: Nytt gemensamt utkast
|
@@ -755,12 +753,10 @@ sv:
|
|
755
753
|
description: Koordinaterna uppdateras när du klickar på knappen 'Förhandsgranska'. Adressen ändras dock inte.
|
756
754
|
instructions: Nu kan du flytta markören på kartan.
|
757
755
|
edit:
|
758
|
-
add_documents:
|
759
|
-
|
760
|
-
attachment_legend: "(Valfritt) Lägg till en bilaga"
|
756
|
+
add_documents: Lägga till dokument
|
757
|
+
attachment_legend: "(Frivilligt) Lägg till en bilaga"
|
761
758
|
back: Tillbaka
|
762
|
-
|
763
|
-
delete_image: Radera bild
|
759
|
+
edit_documents: Ändra dokument
|
764
760
|
gallery_legend: "(Frivilligt) Lägg till en bild"
|
765
761
|
select_a_category: Välj en kategori
|
766
762
|
send: Skicka
|
data/config/locales/tr-TR.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
tr:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -41,10 +42,6 @@ tr:
|
|
41
42
|
valuator_role_id: Bilirkişi adı
|
42
43
|
errors:
|
43
44
|
models:
|
44
|
-
participatory_text:
|
45
|
-
attributes:
|
46
|
-
document:
|
47
|
-
invalid_document_type: 'Geçersiz doküman tipi. Kabul edilen formatlar: %{valid_mime_types}'
|
48
45
|
proposal:
|
49
46
|
attributes:
|
50
47
|
add_documents:
|
@@ -519,7 +516,6 @@ tr:
|
|
519
516
|
all: Tümü
|
520
517
|
filter_origin_values:
|
521
518
|
all: Tümü
|
522
|
-
citizens: Vatandaşlar
|
523
519
|
meetings: Toplantılar
|
524
520
|
official: Resmi
|
525
521
|
user_groups: Gruplar
|
@@ -690,12 +686,8 @@ tr:
|
|
690
686
|
one: "%{count} teklif"
|
691
687
|
other: "%{count} teklif"
|
692
688
|
edit:
|
693
|
-
add_documents: Dokümanlar
|
694
|
-
add_images: Dosya
|
695
689
|
attachment_legend: "(İsteğe bağlı) Bir ek ekleyin"
|
696
690
|
back: Geri
|
697
|
-
delete_document: Doküman Sil
|
698
|
-
delete_image: Resmi sil
|
699
691
|
gallery_legend: "(İsteğe bağlı) Teklif kartına bir resim ekleyin"
|
700
692
|
select_a_category: Lütfen bir kategori seçin
|
701
693
|
send: Gönder
|
data/config/locales/uk.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
zh-CN:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -38,10 +39,6 @@ zh-CN:
|
|
38
39
|
valuator_role_id: 值名称
|
39
40
|
errors:
|
40
41
|
models:
|
41
|
-
participatory_text:
|
42
|
-
attributes:
|
43
|
-
document:
|
44
|
-
invalid_document_type: '无效的文档类型。接受的格式为: %{valid_mime_types}'
|
45
42
|
proposal:
|
46
43
|
attributes:
|
47
44
|
add_documents:
|
@@ -499,7 +496,6 @@ zh-CN:
|
|
499
496
|
all: 所有的
|
500
497
|
filter_origin_values:
|
501
498
|
all: 所有的
|
502
|
-
citizens: Citizens
|
503
499
|
meetings: 会议
|
504
500
|
official: 官方的
|
505
501
|
user_groups: 群組
|
@@ -664,12 +660,8 @@ zh-CN:
|
|
664
660
|
proposals_count:
|
665
661
|
other: "%{count} 个提议"
|
666
662
|
edit:
|
667
|
-
add_documents: www.un.org/webcast
|
668
|
-
add_images: 文件
|
669
663
|
attachment_legend: "(可选) 添加附件"
|
670
664
|
back: 后退
|
671
|
-
delete_document: 删除文档
|
672
|
-
delete_image: 删除图像
|
673
665
|
gallery_legend: "(可选) 添加图像到提案卡"
|
674
666
|
select_a_category: 请选择一个类别
|
675
667
|
send: 发送
|
@@ -266,26 +266,31 @@ Decidim.register_component(:proposals) do |component|
|
|
266
266
|
visibility: "all"
|
267
267
|
) do
|
268
268
|
proposal = Decidim::Proposals::Proposal.new(params)
|
269
|
-
|
269
|
+
meeting_component = participatory_space.components.find_by(manifest_name: "meetings")
|
270
|
+
|
271
|
+
coauthor = case n
|
272
|
+
when 0
|
273
|
+
Decidim::User.where(decidim_organization_id: participatory_space.decidim_organization_id).order(Arel.sql("RANDOM()")).first
|
274
|
+
when 1
|
275
|
+
Decidim::UserGroup.where(decidim_organization_id: participatory_space.decidim_organization_id).order(Arel.sql("RANDOM()")).first
|
276
|
+
when 2
|
277
|
+
Decidim::Meetings::Meeting.where(component: meeting_component).order(Arel.sql("RANDOM()")).first
|
278
|
+
else
|
279
|
+
participatory_space.organization
|
280
|
+
end
|
281
|
+
proposal.add_coauthor(coauthor)
|
270
282
|
proposal.save!
|
271
283
|
proposal
|
272
284
|
end
|
273
285
|
|
274
|
-
if n.positive?
|
275
|
-
Decidim::User.where(decidim_organization_id: participatory_space.decidim_organization_id).all.sample(n).each do |author|
|
276
|
-
user_group = [true, false].sample ? Decidim::UserGroups::ManageableUserGroups.for(author).verified.sample : nil
|
277
|
-
proposal.add_coauthor(author, user_group: user_group)
|
278
|
-
end
|
279
|
-
end
|
280
|
-
|
281
286
|
if proposal.state.nil?
|
282
287
|
email = "amendment-author-#{participatory_space.underscored_name}-#{participatory_space.id}-#{n}-amend#{n}@example.org"
|
283
288
|
name = "#{Faker::Name.name} #{participatory_space.id} #{n} amend#{n}"
|
284
289
|
|
285
290
|
author = Decidim::User.find_or_initialize_by(email: email)
|
286
291
|
author.update!(
|
287
|
-
password: "
|
288
|
-
password_confirmation: "
|
292
|
+
password: "decidim123456789",
|
293
|
+
password_confirmation: "decidim123456789",
|
289
294
|
name: name,
|
290
295
|
nickname: Faker::Twitter.unique.screen_name,
|
291
296
|
organization: component.organization,
|
@@ -350,8 +355,8 @@ Decidim.register_component(:proposals) do |component|
|
|
350
355
|
|
351
356
|
author = Decidim::User.find_or_initialize_by(email: email)
|
352
357
|
author.update!(
|
353
|
-
password: "
|
354
|
-
password_confirmation: "
|
358
|
+
password: "decidim123456789",
|
359
|
+
password_confirmation: "decidim123456789",
|
355
360
|
name: name,
|
356
361
|
nickname: Faker::Twitter.unique.screen_name,
|
357
362
|
organization: component.organization,
|
@@ -372,8 +377,8 @@ Decidim.register_component(:proposals) do |component|
|
|
372
377
|
|
373
378
|
author = Decidim::User.find_or_initialize_by(email: email)
|
374
379
|
author.update!(
|
375
|
-
password: "
|
376
|
-
password_confirmation: "
|
380
|
+
password: "decidim123456789",
|
381
|
+
password_confirmation: "decidim123456789",
|
377
382
|
name: name,
|
378
383
|
nickname: Faker::Twitter.unique.screen_name,
|
379
384
|
organization: component.organization,
|
@@ -40,26 +40,28 @@ module Decidim
|
|
40
40
|
private
|
41
41
|
|
42
42
|
def resource
|
43
|
-
@resource ||=
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
proposal
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
43
|
+
@resource ||= fetch_resource
|
44
|
+
end
|
45
|
+
|
46
|
+
def fetch_resource
|
47
|
+
proposal = Decidim::Proposals::Proposal.find_by(id: id)
|
48
|
+
return nil unless proposal
|
49
|
+
return nil if proposal.emendation?
|
50
|
+
|
51
|
+
if proposal.component != component
|
52
|
+
proposal.errors.add(:component, :invalid)
|
53
|
+
return proposal
|
54
|
+
end
|
55
|
+
|
56
|
+
proposal.answer = answer
|
57
|
+
proposal.answered_at = Time.current
|
58
|
+
if POSSIBLE_ANSWER_STATES.include?(state)
|
59
|
+
proposal.state = state
|
60
|
+
proposal.state_published_at = Time.current if component.current_settings.publish_answers_immediately?
|
61
|
+
else
|
62
|
+
proposal.errors.add(:state, :invalid)
|
62
63
|
end
|
64
|
+
proposal
|
63
65
|
end
|
64
66
|
|
65
67
|
def id
|
@@ -305,7 +305,7 @@ FactoryBot.define do
|
|
305
305
|
published_at { nil }
|
306
306
|
end
|
307
307
|
|
308
|
-
trait :
|
308
|
+
trait :participant_author do
|
309
309
|
after :build do |proposal|
|
310
310
|
proposal.coauthorships.clear
|
311
311
|
user = build(:user, organization: proposal.component.participatory_space.organization)
|