decidim-initiatives 0.20.1 → 0.21.0
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/controllers/concerns/decidim/initiatives/admin/filterable.rb +37 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +6 -12
- data/app/models/decidim/initiative.rb +18 -1
- data/app/permissions/decidim/initiatives/admin/permissions.rb +10 -6
- data/app/queries/decidim/initiatives/admin/manageable_initiatives.rb +7 -39
- data/app/types/decidim/initiatives/initiative_api_type.rb +26 -0
- data/app/types/decidim/initiatives/initiative_committee_member_type.rb +18 -0
- data/app/types/decidim/initiatives/initiative_type.rb +42 -0
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +3 -43
- data/config/locales/ar.yml +12 -10
- data/config/locales/ca.yml +12 -10
- data/config/locales/cs.yml +14 -12
- data/config/locales/de.yml +10 -10
- data/config/locales/el.yml +1 -0
- data/config/locales/en.yml +12 -10
- data/config/locales/es-MX.yml +12 -10
- data/config/locales/es-PY.yml +12 -10
- data/config/locales/es.yml +12 -10
- data/config/locales/eu.yml +10 -10
- data/config/locales/fi-plain.yml +12 -10
- data/config/locales/fi.yml +12 -10
- data/config/locales/fr.yml +10 -10
- data/config/locales/gl.yml +10 -10
- data/config/locales/hu.yml +12 -10
- data/config/locales/id-ID.yml +10 -10
- data/config/locales/is-IS.yml +10 -10
- data/config/locales/it.yml +12 -10
- data/config/locales/nl.yml +10 -10
- data/config/locales/no.yml +12 -10
- data/config/locales/pl.yml +10 -10
- data/config/locales/pt-BR.yml +10 -10
- data/config/locales/pt.yml +10 -10
- data/config/locales/ru.yml +10 -10
- data/config/locales/sv.yml +10 -10
- data/config/locales/tr-TR.yml +10 -10
- data/config/locales/uk.yml +10 -10
- data/lib/decidim/api/initiative_type_interface.rb +13 -0
- data/lib/decidim/initiatives/api.rb +7 -0
- data/lib/decidim/initiatives/engine.rb +8 -0
- data/lib/decidim/initiatives/participatory_space.rb +2 -0
- data/lib/decidim/initiatives/query_extensions.rb +40 -0
- data/lib/decidim/initiatives/version.rb +1 -1
- metadata +20 -13
- data/app/views/decidim/initiatives/initiative_widgets/show.html.erb +0 -4
data/config/locales/id-ID.yml
CHANGED
@@ -57,6 +57,16 @@ id:
|
|
57
57
|
admin:
|
58
58
|
actions:
|
59
59
|
new_initiative_type: Jenis inisiatif baru
|
60
|
+
filters:
|
61
|
+
state_eq:
|
62
|
+
label: Negara
|
63
|
+
values:
|
64
|
+
accepted: Diterima
|
65
|
+
created: Dibuat
|
66
|
+
discarded: Dibuang
|
67
|
+
published: Diterbitkan
|
68
|
+
rejected: Ditolak
|
69
|
+
validating: Validasi teknis
|
60
70
|
menu:
|
61
71
|
initiatives: Inisiatif
|
62
72
|
initiatives_types: Jenis inisiatif
|
@@ -172,18 +182,8 @@ id:
|
|
172
182
|
title: Informasi Umum
|
173
183
|
index:
|
174
184
|
actions_title: Tindakan
|
175
|
-
filter:
|
176
|
-
accepted: Diterima
|
177
|
-
all: Semua
|
178
|
-
created: Dibuat
|
179
|
-
discarded: Dibuang
|
180
|
-
published: Diterbitkan
|
181
|
-
rejected: Ditolak
|
182
|
-
validating: Validasi teknis
|
183
|
-
filter_by: Filter berdasarkan
|
184
185
|
preview: Preview
|
185
186
|
print: Mencetak
|
186
|
-
search: Pencarian
|
187
187
|
show:
|
188
188
|
print: Mencetak
|
189
189
|
update:
|
data/config/locales/is-IS.yml
CHANGED
@@ -27,6 +27,16 @@ is-IS:
|
|
27
27
|
name: Heill heiti
|
28
28
|
decidim:
|
29
29
|
admin:
|
30
|
+
filters:
|
31
|
+
state_eq:
|
32
|
+
label: Ríki
|
33
|
+
values:
|
34
|
+
accepted: Samþykkt
|
35
|
+
created: Búið til
|
36
|
+
discarded: Fargað
|
37
|
+
published: Published
|
38
|
+
rejected: Hafnað
|
39
|
+
validating: Tæknilegar staðfestingar
|
30
40
|
menu:
|
31
41
|
initiatives: Frumkvæði
|
32
42
|
initiatives_types: Frumgerð tegundir
|
@@ -72,18 +82,8 @@ is-IS:
|
|
72
82
|
title: Almennar upplýsingar
|
73
83
|
index:
|
74
84
|
actions_title: Aðgerð
|
75
|
-
filter:
|
76
|
-
accepted: Samþykkt
|
77
|
-
all: Allt
|
78
|
-
created: Búið til
|
79
|
-
discarded: Fargað
|
80
|
-
published: Published
|
81
|
-
rejected: Hafnað
|
82
|
-
validating: Tæknilegar staðfestingar
|
83
|
-
filter_by: Sía eftir
|
84
85
|
preview: Preview
|
85
86
|
print: Prenta
|
86
|
-
search: Leita
|
87
87
|
show:
|
88
88
|
print: Prenta
|
89
89
|
update:
|
data/config/locales/it.yml
CHANGED
@@ -61,6 +61,18 @@ it:
|
|
61
61
|
admin:
|
62
62
|
actions:
|
63
63
|
new_initiative_type: Nuovo tipo di iniziativa
|
64
|
+
filters:
|
65
|
+
search_placeholder:
|
66
|
+
title_or_description_cont: Cerca %{collection} per titolo o descrizione.
|
67
|
+
state_eq:
|
68
|
+
label: Stato
|
69
|
+
values:
|
70
|
+
accepted: Accettato
|
71
|
+
created: Creato
|
72
|
+
discarded: Discarded
|
73
|
+
published: Pubblicato
|
74
|
+
rejected: Respinto
|
75
|
+
validating: Convalida tecnica
|
64
76
|
menu:
|
65
77
|
initiatives: iniziative
|
66
78
|
initiatives_types: Tipi di iniziativa
|
@@ -176,18 +188,8 @@ it:
|
|
176
188
|
title: Informazione generale
|
177
189
|
index:
|
178
190
|
actions_title: Azione
|
179
|
-
filter:
|
180
|
-
accepted: Accettato
|
181
|
-
all: Tutti
|
182
|
-
created: Creato
|
183
|
-
discarded: Discarded
|
184
|
-
published: Pubblicato
|
185
|
-
rejected: Respinto
|
186
|
-
validating: Convalida tecnica
|
187
|
-
filter_by: Filtra per
|
188
191
|
preview: Anteprima
|
189
192
|
print: Stampare
|
190
|
-
search: Ricerca
|
191
193
|
show:
|
192
194
|
print: Stampare
|
193
195
|
update:
|
data/config/locales/nl.yml
CHANGED
@@ -61,6 +61,16 @@ nl:
|
|
61
61
|
admin:
|
62
62
|
actions:
|
63
63
|
new_initiative_type: Nieuw initiatiefstype
|
64
|
+
filters:
|
65
|
+
state_eq:
|
66
|
+
label: Status
|
67
|
+
values:
|
68
|
+
accepted: Aanvaard
|
69
|
+
created: gemaakt
|
70
|
+
discarded: Afgedankte
|
71
|
+
published: Gepubliceerd
|
72
|
+
rejected: Afgewezen
|
73
|
+
validating: Technische validatie
|
64
74
|
menu:
|
65
75
|
initiatives: initiatieven
|
66
76
|
initiatives_types: Initiatieftypes
|
@@ -176,18 +186,8 @@ nl:
|
|
176
186
|
title: Algemene informatie
|
177
187
|
index:
|
178
188
|
actions_title: Actie
|
179
|
-
filter:
|
180
|
-
accepted: Aanvaard
|
181
|
-
all: Alle
|
182
|
-
created: gemaakt
|
183
|
-
discarded: Afgedankte
|
184
|
-
published: Gepubliceerd
|
185
|
-
rejected: Afgewezen
|
186
|
-
validating: Technische validatie
|
187
|
-
filter_by: Sorteer op
|
188
189
|
preview: Voorbeeld
|
189
190
|
print: Afdrukken
|
190
|
-
search: Zoeken
|
191
191
|
show:
|
192
192
|
print: Afdrukken
|
193
193
|
update:
|
data/config/locales/no.yml
CHANGED
@@ -61,6 +61,18 @@
|
|
61
61
|
admin:
|
62
62
|
actions:
|
63
63
|
new_initiative_type: Ny intiativtype
|
64
|
+
filters:
|
65
|
+
search_placeholder:
|
66
|
+
title_or_description_cont: Søk %{collection} etter tittel eller beskrivelse.
|
67
|
+
state_eq:
|
68
|
+
label: Stat
|
69
|
+
values:
|
70
|
+
accepted: Aksepterte
|
71
|
+
created: Opprettet
|
72
|
+
discarded: Forkastet
|
73
|
+
published: Publisert
|
74
|
+
rejected: Avvist
|
75
|
+
validating: Teknisk validering
|
64
76
|
menu:
|
65
77
|
initiatives: Initiativer
|
66
78
|
initiatives_types: Initiativtyper
|
@@ -176,18 +188,8 @@
|
|
176
188
|
title: Generell informasjon
|
177
189
|
index:
|
178
190
|
actions_title: Handling
|
179
|
-
filter:
|
180
|
-
accepted: Aksepterte
|
181
|
-
all: Alle
|
182
|
-
created: Opprettet
|
183
|
-
discarded: Forkastet
|
184
|
-
published: Publisert
|
185
|
-
rejected: Avvist
|
186
|
-
validating: Teknisk validering
|
187
|
-
filter_by: Filtrer etter
|
188
191
|
preview: Forhåndsvis
|
189
192
|
print: Skriv ut
|
190
|
-
search: Søk
|
191
193
|
show:
|
192
194
|
print: Skriv ut
|
193
195
|
update:
|
data/config/locales/pl.yml
CHANGED
@@ -66,6 +66,16 @@ pl:
|
|
66
66
|
admin:
|
67
67
|
actions:
|
68
68
|
new_initiative_type: Nowy typ inicjatywy
|
69
|
+
filters:
|
70
|
+
state_eq:
|
71
|
+
label: Stan
|
72
|
+
values:
|
73
|
+
accepted: Przyjęty
|
74
|
+
created: Stworzony
|
75
|
+
discarded: Odrzucona
|
76
|
+
published: Opublikowany
|
77
|
+
rejected: Odrzucono
|
78
|
+
validating: Walidacja techniczna
|
69
79
|
menu:
|
70
80
|
initiatives: Inicjatywy
|
71
81
|
initiatives_types: Rodzaje inicjatyw
|
@@ -181,18 +191,8 @@ pl:
|
|
181
191
|
title: Informacje ogólne
|
182
192
|
index:
|
183
193
|
actions_title: Akcja
|
184
|
-
filter:
|
185
|
-
accepted: Przyjęty
|
186
|
-
all: Wszystko
|
187
|
-
created: Stworzony
|
188
|
-
discarded: Odrzucona
|
189
|
-
published: Opublikowany
|
190
|
-
rejected: Odrzucono
|
191
|
-
validating: Walidacja techniczna
|
192
|
-
filter_by: Filtruj według
|
193
194
|
preview: Zapowiedź
|
194
195
|
print: Wydrukować
|
195
|
-
search: Szukaj
|
196
196
|
show:
|
197
197
|
print: Wydrukować
|
198
198
|
update:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -60,6 +60,16 @@ pt-BR:
|
|
60
60
|
admin:
|
61
61
|
actions:
|
62
62
|
new_initiative_type: Novo tipo de iniciativa
|
63
|
+
filters:
|
64
|
+
state_eq:
|
65
|
+
label: Estado
|
66
|
+
values:
|
67
|
+
accepted: Aceitaram
|
68
|
+
created: Criada
|
69
|
+
discarded: Descartado
|
70
|
+
published: Publicados
|
71
|
+
rejected: Rejeitado
|
72
|
+
validating: Validação técnica
|
63
73
|
menu:
|
64
74
|
initiatives: Iniciativas
|
65
75
|
initiatives_types: Tipos de iniciativa
|
@@ -175,18 +185,8 @@ pt-BR:
|
|
175
185
|
title: Informação geral
|
176
186
|
index:
|
177
187
|
actions_title: Açao
|
178
|
-
filter:
|
179
|
-
accepted: Aceitaram
|
180
|
-
all: Todos
|
181
|
-
created: Criada
|
182
|
-
discarded: Descartado
|
183
|
-
published: Publicados
|
184
|
-
rejected: Rejeitado
|
185
|
-
validating: Validação técnica
|
186
|
-
filter_by: Filtrar por
|
187
188
|
preview: Visualizar
|
188
189
|
print: Impressão
|
189
|
-
search: Pesquisa
|
190
190
|
show:
|
191
191
|
print: Impressão
|
192
192
|
update:
|
data/config/locales/pt.yml
CHANGED
@@ -60,6 +60,16 @@ pt:
|
|
60
60
|
admin:
|
61
61
|
actions:
|
62
62
|
new_initiative_type: Novo tipo de iniciativa
|
63
|
+
filters:
|
64
|
+
state_eq:
|
65
|
+
label: Estado
|
66
|
+
values:
|
67
|
+
accepted: Aceitaram
|
68
|
+
created: Criada
|
69
|
+
discarded: Descartado
|
70
|
+
published: Publicados
|
71
|
+
rejected: Rejeitado
|
72
|
+
validating: Validação técnica
|
63
73
|
menu:
|
64
74
|
initiatives: Iniciativas
|
65
75
|
initiatives_types: Tipos de iniciativa
|
@@ -175,18 +185,8 @@ pt:
|
|
175
185
|
title: Informação geral
|
176
186
|
index:
|
177
187
|
actions_title: Açao
|
178
|
-
filter:
|
179
|
-
accepted: Aceitaram
|
180
|
-
all: Todos
|
181
|
-
created: Criada
|
182
|
-
discarded: Descartado
|
183
|
-
published: Publicados
|
184
|
-
rejected: Rejeitado
|
185
|
-
validating: Validação técnica
|
186
|
-
filter_by: Filtrar por
|
187
188
|
preview: Visualizar
|
188
189
|
print: Impressão
|
189
|
-
search: Pesquisa
|
190
190
|
show:
|
191
191
|
print: Impressão
|
192
192
|
update:
|
data/config/locales/ru.yml
CHANGED
@@ -53,6 +53,16 @@ ru:
|
|
53
53
|
admin:
|
54
54
|
actions:
|
55
55
|
new_initiative_type: Добавить вид почина
|
56
|
+
filters:
|
57
|
+
state_eq:
|
58
|
+
label: Cостояние
|
59
|
+
values:
|
60
|
+
accepted: Принятые
|
61
|
+
created: Созданные
|
62
|
+
discarded: Отброшенные
|
63
|
+
published: Обнародовано
|
64
|
+
rejected: Отклоненные
|
65
|
+
validating: Техническая проверка
|
56
66
|
menu:
|
57
67
|
initiatives: Почины
|
58
68
|
initiatives_types: Виды починов
|
@@ -117,18 +127,8 @@ ru:
|
|
117
127
|
title: Общие сведения
|
118
128
|
index:
|
119
129
|
actions_title: Действие
|
120
|
-
filter:
|
121
|
-
accepted: Принятые
|
122
|
-
all: Все
|
123
|
-
created: Созданные
|
124
|
-
discarded: Отброшенные
|
125
|
-
published: Обнародовано
|
126
|
-
rejected: Отклоненные
|
127
|
-
validating: Техническая проверка
|
128
|
-
filter_by: 'Отобрать по признаку:'
|
129
130
|
preview: Предпросмотр
|
130
131
|
print: Распечатать
|
131
|
-
search: Поиск
|
132
132
|
show:
|
133
133
|
print: Распечатать
|
134
134
|
update:
|
data/config/locales/sv.yml
CHANGED
@@ -60,6 +60,16 @@ sv:
|
|
60
60
|
admin:
|
61
61
|
actions:
|
62
62
|
new_initiative_type: Ny initiativtyp
|
63
|
+
filters:
|
64
|
+
state_eq:
|
65
|
+
label: Status
|
66
|
+
values:
|
67
|
+
accepted: Godkända
|
68
|
+
created: Skapad
|
69
|
+
discarded: Förkastade
|
70
|
+
published: Publicerade
|
71
|
+
rejected: Avvisade
|
72
|
+
validating: Teknisk validering
|
63
73
|
menu:
|
64
74
|
initiatives: Initiativ
|
65
75
|
initiatives_types: Initiativtyper
|
@@ -175,18 +185,8 @@ sv:
|
|
175
185
|
title: Allmän information
|
176
186
|
index:
|
177
187
|
actions_title: Åtgärd
|
178
|
-
filter:
|
179
|
-
accepted: Godkända
|
180
|
-
all: Alla
|
181
|
-
created: Skapad
|
182
|
-
discarded: Förkastade
|
183
|
-
published: Publicerade
|
184
|
-
rejected: Avvisade
|
185
|
-
validating: Teknisk validering
|
186
|
-
filter_by: Filtrera efter
|
187
188
|
preview: Förhandsvisning
|
188
189
|
print: Skriv ut
|
189
|
-
search: Sök
|
190
190
|
show:
|
191
191
|
print: Skriv ut
|
192
192
|
update:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -60,6 +60,16 @@ tr:
|
|
60
60
|
admin:
|
61
61
|
actions:
|
62
62
|
new_initiative_type: Yeni girişim türü
|
63
|
+
filters:
|
64
|
+
state_eq:
|
65
|
+
label: Belirtmek, bildirmek
|
66
|
+
values:
|
67
|
+
accepted: Kabul edilmiş
|
68
|
+
created: düzenlendi
|
69
|
+
discarded: Atılan
|
70
|
+
published: Yayınlanan
|
71
|
+
rejected: Reddedilen
|
72
|
+
validating: Teknik doğrulama
|
63
73
|
menu:
|
64
74
|
initiatives: Girişimler
|
65
75
|
initiatives_types: Girişim türleri
|
@@ -175,18 +185,8 @@ tr:
|
|
175
185
|
title: Genel bilgi
|
176
186
|
index:
|
177
187
|
actions_title: Aksiyon
|
178
|
-
filter:
|
179
|
-
accepted: Kabul edilmiş
|
180
|
-
all: Herşey
|
181
|
-
created: düzenlendi
|
182
|
-
discarded: Atılan
|
183
|
-
published: Yayınlanan
|
184
|
-
rejected: Reddedilen
|
185
|
-
validating: Teknik doğrulama
|
186
|
-
filter_by: Tarafından filtre
|
187
188
|
preview: Ön izleme
|
188
189
|
print: baskı
|
189
|
-
search: Arama
|
190
190
|
show:
|
191
191
|
print: baskı
|
192
192
|
update:
|
data/config/locales/uk.yml
CHANGED
@@ -53,6 +53,16 @@ uk:
|
|
53
53
|
admin:
|
54
54
|
actions:
|
55
55
|
new_initiative_type: Додати різновид почину
|
56
|
+
filters:
|
57
|
+
state_eq:
|
58
|
+
label: Стан
|
59
|
+
values:
|
60
|
+
accepted: Прийняті
|
61
|
+
created: Створені
|
62
|
+
discarded: Відкинуті
|
63
|
+
published: Оприлюднено
|
64
|
+
rejected: Відхилені
|
65
|
+
validating: Технічна перевірка
|
56
66
|
menu:
|
57
67
|
initiatives: Почини
|
58
68
|
initiatives_types: Різновиди починів
|
@@ -117,18 +127,8 @@ uk:
|
|
117
127
|
title: Загальні відомості
|
118
128
|
index:
|
119
129
|
actions_title: Дія
|
120
|
-
filter:
|
121
|
-
accepted: Прийняті
|
122
|
-
all: Усі
|
123
|
-
created: Створені
|
124
|
-
discarded: Відкинуті
|
125
|
-
published: Оприлюднено
|
126
|
-
rejected: Відхилені
|
127
|
-
validating: Технічна перевірка
|
128
|
-
filter_by: 'Відібрати за ознакою:'
|
129
130
|
preview: Попередній перегляд
|
130
131
|
print: Друк
|
131
|
-
search: Шукати
|
132
132
|
show:
|
133
133
|
print: Друк
|
134
134
|
update:
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Initiatives
|
5
|
+
# This interface represents a commentable object.
|
6
|
+
InitiativeTypeInterface = GraphQL::InterfaceType.define do
|
7
|
+
name "InitiativeTypeInterface"
|
8
|
+
description "An interface that can be used in Initiative objects."
|
9
|
+
|
10
|
+
field :initiativeType, Decidim::Initiatives::InitiativeApiType, "The object's initiative type", property: :type
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|