Sha256: 7697d6d33f9f3f578616b88cdbeb8d0c500b9f1a9b3aabdb5c82373580ca6ebd

Contents?: true

Size: 1.35 KB

Versions: 16

Compression:

Stored size: 1.35 KB

Contents

<div data-hook="admin_user_form_fields" class="row">
  <div class="col-12 col-md-6">
    <%= f.field_container :email do %>
      <%= f.label :email, Spree.t(:email) %>
      <%= f.email_field :email, class: 'form-control' %>
      <%= f.error_message_on :email %>
    <% end %>

    <div data-hook="admin_user_form_roles" class="form-group">
      <strong><%= Spree.t(:roles) %></strong>
      <%= f.collection_check_boxes :spree_role_ids, Spree::Role.all, :id, :name do |role_form| %>
        <div class="checkbox">
          <%= role_form.label for: "user_spree_role_#{role_form.object.name}" do %>
            <%= role_form.check_box id: "user_spree_role_#{role_form.object.name}" %>
            <%= role_form.object.name %>
          <% end %>
        </div>
      <% end %>
    </div>
  </div>

  <div data-hook="admin_user_form_password_fields" class="col-12 col-md-6">
    <%= f.field_container :password do %>
      <%= f.label :password, Spree.t(:password) %>
      <%= f.password_field :password, class: 'form-control' %>
      <%= f.error_message_on :password %>
    <% end %>

    <%= f.field_container :password_confirmation do %>
      <%= f.label :password_confirmation, Spree.t(:confirm_password) %>
      <%= f.password_field :password_confirmation, class: 'form-control' %>
      <%= f.error_message_on :password_confirmation %>
    <% end %>
  </div>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/users/_form.html.erb
spree_backend-4.8.3 app/views/spree/admin/users/_form.html.erb
spree_backend-4.8.2 app/views/spree/admin/users/_form.html.erb
spree_backend-4.8.1 app/views/spree/admin/users/_form.html.erb
spree_backend-4.7.2 app/views/spree/admin/users/_form.html.erb
spree_backend-4.6.2 app/views/spree/admin/users/_form.html.erb
spree_backend-4.7.1 app/views/spree/admin/users/_form.html.erb
spree_backend-4.7.0 app/views/spree/admin/users/_form.html.erb
spree_backend-4.6.1 app/views/spree/admin/users/_form.html.erb
spree_backend-4.6.0 app/views/spree/admin/users/_form.html.erb
spree_backend-4.5.1 app/views/spree/admin/users/_form.html.erb
spree_backend-4.5.0 app/views/spree/admin/users/_form.html.erb
spree_backend-4.4.1 app/views/spree/admin/users/_form.html.erb
spree_backend-4.4.0 app/views/spree/admin/users/_form.html.erb
spree_backend-4.4.0.rc2 app/views/spree/admin/users/_form.html.erb
spree_backend-4.4.0.rc1 app/views/spree/admin/users/_form.html.erb