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