decidim-verifications 0.16.1 → 0.17.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/commands/decidim/verifications/csv_census/admin/create_census_data.rb +32 -0
- data/app/commands/decidim/verifications/csv_census/confirm_census_authorization.rb +20 -0
- data/app/controllers/decidim/verifications/csv_census/admin/census_controller.rb +68 -0
- data/app/controllers/decidim/verifications/csv_census/authorizations_controller.rb +39 -0
- data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +16 -2
- data/app/forms/decidim/verifications/csv_census/admin/census_data_form.rb +20 -0
- data/app/forms/decidim/verifications/csv_census/census_form.rb +32 -0
- data/app/jobs/decidim/verifications/csv_census/application_job.rb +10 -0
- data/app/jobs/decidim/verifications/csv_census/remove_duplicates_job.rb +30 -0
- data/app/models/decidim/verifications/application_record.rb +9 -0
- data/app/models/decidim/verifications/csv_census/data.rb +41 -0
- data/app/models/decidim/verifications/csv_census/status.rb +24 -0
- data/app/models/decidim/verifications/csv_datum.rb +29 -0
- data/app/permissions/decidim/verifications/csv_census/admin/permissions.rb +19 -0
- data/app/views/decidim/verifications/authorizations/_granted_authorization.html.erb +1 -1
- data/app/views/decidim/verifications/authorizations/index.html.erb +1 -1
- data/app/views/decidim/verifications/csv_census/admin/census/index.html.erb +37 -0
- data/app/views/decidim/verifications/csv_census/admin/census/instructions.html.erb +10 -0
- data/app/views/decidim/verifications/sms/authorizations/edit.html.erb +10 -1
- data/app/views/decidim/verifications/sms/authorizations/new.html.erb +1 -1
- data/config/locales/ar-SA.yml +68 -5
- data/config/locales/ca.yml +54 -14
- data/config/locales/cs-CZ.yml +36 -0
- data/config/locales/cs.yml +230 -0
- data/config/locales/de.yml +41 -1
- data/config/locales/en.yml +65 -24
- data/config/locales/es-MX.yml +42 -2
- data/config/locales/es-PY.yml +42 -2
- data/config/locales/es.yml +56 -16
- data/config/locales/eu.yml +41 -1
- data/config/locales/fi-pl.yml +36 -0
- data/config/locales/fi-plain.yml +228 -0
- data/config/locales/fi.yml +50 -10
- data/config/locales/fr.yml +41 -1
- data/config/locales/gl.yml +41 -1
- data/config/locales/hu.yml +42 -2
- data/config/locales/id-ID.yml +41 -1
- data/config/locales/it.yml +41 -1
- data/config/locales/nl.yml +41 -1
- data/config/locales/pl.yml +41 -1
- data/config/locales/pt-BR.yml +41 -1
- data/config/locales/pt.yml +41 -1
- data/config/locales/ru.yml +0 -3
- data/config/locales/sv.yml +41 -1
- data/config/locales/tr-TR.yml +41 -1
- data/config/locales/uk.yml +0 -3
- data/db/migrate/20181227135423_create_decidim_verifications_csv_data.rb +12 -0
- data/lib/decidim/verifications.rb +1 -0
- data/lib/decidim/verifications/adapter.rb +13 -1
- data/lib/decidim/verifications/csv_census.rb +6 -0
- data/lib/decidim/verifications/csv_census/admin.rb +10 -0
- data/lib/decidim/verifications/csv_census/admin_engine.rb +23 -0
- data/lib/decidim/verifications/csv_census/engine.rb +19 -0
- data/lib/decidim/verifications/csv_census/workflow.rb +6 -0
- data/lib/decidim/verifications/default_action_authorizer.rb +11 -4
- data/lib/decidim/verifications/sms/engine.rb +1 -1
- data/lib/decidim/verifications/test/factories.rb +11 -0
- data/lib/decidim/verifications/version.rb +1 -1
- metadata +31 -7
data/config/locales/pt-BR.yml
CHANGED
@@ -34,6 +34,10 @@ pt-BR:
|
|
34
34
|
grant_id_documents_offline_verification: "%{user_name} verificado %{resource_name} usando uma verificação de documentos de identidade off-line"
|
35
35
|
authorization_handlers:
|
36
36
|
admin:
|
37
|
+
csv_census:
|
38
|
+
help:
|
39
|
+
- Administra o upload de um arquivo CSV com os e-mails dos participantes aceitos
|
40
|
+
- Somente participantes com um e-mail nesse arquivo CSV podem ser verificados
|
37
41
|
id_documents:
|
38
42
|
help:
|
39
43
|
- Os usuários preenchem suas informações de identidade e carregam uma cópia do documento.
|
@@ -46,6 +50,9 @@ pt-BR:
|
|
46
50
|
- Você envia a carta para seu endereço com o código de verificação.
|
47
51
|
- Você marca a carta como enviada.
|
48
52
|
- Depois de marcar a carta como enviada, o usuário poderá introduzir o código e ser verificado.
|
53
|
+
csv_census:
|
54
|
+
explanation: Seja verificado usando o censo da organização
|
55
|
+
name: Recenseamento da organização
|
49
56
|
direct: Direto
|
50
57
|
help: Ajuda
|
51
58
|
id_documents:
|
@@ -65,6 +72,7 @@ pt-BR:
|
|
65
72
|
first_login:
|
66
73
|
actions:
|
67
74
|
another_dummy_authorization_handler: Verificar contra outro exemplo de manipulador de autorização
|
75
|
+
csv_census: Verifique o censo da organização
|
68
76
|
dummy_authorization_handler: Verifique contra o manipulador de autorização de exemplo
|
69
77
|
dummy_authorization_workflow: Verifique o exemplo de fluxo de trabalho de autorização
|
70
78
|
id_documents: Seja verificado ao fazer o upload do documento de identidade
|
@@ -76,6 +84,33 @@ pt-BR:
|
|
76
84
|
authorize_with: Verifique com %{authorizer}
|
77
85
|
skip_verification: Você pode ignorar isso por enquanto e %{link}
|
78
86
|
start_exploring: comece a explorar
|
87
|
+
csv_census:
|
88
|
+
admin:
|
89
|
+
census:
|
90
|
+
create:
|
91
|
+
error: Ocorreu um erro ao importar o censo.
|
92
|
+
success: Itens importados com sucesso %{count} (%{errors} erros)
|
93
|
+
destroy_all:
|
94
|
+
success: Todos os dados do censo foram excluídos
|
95
|
+
destroy:
|
96
|
+
confirm: Excluir todo o censo não pode ser desfeito. Você tem certeza que quer continuar?
|
97
|
+
title: Excluir todos os dados do censo
|
98
|
+
index:
|
99
|
+
data: Existem %{count} registros carregados no total. A última data de envio foi em %{due_date}
|
100
|
+
empty: Não há dados do censo. Use o formulário abaixo para importá-lo usando um arquivo CSV.
|
101
|
+
title: Dados do censo atual
|
102
|
+
instructions:
|
103
|
+
body: Para fazer isso, você deve entrar na administração do sistema e adicionar as autorizações csv_census à organização
|
104
|
+
title: Você precisa ativar o censo csv para esta organização
|
105
|
+
new:
|
106
|
+
file: "arquivo .csv com dados de e-mails"
|
107
|
+
info: 'Deve ser um arquivo com formato CSV com uma coluna: email'
|
108
|
+
submit: Subir arquivo
|
109
|
+
title: Carregar um novo censo
|
110
|
+
authorizations:
|
111
|
+
new:
|
112
|
+
error: Não foi possível confirmar sua conta ou você não está no censo da organização.
|
113
|
+
success: Sua conta foi confirmada com sucesso.
|
79
114
|
dummy_authorization:
|
80
115
|
extra_explanation:
|
81
116
|
one: A participação é restrita aos usuários com o código postal %{postal_codes}.
|
@@ -116,7 +151,7 @@ pt-BR:
|
|
116
151
|
success: Verificação rejeitada. O usuário será solicitado a alterar seus documentos
|
117
152
|
authorizations:
|
118
153
|
choose:
|
119
|
-
choose_a_type:
|
154
|
+
choose_a_type: 'Por favor, selecione como deseja ser verificado:'
|
120
155
|
offline: desligada
|
121
156
|
online: Conectados
|
122
157
|
title: Confirme-se usando seu documento de identidade
|
@@ -174,7 +209,12 @@ pt-BR:
|
|
174
209
|
create:
|
175
210
|
error: Houve um problema com o seu pedido
|
176
211
|
success: Obrigado! Enviamos um SMS para o seu telefone.
|
212
|
+
destroy:
|
213
|
+
success: O código de verificação foi redefinido com sucesso. Por favor, digite novamente o seu número de telefone.
|
177
214
|
edit:
|
215
|
+
confirm_destroy: Tem certeza de que deseja redefinir o código de verificação?
|
216
|
+
destroy: Redefinir código de verificação
|
217
|
+
resend: Não recebeu o código de verificação?
|
178
218
|
send: confirme
|
179
219
|
title: Introduza o código de verificação recebido
|
180
220
|
new:
|
data/config/locales/pt.yml
CHANGED
@@ -34,6 +34,10 @@ pt:
|
|
34
34
|
grant_id_documents_offline_verification: "%{user_name} verificado %{resource_name} usando uma verificação de documentos de identidade off-line"
|
35
35
|
authorization_handlers:
|
36
36
|
admin:
|
37
|
+
csv_census:
|
38
|
+
help:
|
39
|
+
- Administra o upload de um arquivo CSV com os e-mails dos participantes aceitos
|
40
|
+
- Somente participantes com um e-mail nesse arquivo CSV podem ser verificados
|
37
41
|
id_documents:
|
38
42
|
help:
|
39
43
|
- Os usuários preenchem suas informações de identidade e carregam uma cópia do documento.
|
@@ -46,6 +50,9 @@ pt:
|
|
46
50
|
- Você envia a carta para seu endereço com o código de verificação.
|
47
51
|
- Você marca a carta como enviada.
|
48
52
|
- Depois de marcar a carta como enviada, o usuário poderá introduzir o código e ser verificado.
|
53
|
+
csv_census:
|
54
|
+
explanation: Seja verificado usando o censo da organização
|
55
|
+
name: Recenseamento da organização
|
49
56
|
direct: Direto
|
50
57
|
help: Socorro
|
51
58
|
id_documents:
|
@@ -65,6 +72,7 @@ pt:
|
|
65
72
|
first_login:
|
66
73
|
actions:
|
67
74
|
another_dummy_authorization_handler: Verificar contra outro exemplo de manipulador de autorização
|
75
|
+
csv_census: Verifique o censo da organização
|
68
76
|
dummy_authorization_handler: Verifique contra o manipulador de autorização de exemplo
|
69
77
|
dummy_authorization_workflow: Verifique o exemplo de fluxo de trabalho de autorização
|
70
78
|
id_documents: Seja verificado ao fazer o upload do documento de identidade
|
@@ -76,6 +84,33 @@ pt:
|
|
76
84
|
authorize_with: Verifique com %{authorizer}
|
77
85
|
skip_verification: Você pode ignorar isso por enquanto e %{link}
|
78
86
|
start_exploring: comece a explorar
|
87
|
+
csv_census:
|
88
|
+
admin:
|
89
|
+
census:
|
90
|
+
create:
|
91
|
+
error: Ocorreu um erro ao importar o censo.
|
92
|
+
success: Itens importados com sucesso %{count} (%{errors} erros)
|
93
|
+
destroy_all:
|
94
|
+
success: Todos os dados do censo foram excluídos
|
95
|
+
destroy:
|
96
|
+
confirm: Excluir todo o censo não pode ser desfeito. Você tem certeza que quer continuar?
|
97
|
+
title: Excluir todos os dados do censo
|
98
|
+
index:
|
99
|
+
data: Existem %{count} registros carregados no total. A última data de envio foi em %{due_date}
|
100
|
+
empty: Não há dados do censo. Use o formulário abaixo para importá-lo usando um arquivo CSV.
|
101
|
+
title: Dados do censo atual
|
102
|
+
instructions:
|
103
|
+
body: Para fazer isso, você deve entrar na administração do sistema e adicionar as autorizações csv_census à organização
|
104
|
+
title: Você precisa ativar o censo csv para esta organização
|
105
|
+
new:
|
106
|
+
file: "arquivo .csv com dados de e-mails"
|
107
|
+
info: 'Deve ser um arquivo com formato CSV com uma coluna: email'
|
108
|
+
submit: Subir arquivo
|
109
|
+
title: Carregar um novo censo
|
110
|
+
authorizations:
|
111
|
+
new:
|
112
|
+
error: Não foi possível confirmar sua conta ou você não está no censo da organização.
|
113
|
+
success: Sua conta foi confirmada com sucesso.
|
79
114
|
dummy_authorization:
|
80
115
|
extra_explanation:
|
81
116
|
one: A participação é restrita aos usuários com o código postal %{postal_codes}.
|
@@ -116,7 +151,7 @@ pt:
|
|
116
151
|
success: Verificação rejeitada. O usuário será solicitado a alterar seus documentos
|
117
152
|
authorizations:
|
118
153
|
choose:
|
119
|
-
choose_a_type:
|
154
|
+
choose_a_type: 'Por favor, selecione como deseja ser verificado:'
|
120
155
|
offline: desligada
|
121
156
|
online: Conectados
|
122
157
|
title: Confirme-se usando seu documento de identidade
|
@@ -174,7 +209,12 @@ pt:
|
|
174
209
|
create:
|
175
210
|
error: Houve um problema com o seu pedido
|
176
211
|
success: Obrigado! Enviamos um SMS para o seu telefone.
|
212
|
+
destroy:
|
213
|
+
success: O código de verificação foi redefinido com sucesso. Por favor, digite novamente o seu número de telefone.
|
177
214
|
edit:
|
215
|
+
confirm_destroy: Tem certeza de que deseja redefinir o código de verificação?
|
216
|
+
destroy: Redefinir código de verificação
|
217
|
+
resend: Não recebeu o código de verificação?
|
178
218
|
send: confirme
|
179
219
|
title: Introduza o código de verificação recebido
|
180
220
|
new:
|
data/config/locales/ru.yml
CHANGED
@@ -79,9 +79,6 @@ ru:
|
|
79
79
|
introduce_user_data: Введите данные на картинке
|
80
80
|
reject: Отклонить
|
81
81
|
verify: Подтвердить личность
|
82
|
-
offline_confirmations:
|
83
|
-
create:
|
84
|
-
success: Литчность участника успешно подтверждена
|
85
82
|
pending_authorizations:
|
86
83
|
index:
|
87
84
|
title: Подтверждения, ожидающие рассмотрения
|
data/config/locales/sv.yml
CHANGED
@@ -34,6 +34,10 @@ sv:
|
|
34
34
|
grant_id_documents_offline_verification: "%{user_name} verifierad %{resource_name} hjälp av en offline ID-dokument verifiering"
|
35
35
|
authorization_handlers:
|
36
36
|
admin:
|
37
|
+
csv_census:
|
38
|
+
help:
|
39
|
+
- Admins laddar upp en CSV med e-postadresserna till de accepterade deltagarna
|
40
|
+
- Endast deltagare med ett e-postmeddelande i den CSV-filen kan verifieras
|
37
41
|
id_documents:
|
38
42
|
help:
|
39
43
|
- Användare fyller i sin identitetsinformation och laddar upp en kopia av deras dokument.
|
@@ -46,6 +50,9 @@ sv:
|
|
46
50
|
- Du skickar brevet till deras adress med verifieringskoden.
|
47
51
|
- Du markerar brevet som skickat.
|
48
52
|
- När du markerar brevet som skickat kommer användaren att kunna införa koden och bli verifierad.
|
53
|
+
csv_census:
|
54
|
+
explanation: Få verifierad med hjälp av organisationens folkräkning
|
55
|
+
name: Organisationens folkräkning
|
49
56
|
direct: Direkt
|
50
57
|
help: Hjälp
|
51
58
|
id_documents:
|
@@ -65,6 +72,7 @@ sv:
|
|
65
72
|
first_login:
|
66
73
|
actions:
|
67
74
|
another_dummy_authorization_handler: Verifiera mot ett annat exempel på behörighetshanteraren
|
75
|
+
csv_census: Verifiera mot organisationens folkräkning
|
68
76
|
dummy_authorization_handler: Verifiera mot exempel av behörighetshanterare
|
69
77
|
dummy_authorization_workflow: Verifiera mot exemplet på arbetsflöde för auktorisering
|
70
78
|
id_documents: Bli verifierad genom att ladda upp ditt identitetsdokument
|
@@ -76,6 +84,33 @@ sv:
|
|
76
84
|
authorize_with: Verifiera med %{authorizer}
|
77
85
|
skip_verification: Du kan hoppa över det här för tillfället och %{link}
|
78
86
|
start_exploring: börja utforska
|
87
|
+
csv_census:
|
88
|
+
admin:
|
89
|
+
census:
|
90
|
+
create:
|
91
|
+
error: Det gick inte att importera folkräkning.
|
92
|
+
success: Har importerat %{count} objekt (%{errors} fel)
|
93
|
+
destroy_all:
|
94
|
+
success: Alla folkräkningsuppgifter har tagits bort
|
95
|
+
destroy:
|
96
|
+
confirm: Radera hela folkräkningen kan inte ångras. Är du säker på att du vill fortsätta?
|
97
|
+
title: Radera alla mätdata
|
98
|
+
index:
|
99
|
+
data: Det finns totalt %{count} poster laddade. Senaste uppladdningsdatumet var %{due_date}
|
100
|
+
empty: Det finns inga folkräkningstal. Använd formuläret nedan för att importera det med en CSV-fil.
|
101
|
+
title: Nuvarande folkräkning data
|
102
|
+
instructions:
|
103
|
+
body: För att göra detta måste du ange systemadministration och lägga till csv_census-godkännandena till organisationen
|
104
|
+
title: Du måste aktivera csv-folkräkningen för den här organisationen
|
105
|
+
new:
|
106
|
+
file: ".csv-fil med e-postdata"
|
107
|
+
info: 'Måste vara en fil med CSV-format med en kolumn: e-post'
|
108
|
+
submit: Ladda upp fil
|
109
|
+
title: Ladda upp en ny folkräkning
|
110
|
+
authorizations:
|
111
|
+
new:
|
112
|
+
error: Vi kunde inte verifiera ditt konto eller du är inte i organisationens folkräkning.
|
113
|
+
success: Ditt konto har verifierats.
|
79
114
|
dummy_authorization:
|
80
115
|
extra_explanation:
|
81
116
|
one: Deltagande är begränsat till användare med postnummer %{postal_codes}.
|
@@ -116,7 +151,7 @@ sv:
|
|
116
151
|
success: Verifieringen avvisades. Användaren kommer att uppmanas att ändra sina dokument
|
117
152
|
authorizations:
|
118
153
|
choose:
|
119
|
-
choose_a_type:
|
154
|
+
choose_a_type: 'Var god välj hur du vill verifieras:'
|
120
155
|
offline: Off-line
|
121
156
|
online: Uppkopplad
|
122
157
|
title: Verifiera dig själv med ditt identitetsdokument
|
@@ -174,7 +209,12 @@ sv:
|
|
174
209
|
create:
|
175
210
|
error: Ett problem uppstod med din förfrågan
|
176
211
|
success: Tack! Vi har skickat ett SMS till din telefon.
|
212
|
+
destroy:
|
213
|
+
success: Verifieringskoden återställs väl. Ange ditt telefonnummer igen.
|
177
214
|
edit:
|
215
|
+
confirm_destroy: Är du säker på att du vill återställa verifieringskoden?
|
216
|
+
destroy: Återställ verifieringskod
|
217
|
+
resend: Fick inte verifieringskoden?
|
178
218
|
send: Bekräfta
|
179
219
|
title: Presentera verifieringskoden du fick
|
180
220
|
new:
|
data/config/locales/tr-TR.yml
CHANGED
@@ -34,6 +34,10 @@ tr:
|
|
34
34
|
grant_id_documents_offline_verification: "%{user_name} bir çevrimdışı Kimlik Belgeleri doğrulaması kullanarak %{resource_name} doğrulandı"
|
35
35
|
authorization_handlers:
|
36
36
|
admin:
|
37
|
+
csv_census:
|
38
|
+
help:
|
39
|
+
- Yöneticiler, kabul edilen katılımcıların e-postalarıyla bir CSV yükler
|
40
|
+
- Yalnızca bu CSV dosyasında e-posta adresine sahip katılımcılar doğrulanabilir
|
37
41
|
id_documents:
|
38
42
|
help:
|
39
43
|
- Kullanıcılar kimlik bilgilerini doldurur ve dokümanlarının bir kopyasını yüklerler.
|
@@ -46,6 +50,9 @@ tr:
|
|
46
50
|
- Mektubu adreslerine doğrulama koduyla gönderirsiniz.
|
47
51
|
- Mektubu gönderildiği gibi işaretlersiniz.
|
48
52
|
- Mektubu gönderildiği şekilde işaretledikten sonra, kullanıcı kodu tanıtabilir ve doğrulanabilir.
|
53
|
+
csv_census:
|
54
|
+
explanation: Kuruluşun sayımını kullanarak doğrulayın
|
55
|
+
name: Kuruluşun nüfus sayımı
|
49
56
|
direct: direkt
|
50
57
|
help: yardım et
|
51
58
|
id_documents:
|
@@ -65,6 +72,7 @@ tr:
|
|
65
72
|
first_login:
|
66
73
|
actions:
|
67
74
|
another_dummy_authorization_handler: Başka bir yetkilendirme işleyicisi örneğiyle doğrulayın
|
75
|
+
csv_census: Kuruluşun sayımına göre doğrulayın
|
68
76
|
dummy_authorization_handler: Örnek yetkilendirme işleyicisine karşı doğrulayın
|
69
77
|
dummy_authorization_workflow: Örnek yetkilendirme iş akışına karşı doğrulayın
|
70
78
|
id_documents: Kimlik belgenizi yükleyerek doğrulanma
|
@@ -76,6 +84,33 @@ tr:
|
|
76
84
|
authorize_with: '%{authorizer}ile doğrulayın'
|
77
85
|
skip_verification: Bunu şimdilik ve %{link}için atlayabilirsiniz.
|
78
86
|
start_exploring: keşfetmeye başla
|
87
|
+
csv_census:
|
88
|
+
admin:
|
89
|
+
census:
|
90
|
+
create:
|
91
|
+
error: Sayım alınırken bir hata oluştu.
|
92
|
+
success: '%{count} öğe başarıyla içe aktarıldı (%{errors} hata)'
|
93
|
+
destroy_all:
|
94
|
+
success: Tüm nüfus sayımı verileri silindi
|
95
|
+
destroy:
|
96
|
+
confirm: Silinen tüm nüfus sayımı geri alınamaz. Devam etmek istediğine emin misin?
|
97
|
+
title: Tüm nüfus sayımı verilerini sil
|
98
|
+
index:
|
99
|
+
data: Toplam %{count} kayıt var. Son yükleme tarihi %{due_date}
|
100
|
+
empty: Sayım verileri yok. Bir CSV dosyası kullanarak almak için aşağıdaki formu kullanın.
|
101
|
+
title: Mevcut nüfus sayımı verileri
|
102
|
+
instructions:
|
103
|
+
body: Bunu yapmak için sistem yönetimine girmeli ve csv_census yetkilerini kuruluşa eklemelisiniz.
|
104
|
+
title: Bu kuruluş için csv sayımını etkinleştirmeniz gerekir
|
105
|
+
new:
|
106
|
+
file: "e-posta verileri içeren .csv dosyası"
|
107
|
+
info: 'Tek sütunlu CSV biçiminde bir dosya olmalı: e-posta'
|
108
|
+
submit: Dosya yükleme
|
109
|
+
title: Yeni bir nüfus sayımı yükleyin
|
110
|
+
authorizations:
|
111
|
+
new:
|
112
|
+
error: Hesabınızı doğrulayamadık veya kuruluşun sayımına girmediniz.
|
113
|
+
success: Hesabınız başarıyla doğrulandı.
|
79
114
|
dummy_authorization:
|
80
115
|
extra_explanation:
|
81
116
|
one: Katılım, posta kodu %{postal_codes}olan kullanıcılarla sınırlıdır.
|
@@ -116,7 +151,7 @@ tr:
|
|
116
151
|
success: Doğrulama reddedildi. Kullanıcı dokümanlarını değiştirmek için istenecektir
|
117
152
|
authorizations:
|
118
153
|
choose:
|
119
|
-
choose_a_type:
|
154
|
+
choose_a_type: 'Lütfen nasıl doğrulanmak istediğinizi seçin:'
|
120
155
|
offline: Çevrimdışı
|
121
156
|
online: İnternet üzerinden
|
122
157
|
title: Kimlik belgenizi kullanarak kendinizi doğrulayın
|
@@ -174,7 +209,12 @@ tr:
|
|
174
209
|
create:
|
175
210
|
error: İsteğiniz ile ilgili bir sorun vardı
|
176
211
|
success: Teşekkürler! Telefonunuza bir SMS gönderdik.
|
212
|
+
destroy:
|
213
|
+
success: Doğrulama kodu başarıyla sıfırlandı. Lütfen telefon numaranızı tekrar girin.
|
177
214
|
edit:
|
215
|
+
confirm_destroy: Doğrulama kodunu sıfırlamak istediğinizden emin misiniz?
|
216
|
+
destroy: Doğrulama kodunu sıfırla
|
217
|
+
resend: Doğrulama kodunu alamadınız mı?
|
178
218
|
send: Onaylamak
|
179
219
|
title: Aldığınız doğrulama kodunu tanıtın
|
180
220
|
new:
|
data/config/locales/uk.yml
CHANGED
@@ -79,9 +79,6 @@ uk:
|
|
79
79
|
introduce_user_data: Введіть відомості на картинці
|
80
80
|
reject: Відхилити
|
81
81
|
verify: Підтвердити
|
82
|
-
offline_confirmations:
|
83
|
-
create:
|
84
|
-
success: Особу учасника успішно підтверджено
|
85
82
|
pending_authorizations:
|
86
83
|
index:
|
87
84
|
title: Підтвердження, які очікують на розгляд
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateDecidimVerificationsCsvData < ActiveRecord::Migration[5.2]
|
4
|
+
def change
|
5
|
+
create_table :decidim_verifications_csv_data do |t|
|
6
|
+
t.string :email
|
7
|
+
t.references :decidim_organization, foreign_key: true, index: { name: "index_verifications_csv_census_to_organization" }
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -7,6 +7,7 @@ require "decidim/verifications/workflows"
|
|
7
7
|
require "decidim/verifications/id_documents"
|
8
8
|
require "decidim/verifications/postal_letter"
|
9
9
|
require "decidim/verifications/sms"
|
10
|
+
require "decidim/verifications/csv_census"
|
10
11
|
|
11
12
|
module Decidim
|
12
13
|
def self.authorization_workflows
|
@@ -84,7 +84,7 @@ module Decidim
|
|
84
84
|
# Returns the result of authorization handler check. Check Decidim::Verifications::DefaultActionAuthorizer class docs.
|
85
85
|
#
|
86
86
|
def authorize(authorization, options, component, resource)
|
87
|
-
@action_authorizer = @manifest.action_authorizer_class.new(authorization, options, component, resource)
|
87
|
+
@action_authorizer = @manifest.action_authorizer_class.new(authorization, options_for_authorizer_class(options), component, resource)
|
88
88
|
@action_authorizer.authorize
|
89
89
|
end
|
90
90
|
|
@@ -100,6 +100,18 @@ module Decidim
|
|
100
100
|
# Could add redirect params if a ActionAuthorizer object was previously set.
|
101
101
|
params.merge(@action_authorizer&.redirect_params || {})
|
102
102
|
end
|
103
|
+
|
104
|
+
def options_for_authorizer_class(options)
|
105
|
+
options = options.present? ? options.stringify_keys : {}
|
106
|
+
|
107
|
+
attributes_required_for_authorization.inject(options) do |options_for_authorizer_class, (key, _)|
|
108
|
+
options_for_authorizer_class.update(key => OpenStruct.new(required_for_authorization?: true, value: options[key]))
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
def attributes_required_for_authorization
|
113
|
+
@attributes_required_for_authorization ||= manifest.options.attributes.stringify_keys.select { |_, attribute| attribute.required_for_authorization? }
|
114
|
+
end
|
103
115
|
end
|
104
116
|
end
|
105
117
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Verifications
|
5
|
+
module CsvCensus
|
6
|
+
class AdminEngine < ::Rails::Engine
|
7
|
+
isolate_namespace Decidim::Verifications::CsvCensus::Admin
|
8
|
+
|
9
|
+
paths["db/migrate"] = nil
|
10
|
+
paths["lib/tasks"] = nil
|
11
|
+
|
12
|
+
routes do
|
13
|
+
resources :census, only: [:index, :create] do
|
14
|
+
collection do
|
15
|
+
delete :destroy_all
|
16
|
+
end
|
17
|
+
end
|
18
|
+
root to: "census#index"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|