Sha256: bf157a5e0763a6368fe894f0447a0870e13de3bbf3af703950bb37640df62786

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

<%- locals = {:f => f} %>
<%= hook :admin_user_form_fields, locals do %>
  <%= 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 %>
<% end %>


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

<p />
<%= f.label :supplier_id, t("supplier") %><br />
<%= f.collection_select :supplier_id, Supplier.all, :id, :title, :include_blank => true %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 app/views/admin/users/_form.html.erb
spree_suppliers-0.60.3 app/views/admin/users/_form.html.erb