Sha256: 1907ca925e62a7dcd9101ba53f026ad437926858a7eb4006add9159c2d07446d

Contents?: true

Size: 1.41 KB

Versions: 18

Compression:

Stored size: 1.41 KB

Contents

<div data-hook="admin_user_form_fields" class="row">
  <div class="col-md-6">
    <%= f.field_container :email, class: ['form-group'] 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-md-6">
    <%= f.field_container :password, class: ['form-group'] 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, class: ['form-group'] 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

18 entries across 18 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.13 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.12 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.11 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.10 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.9 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.8 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.7 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.6 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.5 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.4 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.3 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.2 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.1 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.0 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/users/_form.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/users/_form.html.erb