mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-31 19:19:38 +02:00
Centralize auth messages
This commit is contained in:
parent
40c6c4b756
commit
2adf2de190
8 changed files with 23 additions and 19 deletions
|
@ -3,11 +3,7 @@
|
|||
%>
|
||||
|
||||
<%= form_with model: @user, url: registration_path, html: {class: 'space-y-6'} do |form| %>
|
||||
<% if form.object.errors.any? %>
|
||||
<% form.object.errors.full_messages.each do |message| %>
|
||||
<div><%= message %></div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= auth_messages form %>
|
||||
|
||||
<div class="relative p-4 border border-gray-100 bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100">
|
||||
<%= form.label :email, class: 'block text-sm font-medium text-gray-700' %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue