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