Sha256: 2bde638c49e90231fbca26016a070067a4c31e2933f4a7e4383b31a8ca7591d8

Contents?: true

Size: 1.42 KB

Versions: 15

Compression:

Stored size: 1.42 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' %>
      <%= error_message_on :user, :email %>
    <% end %>

    <div data-hook="admin_user_form_roles" class="form-group">
      <strong><%= Spree.t(:roles) %></strong>
      <% @roles.each do |role| %>
        <div class="checkbox">
          <%= label_tag "user_spree_role_#{role.name}" do %>
            <%= check_box_tag 'user[spree_role_ids][]', role.id, @user.spree_roles.include?(role), :id => "user_spree_role_#{role.name}" %>
            <%= role.name %>
          <% end %>
        </div>
      <% end %>
      <%= hidden_field_tag 'user[spree_role_ids][]', '' %>
    </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, 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

15 entries across 15 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.9 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.8 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.7 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.6 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.5 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.4 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.3 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.2 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.1 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.0 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/users/_form.html.erb
spree_backend-3.0.0.rc1 app/views/spree/admin/users/_form.html.erb