Sha256: 199e98883b22a31504928231aff0013b5ee5bbab99c759a76ee1e32a862ec7b3

Contents?: true

Size: 1.93 KB

Versions: 4

Compression:

Stored size: 1.93 KB

Contents

<div class="wrapper">
  <div class="row collapse">
    <div class="row collapse">
      <div class="columns large-8 large-centered text-center page-title">
        <h1><%= t(".title") %></h1>
      </div>
    </div>

    <div class="row">
      <div class="columns large-6 medium-centered">
        <div class="card">
          <div class="card__content">
            <%= decidim_form_for(@form, url: authorization_path(redirect_url: redirect_url)) do |form| %>
              <%= form_required_explanation %>

              <% if setting&.email_required? %>
                <% unless @form.participant.present? %>
                  <div class="callout announcement mb-sm alert cell-announcement">
                    <p><%= t(".not_in_census") %></p>
                  </div>
                <% end %>
                <div class="field">
                  <%= form.text_field :email, readonly: true %>
                </div>
              <% end %>

              <% if setting&.phone_required? %>
                <div class="field">
                  <%= form.text_field :phone, readonly: setting&.verify_with_both? %>
                </div>
                <% if setting&.verify_with_both? %>
                  <div class="callout announcement mb-sm warning cell-announcement">
                    <p><%= t(".phone_warning") %></p>
                  </div>
                <% end %>
              <% end %>

              <p><%= t(".participate_in", consultations: "<b>#{translated_attribute(@form.setting.title)}</b>").html_safe %></p>

              <div class="actions">
                <%= form.submit t(setting&.phone_required? ? ".send_code": ".authorize"), class: "button expanded", "data-disable-with" => "#{t('.send_code')}...", disabled: (setting&.email_required? && (!@form.participant || (@form.phone.blank? && setting&.verify_with_both?))) %>
              </div>
            <% end %>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-action_delegator-0.8.1 app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/new.html.erb
decidim-action_delegator-0.7.2 app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/new.html.erb
decidim-action_delegator-0.7.1 app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/new.html.erb
decidim-action_delegator-0.7.0 app/views/decidim/action_delegator/verifications/delegations_verifier/authorizations/new.html.erb