Sha256: 10f5d60fdc5be7d30b5fca3c0e3bdebedfcd6572721a19d4bbc84003c9ff8870

Contents?: true

Size: 1.34 KB

Versions: 34

Compression:

Stored size: 1.34 KB

Contents

<div class="attendee-fields">
  <div class="row column">
    <fieldset class="check-radio-collection">
      <legend><%= t(".attendee_type") %></legend>
      <%= form.collection_radio_buttons(:existing_user, [[t(".non_user"), false], [t(".existing_user"), true]], :last, :first) %>
    </fieldset>
  </div>

  <div class="text-warning attendee-fields--new-user">
    <p><%= t(".invite_explanation") %></p>
  </div>

  <div class="grid-x grid-margin-x">
    <div class="auto cell attendee-fields--new-user">
      <%= form.text_field :name, disabled: disabled %>
    </div>
    <div class="auto cell attendee-fields--new-user">
      <%= form.text_field :email, disabled: disabled %>
    </div>

    <div class="auto cell attendee-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, class: "autocomplete-field--results-inline" }, prompt_options) do |user|
          { value: user.id, label: "#{user.name} (@#{user.nickname})" }
        end %>
    </div>

    <div class="shrink cell">
      <div class="text-center mt-sm">
        <%= form.submit t(".invite"), disabled: disabled %>
      </div>
    </div>
  </div>
</div>

<%= javascript_include_tag "decidim/meetings/admin/registrations_invite_form" %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
decidim-meetings-0.24.3 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.6 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.24.2 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.5 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.24.1 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.24.0 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.24.0.rc2 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.4 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.24.0.rc1 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.3 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.2 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.1 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.1.rc1 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.23.0 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.22.0 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.21.0 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.20.1 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.20.0 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.19.1 app/views/decidim/meetings/admin/invites/_form.html.erb
decidim-meetings-0.18.1 app/views/decidim/meetings/admin/invites/_form.html.erb