Sha256: fb75d12133e0d1c0bc3d37eeca3421639576fd9b2e0b3e3d20d644ac950b89e5

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 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) %></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)) %></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

8 entries across 8 versions & 1 rubygems

Version Path
decidim-verifications-0.23.6 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.23.5 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.23.4 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.23.3 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.23.2 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.23.1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.23.1.rc1 app/views/dummy_authorization/_form.html.erb
decidim-verifications-0.23.0 app/views/dummy_authorization/_form.html.erb