Sha256: 4a345f6d78aa511e252a2f50d203f725cf1897628230898acad69d6b5a66944a

Contents?: true

Size: 959 Bytes

Versions: 31

Compression:

Stored size: 959 Bytes

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title"><%= title %></h2>
  </div>
  <div class="card-section user-fields">
    <div class="row column">
      <%= form.select :existing_user, [[t(".non_user"), false], [t(".existing_user"), true]], label: t(".user_type") %>
    </div>

    <div class="row column user-fields--user-picker">
      <% prompt_options = { url: decidim_admin.users_organization_url, placeholder: t(".select_user") } %>
      <%= form.autocomplete_select(:user_id, form.object.user.presence, { multiple: false }, prompt_options) do |user|
        { value: user.id, label: "#{user.name} (@#{user.nickname})" }
      end %>
    </div>

    <div class="row column user-fields--email">
      <%= form.email_field :email %>
    </div>

    <div class="row column user-fields--name">
      <%= form.text_field :name %>
    </div>
  </div>
</div>

<%= javascript_pack_tag "decidim_votings_admin_polling_officers_form" %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-elections-0.27.9 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.8 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.7 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.6 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.10 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.9 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.5 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.8 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.4 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.3 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.7 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.5 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.2 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.1 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.4 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.0 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.3 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.0.rc2 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.27.0.rc1 app/views/decidim/votings/admin/polling_officers/_form.html.erb
decidim-elections-0.26.2 app/views/decidim/votings/admin/polling_officers/_form.html.erb