Sha256: ba0814cc1764f284f753776a401fb801a6791d569cb9cb6c1f23c88e51c3d5c7

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

<%
  html = { class: "auth-form" }
  url = spree.registration_path(resource)
%>

<%= form_for resource, as: :spree_user, url: url, html: html do |f| %>
  <div class="auth-form__input-wrapper">
    <%= render(
      "spree/components/forms/inputs/text",
      id: :spree_user_email,
      label: I18n.t("spree.email"),
      name: 'spree_user[email]',
      placeholder: "name@example.com",
      type: :email
    ) %>
  </div>
  <div class="auth-form__input-wrapper">
    <%= render(
      "spree/components/forms/inputs/text",
      id: :spree_user_password,
      label: I18n.t("spree.password"),
      name: 'spree_user[password]',
      placeholder: "p455w0rd",
      type: :password
    ) %>
  </div>
  <div class="auth-form__input-wrapper">
    <%= render(
      "spree/components/forms/inputs/text",
      id: :spree_user_password_confirmation,
      label: I18n.t("spree.confirm_password"),
      name: 'spree_user[password_confirmation]',
      placeholder: "p455w0rd",
      type: :password
    ) %>
  </div>
  <div class="auth-form__input-wrapper">
    <%= render(
      "spree/components/buttons/button_primary",
      content: I18n.t("spree.create"),
      full_width: true,
      name: :commit,
      type: :submit
    ) %>
  </div>

  <%= I18n.t("spree.or") %> <%= link_to I18n.t("spree.login_as_existing"), spree.login_path %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/views/spree/components/auth/_signup_form.html.erb