decidim-verifications 0.27.9 → 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 -26
- 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/id_documents/information_form.rb +4 -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 +3 -50
- data/config/locales/bg.yml +4 -266
- data/config/locales/ca.yml +46 -39
- data/config/locales/cs.yml +48 -41
- data/config/locales/de.yml +44 -37
- data/config/locales/el.yml +3 -59
- data/config/locales/en.yml +52 -45
- data/config/locales/es-MX.yml +47 -40
- data/config/locales/es-PY.yml +47 -40
- data/config/locales/es.yml +46 -39
- data/config/locales/eu.yml +51 -44
- data/config/locales/fi-plain.yml +48 -41
- data/config/locales/fi.yml +48 -41
- data/config/locales/fr-CA.yml +50 -43
- data/config/locales/fr.yml +50 -43
- data/config/locales/ga-IE.yml +2 -1
- data/config/locales/gl.yml +3 -59
- data/config/locales/hu.yml +48 -43
- data/config/locales/id-ID.yml +3 -50
- data/config/locales/is-IS.yml +3 -22
- data/config/locales/it.yml +3 -59
- data/config/locales/ja.yml +50 -43
- data/config/locales/lt.yml +43 -35
- data/config/locales/lv.yml +1 -58
- data/config/locales/nl.yml +3 -59
- data/config/locales/no.yml +3 -59
- data/config/locales/pl.yml +3 -80
- data/config/locales/pt-BR.yml +3 -66
- data/config/locales/pt.yml +3 -59
- data/config/locales/ro-RO.yml +7 -59
- data/config/locales/ru.yml +3 -28
- data/config/locales/sk.yml +3 -58
- data/config/locales/sv.yml +7 -62
- data/config/locales/tr-TR.yml +3 -60
- data/config/locales/uk.yml +3 -28
- data/config/locales/zh-CN.yml +3 -59
- data/config/locales/zh-TW.yml +33 -25
- 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/test/factories.rb +2 -8
- 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
- data/lib/decidim/verifications.rb +0 -7
- metadata +26 -18
- data/app/views/decidim/verifications/authorizations/_granted_authorization.html.erb +0 -32
- data/config/locales/he-IL.yml +0 -1
- data/decidim-verifications.gemspec +0 -30
@@ -1,26 +1,35 @@
|
|
1
|
-
|
2
|
-
html: { class: "form" }) do |form| %>
|
3
|
-
<div class="card">
|
4
|
-
<div class="card-divider">
|
5
|
-
<h2 class="card-title">
|
6
|
-
<%= t(".title") %>
|
7
|
-
</h2>
|
8
|
-
</div>
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
9
2
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t(".title") %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="item__edit item__edit-1col">
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for(@form, url: { action: :update }, html: { class: "form form-defaults" }) do |form| %>
|
12
|
+
<div class="form__wrapper">
|
13
|
+
<div class="card pt-4">
|
14
|
+
<div class="card-section">
|
15
|
+
<div class="row column">
|
16
|
+
<%= label_tag(:available_methods, t("activemodel.attributes.config.available_methods")) %>
|
17
|
+
<%= form.check_box :online %>
|
18
|
+
<%= form.check_box :offline %>
|
19
|
+
</div>
|
16
20
|
|
17
|
-
|
18
|
-
|
21
|
+
<div class="row column">
|
22
|
+
<%= form.translated :editor, :offline_explanation, lines: 10, aria: { label: :offline_explanation } %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
19
26
|
</div>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
27
|
|
23
|
-
|
24
|
-
|
28
|
+
<div class="item__edit-sticky">
|
29
|
+
<div class="item__edit-sticky-container">
|
30
|
+
<%= form.submit t(".update"), class: "button button__sm button__secondary" %>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
<% end %>
|
25
34
|
</div>
|
26
|
-
|
35
|
+
</div>
|
@@ -1,27 +1,43 @@
|
|
1
|
-
|
2
|
-
html: { class: "form" }) do |form| %>
|
3
|
-
<div class="card">
|
4
|
-
<div class="card-divider">
|
5
|
-
<h2 class="card-title">
|
6
|
-
<%= t(".introduce_user_data") %>
|
7
|
-
<%= link_to t(".reject"), pending_authorization_rejection_path(@pending_authorization), method: :post, class: "button alert tiny button--title destroy" %>
|
8
|
-
</h2>
|
9
|
-
</div>
|
1
|
+
<% add_decidim_page_title(t(".introduce_user_data")) %>
|
10
2
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t(".introduce_user_data") %>
|
6
|
+
<%= link_to t(".reject"), pending_authorization_rejection_path(@pending_authorization), method: :post, class: "button button__sm button__secondary alert tiny button--title destroy" %>
|
7
|
+
</h2>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div class="item__edit item__edit-1col">
|
11
|
+
<div class="item__edit-form">
|
12
|
+
<%= decidim_form_for(@form, url: pending_authorization_confirmation_path(@pending_authorization),
|
13
|
+
html: { class: "form form-defaults" }) do |form| %>
|
14
|
+
<div class="form__wrapper">
|
15
|
+
<div class="card">
|
16
|
+
<div class="card-divider"></div>
|
17
|
+
|
18
|
+
<div class="card-section">
|
19
|
+
<div class="row column">
|
20
|
+
<%= image_tag @pending_authorization.attached_uploader(:verification_attachment).variant_path(:big), class: "thumbnail" %>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="row column">
|
24
|
+
<%= form.select :document_type, @form.document_types_for_select, prompt: true, selected: nil %>
|
25
|
+
</div>
|
15
26
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
27
|
+
<div class="row column">
|
28
|
+
<%= form.text_field :document_number, value: nil %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<%= form.hidden_field :verification_type, value: :online %>
|
32
|
+
</div>
|
33
|
+
</div>
|
20
34
|
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
35
|
|
24
|
-
|
25
|
-
|
36
|
+
<div class="item__edit-sticky">
|
37
|
+
<div class="item__edit-sticky-container">
|
38
|
+
<%= form.submit t(".verify"), class: "button button__sm button__secondary" %>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
<% end %>
|
26
42
|
</div>
|
27
|
-
|
43
|
+
</div>
|
@@ -1,24 +1,42 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
<% add_decidim_page_title(t(".introduce_user_data")) %>
|
2
|
+
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t(".introduce_user_data") %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="item__edit item__edit-1col">
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for(@form, url: offline_confirmation_path,
|
12
|
+
html: { class: "form form-defaults" }) do |form| %>
|
13
|
+
|
14
|
+
<div class="form__wrapper">
|
15
|
+
<div class="card">
|
16
|
+
<div class="card-divider"></div>
|
17
|
+
|
18
|
+
<div class="card-section">
|
19
|
+
<div class="row column">
|
20
|
+
<%= form.text_field :email %>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="row column">
|
24
|
+
<%= form.select :document_type, @form.document_types_for_select, prompt: true %>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="row column">
|
28
|
+
<%= form.text_field :document_number %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<%= form.hidden_field :verification_type, value: :offline %>
|
32
|
+
</div>
|
33
|
+
</div>
|
16
34
|
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
35
|
|
20
|
-
|
21
|
-
|
22
|
-
|
36
|
+
<div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
|
37
|
+
<%= form.submit t(".verify"), class: "button button__sm button__secondary" %>
|
38
|
+
<%= link_to t(".cancel"), root_path, class: "button button__sm button__secondary" %>
|
39
|
+
</div>
|
40
|
+
<% end %>
|
23
41
|
</div>
|
24
|
-
|
42
|
+
</div>
|
data/app/views/decidim/verifications/id_documents/admin/pending_authorizations/index.html.erb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="card">
|
3
|
-
<div class="
|
4
|
-
<h2 class="
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
5
|
<%= t(".title") %>
|
6
|
-
<%= link_to t(".config"), edit_config_path, class: "button
|
7
|
-
<%= link_to t(".offline_verification"), new_offline_confirmation_path, class: "button
|
6
|
+
<%= link_to t(".config"), edit_config_path, class: "button button__sm button__secondary" %>
|
7
|
+
<%= link_to t(".offline_verification"), new_offline_confirmation_path, class: "button button__sm button__secondary" if has_offline_method? %>
|
8
8
|
</h2>
|
9
9
|
</div>
|
10
10
|
<div class="card-section">
|
@@ -1,18 +1,12 @@
|
|
1
1
|
<%= form_required_explanation %>
|
2
2
|
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
<%= form.select :document_type, @form.document_types_for_select, prompt: true %>
|
6
|
-
</div>
|
3
|
+
<div class="form__wrapper">
|
4
|
+
<%= form.select :document_type, @form.document_types_for_select, prompt: true %>
|
7
5
|
|
8
|
-
|
9
|
-
<%= form.text_field :document_number %>
|
10
|
-
</div>
|
6
|
+
<%= form.text_field :document_number %>
|
11
7
|
|
12
8
|
<% if using_online? %>
|
13
|
-
|
14
|
-
<%= form.upload :verification_attachment %>
|
15
|
-
</div>
|
9
|
+
<%= form.upload :verification_attachment, button_class: "button button__lg button__transparent-secondary verification__upload-button" %>
|
16
10
|
<% end %>
|
17
11
|
|
18
12
|
<%= form.hidden_field :verification_type, value: verification_type %>
|
@@ -1,21 +1,12 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
<div class="text-center py-10">
|
2
|
+
<h1 class="title-decorator inline-block text-left">
|
3
|
+
<%= t("decidim.verifications.id_documents.authorizations.choose.title") %>
|
4
|
+
</h1>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<p><%= t("decidim.verifications.id_documents.authorizations.choose.choose_a_type") %></p>
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<div class="card__content">
|
13
|
-
<p><%= t(".choose_a_type") %></p>
|
14
|
-
<%= link_to t(".offline"), { action: :new, using: :offline }, class: "button button--sc expanded hollow" %>
|
15
|
-
<%= link_to t(".online"), { action: :new, using: :online }, class: "button button--sc expanded" %>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
</div>
|
9
|
+
<div class="mt-4 flex justify-between">
|
10
|
+
<%= link_to t("decidim.verifications.id_documents.authorizations.choose.offline"), { action: :new, using: :offline }, class: "button button__sm md:button__lg button__transparent-secondary" %>
|
11
|
+
<%= link_to t("decidim.verifications.id_documents.authorizations.choose.online"), { action: :new, using: :online }, class: "button button__sm md:button__lg button__secondary" %>
|
21
12
|
</div>
|
@@ -1,44 +1,35 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<% if authorization.rejected? %>
|
7
|
-
<h3 class="heading3"><%= t(".rejection_notice") %></h3>
|
8
|
-
<ul>
|
9
|
-
<li><%= t(".rejection_correctness") %></li>
|
10
|
-
<li><%= t(".rejection_clarity") %></li>
|
11
|
-
</ul>
|
12
|
-
<% else %>
|
13
|
-
<h3><%= t(".being_reviewed") %></h3>
|
14
|
-
<% end %>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
1
|
+
<div class="text-center py-10">
|
2
|
+
<h1 class="title-decorator inline-block text-left">
|
3
|
+
<%= t("decidim.verifications.id_documents.authorizations.new.title") %>
|
4
|
+
</h1>
|
5
|
+
</div>
|
19
6
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<div class="card">
|
24
|
-
<div class="card__content">
|
25
|
-
<%= translated_attribute(current_organization.id_documents_explanation_text).html_safe unless using_online? %>
|
26
|
-
<%= decidim_form_for(@form, url: authorization_path, method: :put) do |form| %>
|
27
|
-
<%= render partial: "form", locals: { form: form } %>
|
7
|
+
<div class="my-12">
|
8
|
+
<%= cell("decidim/announcement", announcement_title(authorization), callout_class: authorization.rejected? ? "alert" : "secondary" ) %>
|
9
|
+
</div>
|
28
10
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
<% if available_methods.count > 1 %>
|
33
|
-
<%= link_to t(".offline"), { action: :edit, using: :offline }, class: "button expanded hollow" if using_online? %>
|
34
|
-
<%= link_to t(".online"), { action: :edit, using: :online }, class: "button expanded hollow" if using_offline? %>
|
35
|
-
<% end %>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
<% end %>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
</div>
|
11
|
+
<% unless using_online? %>
|
12
|
+
<div class="mb-12">
|
13
|
+
<%= translated_attribute(current_organization.id_documents_explanation_text).html_safe %>
|
44
14
|
</div>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<%= decidim_form_for(@form, url: authorization_path, method: :put) do |form| %>
|
18
|
+
<%= render partial: "form", locals: { form: } %>
|
19
|
+
|
20
|
+
<div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
|
21
|
+
<%= link_to decidim_verifications.authorizations_path, class: "button button__sm md:button__lg button__text-secondary" do %>
|
22
|
+
<%= icon "arrow-left-line", class: "fill-current" %>
|
23
|
+
<span><%= t("decidim.wizard_step_form.wizard_aside.back") %></span>
|
24
|
+
<% end %>
|
25
|
+
<button type="submit" class="button button__sm md:button__lg button__secondary">
|
26
|
+
<span><%= t("decidim.verifications.id_documents.authorizations.edit.send") %></span>
|
27
|
+
<%= icon "arrow-right-line", class: "fill-current" %>
|
28
|
+
</button>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<% if available_methods.count > 1 %>
|
32
|
+
<%= link_to t("decidim.verifications.id_documents.authorizations.edit.offline"), { action: :edit, using: :offline }, class: "text-secondary" if using_online? %>
|
33
|
+
<%= link_to t("decidim.verifications.id_documents.authorizations.edit.online"), { action: :edit, using: :online }, class: "text-secondary" if using_offline? %>
|
34
|
+
<% end %>
|
35
|
+
<% end %>
|
@@ -1,28 +1,22 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
<div class="text-center py-10">
|
2
|
+
<h1 class="title-decorator inline-block text-left">
|
3
|
+
<%= t("decidim.verifications.id_documents.authorizations.new.title") %>
|
4
|
+
</h1>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<%= translated_attribute(current_organization.id_documents_explanation_text).html_safe unless using_online? %>
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
<div class="card">
|
12
|
-
<div class="card__content">
|
13
|
-
<%= translated_attribute(current_organization.id_documents_explanation_text).html_safe unless using_online? %>
|
14
|
-
<%= decidim_form_for(@form, url: authorization_path) do |form| %>
|
15
|
-
<%= render partial: "form", locals: { form: form } %>
|
9
|
+
<%= decidim_form_for(@form, url: authorization_path) do |form| %>
|
10
|
+
<%= render partial: "form", locals: { form: } %>
|
16
11
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
</div>
|
12
|
+
<div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
|
13
|
+
<%= link_to decidim_verifications.authorizations_path, class: "button button__sm md:button__lg button__text-secondary" do %>
|
14
|
+
<%= icon "arrow-left-line", class: "fill-current" %>
|
15
|
+
<%= t("decidim.wizard_step_form.wizard_aside.back") %>
|
16
|
+
<% end %>
|
17
|
+
<button type="submit" class="button button__sm md:button__lg button__secondary">
|
18
|
+
<%= t("decidim.verifications.id_documents.authorizations.new.send") %>
|
19
|
+
<%= icon "arrow-right-line", class: "fill-current" %>
|
20
|
+
</button>
|
27
21
|
</div>
|
28
|
-
|
22
|
+
<% end %>
|
data/app/views/decidim/verifications/postal_letter/admin/pending_authorizations/index.html.erb
CHANGED
@@ -1,51 +1,56 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
|
-
<div class="
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t(".title") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="item__edit item__edit-1col">
|
9
|
+
<div class="item__edit-form">
|
10
|
+
<div class="card">
|
11
|
+
<div class="card-section">
|
12
|
+
<table class="table-list">
|
13
|
+
<thead>
|
14
|
+
<tr>
|
15
|
+
<th><%= t(".username") %></th>
|
16
|
+
<th><%= t(".address") %></th>
|
17
|
+
<th><%= t(".verification_code") %></th>
|
18
|
+
<th><%= t(".letter_sent_at") %></th>
|
19
|
+
<th></th>
|
20
|
+
</tr>
|
21
|
+
</thead>
|
22
|
+
<tbody>
|
23
|
+
<% @pending_authorizations.each do |authorization| %>
|
24
|
+
<tr>
|
25
|
+
<td>
|
26
|
+
<%= authorization.user.name %>
|
27
|
+
</td>
|
28
|
+
<td>
|
29
|
+
<%= authorization.verification_address %>
|
30
|
+
</td>
|
31
|
+
<td>
|
32
|
+
<%= authorization.verification_code %>
|
33
|
+
</td>
|
34
|
+
<td>
|
35
|
+
<%= authorization.letter_sent_at %>
|
36
|
+
</td>
|
37
|
+
<td>
|
38
|
+
<% if authorization.letter_sent? %>
|
39
|
+
<%= icon "checkbox-circle-line",
|
40
|
+
class: "action-icon action-icon--disabled" %>
|
41
|
+
<% else %>
|
42
|
+
<%= icon_link_to "checkbox-circle-line",
|
43
|
+
pending_authorization_postage_path(authorization.id),
|
44
|
+
t(".mark_as_sent"),
|
45
|
+
method: :post,
|
46
|
+
class: "action-icon--verify" %>
|
47
|
+
<% end %>
|
48
|
+
</td>
|
49
|
+
</tr>
|
50
|
+
<% end %>
|
51
|
+
</tbody>
|
52
|
+
</table>
|
53
|
+
</div>
|
54
|
+
</div>
|
50
55
|
</div>
|
51
56
|
</div>
|
@@ -1,39 +1,37 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<div class="text-center py-10">
|
2
|
+
<h1 class="title-decorator inline-block text-left">
|
3
|
+
<%= t("decidim.verifications.postal_letter.authorizations.edit.title") %>
|
4
|
+
</h1>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<% if authorization.letter_sent? %>
|
8
|
+
<%= decidim_form_for(@form, url: authorization_path, method: :put) do |form| %>
|
9
|
+
<%= form_required_explanation %>
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<div class="card__content">
|
14
|
-
<%= decidim_form_for(@form, url: authorization_path, method: :put) do |form| %>
|
15
|
-
<%= form_required_explanation %>
|
11
|
+
<div class="form__wrapper">
|
12
|
+
<%= form.text_field :verification_code, placeholder: "XXXXXX" %>
|
13
|
+
</div>
|
16
14
|
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
<div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
|
16
|
+
<%= link_to decidim_verifications.authorizations_path, class: "button button__sm md:button__lg button__text-secondary" do %>
|
17
|
+
<%= icon "arrow-left-line", class: "fill-current" %>
|
18
|
+
<span><%= t("decidim.wizard_step_form.wizard_aside.back") %></span>
|
19
|
+
<% end %>
|
20
|
+
<button type="submit" class="button button__sm md:button__lg button__secondary">
|
21
|
+
<span><%= t("decidim.verifications.postal_letter.authorizations.edit.send") %></span>
|
22
|
+
<%= icon "arrow-right-line", class: "fill-current" %>
|
23
|
+
</button>
|
24
|
+
</div>
|
25
|
+
<% end %>
|
26
|
+
<% else %>
|
27
|
+
<div class="my-10">
|
28
|
+
<%= cell("decidim/announcement", t("decidim.verifications.postal_letter.authorizations.edit.waiting_for_letter")) %>
|
29
|
+
</div>
|
20
30
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
<% else %>
|
30
|
-
<div class="row">
|
31
|
-
<div class="callout announcement secondary">
|
32
|
-
<div class="row column">
|
33
|
-
<h3><%= t(".waiting_for_letter") %></h3>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
31
|
+
<div class="form__wrapper-block">
|
32
|
+
<%= link_to decidim_verifications.authorizations_path, class: "button button__sm md:button__lg button__text-secondary mr-auto" do %>
|
33
|
+
<%= icon "arrow-left-line", class: "fill-current" %>
|
34
|
+
<%= t("decidim.wizard_step_form.wizard_aside.back") %>
|
37
35
|
<% end %>
|
38
36
|
</div>
|
39
|
-
|
37
|
+
<% end %>
|
@@ -1,29 +1,24 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
</div>
|
7
|
-
</div>
|
1
|
+
<div class="text-center py-10">
|
2
|
+
<h1 class="title-decorator inline-block text-left">
|
3
|
+
<%= t("decidim.verifications.postal_letter.authorizations.new.title") %>
|
4
|
+
</h1>
|
5
|
+
</div>
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
<div class="card">
|
12
|
-
<div class="card__content">
|
13
|
-
<%= decidim_form_for(@form, url: authorization_path) do |form| %>
|
14
|
-
<%= form_required_explanation %>
|
7
|
+
<%= decidim_form_for(@form, url: authorization_path) do |form| %>
|
8
|
+
<%= form_required_explanation %>
|
15
9
|
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
<div class="form__wrapper">
|
11
|
+
<%= form.text_field :full_address %>
|
12
|
+
</div>
|
19
13
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
14
|
+
<div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
|
15
|
+
<%= link_to decidim_verifications.authorizations_path, class: "button button__sm md:button__lg button__text-secondary" do %>
|
16
|
+
<%= icon "arrow-left-line", class: "fill-current" %>
|
17
|
+
<%= t("decidim.wizard_step_form.wizard_aside.back") %>
|
18
|
+
<% end %>
|
19
|
+
<button type="submit" class="button button__sm md:button__lg button__secondary">
|
20
|
+
<%= t("decidim.verifications.postal_letter.authorizations.new.send") %>
|
21
|
+
<%= icon "arrow-right-line", class: "fill-current" %>
|
22
|
+
</button>
|
28
23
|
</div>
|
29
|
-
|
24
|
+
<% end %>
|