Sha256: f8be3758bb79e6e9132a2f16bdf191e6f5c44e93fc75ac7203ed70bfebc3fee1

Contents?: true

Size: 1.42 KB

Versions: 24

Compression:

Stored size: 1.42 KB

Contents

<div class="row column">
  <% unless form.object.user.managed? %>
    <%= form.text_field :reason, label: t(".reason") %>
  <% end %>

  <% 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? %>
  <%= javascript_include_tag "decidim/admin/managed_users" %>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
decidim-admin-0.18.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.17.2 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.18.0 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.17.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.16.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.17.0 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.16.0 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.15.2 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.15.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.15.0 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.14.4 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.14.3 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.14.2 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.14.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.13.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.12.2 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.13.0 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.12.1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.13.0.pre1 app/views/decidim/admin/impersonations/_form.html.erb
decidim-admin-0.12.0 app/views/decidim/admin/impersonations/_form.html.erb