decidim-verifications 0.27.5 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/app/cells/decidim/verifications/revocations/show.erb +18 -16
- data/app/commands/decidim/verifications/authorize_user.rb +24 -3
- data/app/commands/decidim/verifications/confirm_user_authorization.rb +1 -1
- data/app/commands/decidim/verifications/csv_census/admin/create_census_data.rb +1 -1
- data/app/commands/decidim/verifications/id_documents/admin/confirm_user_offline_authorization.rb +1 -1
- data/app/commands/decidim/verifications/perform_authorization_step.rb +1 -1
- data/app/commands/decidim/verifications/revoke_all_authorizations.rb +2 -2
- data/app/commands/decidim/verifications/revoke_by_condition_authorizations.rb +3 -3
- data/app/controllers/concerns/decidim/verifications/renewable.rb +2 -2
- data/app/controllers/decidim/verifications/application_controller.rb +3 -0
- data/app/controllers/decidim/verifications/authorizations_controller.rb +20 -4
- data/app/controllers/decidim/verifications/id_documents/authorizations_controller.rb +6 -6
- data/app/controllers/decidim/verifications/sms/authorizations_controller.rb +7 -11
- data/app/events/decidim/verifications/managed_user_error_event.rb +3 -8
- data/app/forms/decidim/verifications/postal_letter/postage_form.rb +1 -1
- data/app/forms/decidim/verifications/sms/mobile_phone_form.rb +7 -3
- data/app/helpers/decidim/verifications/application_helper.rb +91 -0
- data/app/jobs/decidim/verifications/csv_census/application_job.rb +1 -1
- data/app/jobs/decidim/verifications/csv_census/remove_duplicates_job.rb +1 -1
- data/app/models/decidim/verifications/csv_census/data.rb +1 -1
- data/app/models/decidim/verifications/csv_datum.rb +3 -3
- data/app/packs/entrypoints/decidim_verifications.js +2 -0
- data/app/packs/stylesheets/verifications.scss +58 -0
- data/app/presenters/decidim/verifications/postal_letter/authorization_presenter.rb +1 -1
- data/app/queries/decidim/verifications/authorizations.rb +2 -2
- data/app/services/decidim/authorization_handler.rb +45 -13
- data/app/views/decidim/verifications/authorizations/_item.html.erb +31 -0
- data/app/views/decidim/verifications/authorizations/first_login.html.erb +20 -21
- data/app/views/decidim/verifications/authorizations/index.html.erb +28 -73
- data/app/views/decidim/verifications/authorizations/new.html.erb +27 -29
- data/app/views/decidim/verifications/authorizations/renew_modal.html.erb +23 -30
- data/app/views/decidim/verifications/csv_census/admin/census/index.html.erb +54 -39
- data/app/views/decidim/verifications/csv_census/admin/census/instructions.html.erb +3 -2
- data/app/views/decidim/verifications/id_documents/admin/config/edit.html.erb +30 -21
- data/app/views/decidim/verifications/id_documents/admin/confirmations/new.html.erb +38 -22
- data/app/views/decidim/verifications/id_documents/admin/offline_confirmations/new.html.erb +39 -21
- data/app/views/decidim/verifications/id_documents/admin/pending_authorizations/index.html.erb +4 -4
- data/app/views/decidim/verifications/id_documents/authorizations/_form.html.erb +4 -10
- data/app/views/decidim/verifications/id_documents/authorizations/choose.html.erb +10 -19
- data/app/views/decidim/verifications/id_documents/authorizations/edit.html.erb +32 -41
- data/app/views/decidim/verifications/id_documents/authorizations/new.html.erb +19 -25
- data/app/views/decidim/verifications/postal_letter/admin/pending_authorizations/index.html.erb +53 -48
- data/app/views/decidim/verifications/postal_letter/authorizations/edit.html.erb +32 -34
- data/app/views/decidim/verifications/postal_letter/authorizations/new.html.erb +20 -25
- data/app/views/decidim/verifications/sms/authorizations/edit.html.erb +25 -34
- data/app/views/decidim/verifications/sms/authorizations/new.html.erb +20 -25
- data/app/views/dummy_authorization/_form.html.erb +6 -16
- data/app/views/layouts/decidim/authorizations.html.erb +8 -0
- data/config/assets.rb +8 -0
- data/config/locales/ar.yml +1 -53
- data/config/locales/ca.yml +46 -40
- data/config/locales/cs.yml +48 -42
- data/config/locales/de.yml +44 -38
- data/config/locales/el.yml +1 -62
- data/config/locales/en.yml +52 -46
- data/config/locales/es-MX.yml +47 -41
- data/config/locales/es-PY.yml +47 -41
- data/config/locales/es.yml +46 -40
- data/config/locales/eu.yml +51 -45
- data/config/locales/fi-plain.yml +48 -42
- data/config/locales/fi.yml +45 -39
- data/config/locales/fr-CA.yml +50 -44
- data/config/locales/fr.yml +50 -44
- data/config/locales/ga-IE.yml +0 -1
- data/config/locales/gl.yml +1 -62
- data/config/locales/hu.yml +48 -45
- data/config/locales/id-ID.yml +1 -53
- data/config/locales/is-IS.yml +1 -24
- data/config/locales/it.yml +1 -62
- data/config/locales/ja.yml +50 -44
- data/config/locales/lt.yml +43 -37
- data/config/locales/lv.yml +1 -61
- data/config/locales/nl.yml +1 -62
- data/config/locales/no.yml +1 -62
- data/config/locales/pl.yml +1 -62
- data/config/locales/pt-BR.yml +1 -69
- data/config/locales/pt.yml +1 -62
- data/config/locales/ro-RO.yml +5 -62
- data/config/locales/ru.yml +1 -31
- data/config/locales/sk.yml +1 -61
- data/config/locales/sv.yml +3 -62
- data/config/locales/tr-TR.yml +1 -62
- data/config/locales/uk.yml +1 -31
- data/config/locales/zh-CN.yml +1 -62
- data/config/locales/zh-TW.yml +33 -27
- data/lib/decidim/verifications/adapter.rb +7 -7
- data/lib/decidim/verifications/csv_census/workflow.rb +1 -0
- data/lib/decidim/verifications/id_documents/workflow.rb +1 -0
- data/lib/decidim/verifications/postal_letter/workflow.rb +1 -0
- data/lib/decidim/verifications/sms/engine.rb +2 -1
- data/lib/decidim/verifications/sms/example_gateway.rb +3 -2
- data/lib/decidim/verifications/version.rb +1 -1
- data/lib/decidim/verifications/workflow_manifest.rb +2 -1
- data/lib/decidim/verifications/workflows.rb +2 -2
- metadata +25 -16
- data/app/views/decidim/verifications/authorizations/_granted_authorization.html.erb +0 -32
- data/config/environment.rb +0 -3
@@ -1,32 +0,0 @@
|
|
1
|
-
<div class="card--list__text">
|
2
|
-
<%= icon "lock-locked", class: "card--list__icon", role: "img", "aria-hidden": true %>
|
3
|
-
<div>
|
4
|
-
<h5 class="card--list__heading">
|
5
|
-
<%= t("#{authorization.name}.name", scope: "decidim.authorization_handlers") %>
|
6
|
-
</h5>
|
7
|
-
<span class="text-small <%= "alert" if authorization.expired? %>">
|
8
|
-
<% if authorization.expired? %>
|
9
|
-
<%= t("expired_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.expires_at, format: :long)) %>
|
10
|
-
<% else %>
|
11
|
-
<%= t("granted_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.granted_at, format: :long)) %>
|
12
|
-
<% if authorization.expires_at.present? %>
|
13
|
-
<%= t("expires_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.expires_at, format: :long)) %>
|
14
|
-
<% end %>
|
15
|
-
<% end %>
|
16
|
-
</span>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<% if authorization.expired? %>
|
21
|
-
<div class="card--list__data">
|
22
|
-
<span class="card--list__data__icon">
|
23
|
-
<%= icon "reload", aria_label: t("renew", scope: "decidim.authorization_handlers"), role: "img" %>
|
24
|
-
</span>
|
25
|
-
</div>
|
26
|
-
<% elsif authorization.renewable? %>
|
27
|
-
<div class="card--list__data">
|
28
|
-
<span class="card--list__data__icon">
|
29
|
-
<%= icon "reload", aria_label: t("renew", scope: "decidim.authorization_handlers"), role: "img" %>
|
30
|
-
</span>
|
31
|
-
</div>
|
32
|
-
<% end %>
|
data/config/environment.rb
DELETED