Sha256: 6bc60fa7f9c0daa840c3f799777210d7e16cd06f8c5663ebef2da7d8543a24ea

Contents?: true

Size: 1.96 KB

Versions: 13

Compression:

Stored size: 1.96 KB

Contents

<div class="form__wrapper">
  <div class="card pt-4">
    <div class="card-section">
      <div class="row column">
        <%= form.text_field :reason, label: t(".reason") %>
      </div>

      <% if creating_managed_user? %>
        <div class="row column">
          <%= form.text_field :name, label: t(".name") %>
        </div>
      <% end %>

      <%= form.fields_for :authorization, form.object.authorization, builder: Decidim::AuthorizationFormBuilder do |f| %>
        <% if other_available_authorizations.any? %>
          <div class="row column">
            <%= f.collection_select :handler_name,
                                    available_authorization_handlers,
                                    :name,
                                    :fullname,
                                    { label: t(".authorization_method") } %>
          </div>
        <% else %>
          <div class="row column">
            <%= f.hidden_field :handler_name %>
          </div>
        <% end %>
        <div class="row column">
          <div id="authorization-handler-<%= f.object.handler_name %>"
                 class="authorization-handler">
            <%= render "handler_form", handler_form: f %>
          </div>
        </div>
      <% end %>

      <div class="row column">
        <% other_available_authorizations.each do |authorization| %>
          <%= form.fields_for :authorization, authorization, builder: Decidim::AuthorizationFormBuilder do |f| %>
            <div class="row column">
              <div id="authorization-handler-<%= authorization.handler_name %>"
                   class="authorization-handler"
                   style="display:none">
                <%= render "handler_form", handler_form: f %>
              </div>
            </div>
          <% end %>
        <% end %>
      </div>

      <% if other_available_authorizations.any? %>
        <script>
          window.Decidim.managedUsersForm()
        </script>
      <% end %>

    </div>
  </div>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.28.4 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.29.0 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.28.3 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.29.0.rc4 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.29.0.rc3 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.29.0.rc2 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.29.0.rc1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.28.2 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.28.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.28.0 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.28.0.rc5 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.28.0.rc4 app/views/decidim/admin/impersonations/_form.html.erb