Sha256: 21f297adae35e8f337f4e4e90b4a2ff3c7cb8878705ee127fe5b3083dbf82d75

Contents?: true

Size: 1.17 KB

Versions: 37

Compression:

Stored size: 1.17 KB

Contents

<% if request["postal_codes"].present?
  postal_codes = request["postal_codes"].split(",") %>
  <p><%= t("extra_explanation.postal_codes", scope: "decidim.verifications.dummy_authorization", postal_codes: postal_codes.join(", "), count: postal_codes.count, user_postal_code: request["user_postal_code"]) %></p>
<% end %>

<% if request["scope"] && (scope = Decidim::Scope.find(request["scope"]&.to_i)) %>
  <p><%= t("extra_explanation.scope", scope: "decidim.verifications.dummy_authorization", scope_name: translated_attribute(scope.name), user_scope_name: request["user_scope_name"]) %></p>
<% end %>

<div class="partial-demo">
  <%= form.hidden_field :handler_name %>
  <div class="field">
    <%= form.text_field :document_number %>
  </div>
  <div class="field">
    <%= form.text_field :postal_code %>
  </div>
  <div class="field">
    <%= form.date_field :birthday %>
  </div>
  <div class="field">
    <%= form.scopes_picker :scope_id, {} do |scope|
        { url: decidim.scopes_picker_path(root: nil, current: form.object.scope_id, field: form.label_for(:scope_id)),
          text: scope_name_for_picker(form.object.scope, I18n.t("decidim.scopes.global")) }
      end %>
  </div>
</div>

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-verifications-0.26.1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.0 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.0.rc2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.0.rc1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.25.2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.25.1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.25.0 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.25.0.rc4 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.25.0.rc3 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.25.0.rc2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.25.0.rc1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.24.3 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.24.2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.24.1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.24.0 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.24.0.rc2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.24.0.rc1 app/views/dummy_authorization/_form.html.erb