vedia/views/reset_change.erb
2025-12-04 01:45:59 +01:00

21 lines
764 B
Text

<h1 class="mb-5"><%= _("Reset password") %></h1>
<% if @errors %>
<% @errors.each do |error| %>
<% if error.attribute == :password and error.type == :blank %>
<p class="alert alert-warning mb-4"><%= _("Enter a password.") %></p>
<% end %>
<% end %>
<% end %>
<form action="/reset/<%= params[:uuid] %>" method="post">
<div class="mb-3">
<label for="email" class="form-label"><%= _("Email") %></label>
<p><strong><%= @user.email %></strong></p>
</div>
<div class="mb-3">
<label for="password" class="form-label"><%= _("Password") %></label>
<input type="password" name="password" value="<%= params[:password] %>" class="form-control">
</div>
<button type="submit" class="btn btn-primary"><%= _("Reset password") %></button>
</form>