Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update password reset email template for admin users to use new designs

Damian Legawiec356e5ff6b8b7
diff --git a/spree/emails/app/views/spree/customer_mailer/password_reset_email.html.erb b/spree/emails/app/views/spree/customer_mailer/password_reset_email.html.erb
index 1da494f7ee..d97e3bd5b1 100644
--- a/spree/emails/app/views/spree/customer_mailer/password_reset_email.html.erb
+++ b/spree/emails/app/views/spree/customer_mailer/password_reset_email.html.erb
@@ -1,24 +1,10 @@
-<table class="hero" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td align="center">
- <div class="hero_content f-fallback">
- <h1><%= Spree.t('customer_mailer.password_reset_email.action') %></h1>
- <p class="greeting"><%= Spree.t('customer_mailer.password_reset_email.greeting', name: @user.first_name.presence || @user.email) %></p>
- <p><%= Spree.t('customer_mailer.password_reset_email.instructions') %></p>
- <% if @reset_url %>
- <%= render 'spree/shared/mailer_button', url: @reset_url, label: Spree.t('customer_mailer.password_reset_email.action') %>
- <% end %>
- <p class="sub"><%= Spree.t('customer_mailer.password_reset_email.expiry_notice') %></p>
- <p class="sub"><%= Spree.t('customer_mailer.password_reset_email.ignore_notice') %></p>
- </div>
- </td>
- </tr>
-</table>
-
-<table class="signoff" width="100%" cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td align="center">
- <p class="f-fallback"><%= Spree.t('order_mailer.store_team', store_name: current_store.name) %></p>
- </td>
- </tr>
-</table>
+<%= render layout: 'spree/shared/mailer_hero' do %>
+ <h1><%= Spree.t('customer_mailer.password_reset_email.action') %></h1>
+ <p class="greeting"><%= Spree.t('customer_mailer.password_reset_email.greeting', name: @user.first_name.presence || @user.email) %></p>
+ <p><%= Spree.t('customer_mailer.password_reset_email.instructions') %></p>
+ <% if @reset_url %>
+ <%= render 'spree/shared/mailer_button', url: @reset_url, label: Spree.t('customer_mailer.password_reset_email.action') %>
+ <% end %>
+ <p class="sub"><%= Spree.t('customer_mailer.password_reset_email.expiry_notice') %></p>
+ <p class="sub"><%= Spree.t('customer_mailer.password_reset_email.ignore_notice') %></p>
+<% end %>