Sha256: abf367ae7a6523be8a056576e9ff0e9bf6afde9f27d84feabc6441343b8c007e

Contents?: true

Size: 999 Bytes

Versions: 8

Compression:

Stored size: 999 Bytes

Contents

<div data-hook="admin_user_form_fields">
  <%= f.field_container :email do %>
    <%= f.label :email, t(:email) %><br />
    <%= f.text_field :email %>
    <%= error_message_on :user, :email %>
  <% end %>

  <%= f.field_container :password do %>
    <%= f.label :password, t(:password) %><br />
    <%= f.password_field :password  %>
    <%= f.error_message_on :password %>
  <% end %>

  <%= f.field_container :password do %>
    <%= f.label :password_confirmation, t(:confirm_password) %><br />
    <%= f.password_field :password_confirmation  %>
    <%= f.error_message_on :password_confirmation %>
  <% end %>
</div>


<% if @user.respond_to?(:roles) %>
  <div data-hook="admin_user_form_roles">
    <p>
      <%= label_tag nil, t(:roles) %><br />
      <% @roles.each do |role| %>
        <label class="sub">
          <%= check_box_tag "user[role][#{role.name}]", 1, @user.has_role?(role.name) %>
          <%= role.name %>
        </label> &nbsp;
      <% end %>
    </p>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_core-0.70.7 app/views/admin/users/_form.html.erb
spree_core-0.70.6 app/views/admin/users/_form.html.erb
spree_core-0.70.5 app/views/admin/users/_form.html.erb
spree_core-0.70.4 app/views/admin/users/_form.html.erb
spree_core-0.70.3 app/views/admin/users/_form.html.erb
spree_core-0.70.2 app/views/admin/users/_form.html.erb
spree_core-0.70.1 app/views/admin/users/_form.html.erb
spree_core-0.70.0 app/views/admin/users/_form.html.erb