Sha256: 885543c804dc0f413e6504a59cc754fc52d7546916fe0128ba423f86a07eabbc

Contents?: true

Size: 1.36 KB

Versions: 31

Compression:

Stored size: 1.36 KB

Contents

<div class="row column">
  <%= form.text_field :reason, label: t(".reason") %>

  <% if creating_managed_user? %>
    <%= form.text_field :name, label: t(".name") %>
  <% end %>

  <%= form.fields_for :authorization, form.object.authorization, builder: Decidim::AuthorizationFormBuilder do |f| %>
    <% if other_available_authorizations.any? %>
      <%= f.collection_select :handler_name,
                              available_authorization_handlers,
                              :name,
                              :fullname,
                              { label: t(".authorization_method") } %>
    <% else %>
      <%= f.hidden_field :handler_name %>
    <% end %>

    <div id="authorization-handler-<%= f.object.handler_name %>"
           class="authorization-handler">
      <%= render "handler_form", handler_form: f %>
    </div>
  <% end %>

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

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

Version data entries

31 entries across 31 versions & 1 rubygems

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