Sha256: ee4b491e8d8ab125d38717357bcc2ab4a93c6291614f8fe6cf22d9b3b73159d7

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

<%
  html = { class: "auth-form" }
  url = spree.update_password_path
%>

<%= form_for @spree_user, as: :spree_user, url: url, method: :put, html: html do |f| %>
  <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.update"),
      full_width: true,
      name: :commit,
      type: :submit
    ) %>
  </div>

  <%= f.hidden_field :reset_password_token %>

  <%= I18n.t("spree.or") %> <%= link_to I18n.t("spree.create_a_new_account"), spree.signup_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/_change_form.html.erb