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.27.9 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.8 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.7 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.6 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.10 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.9 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.5 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.8 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.4 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.3 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.7 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.5 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.4 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.0 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.3 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.0.rc2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.27.0.rc1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.26.2 app/views/dummy_authorization/_form.html.erb