21 lines
606 B
Text
21 lines
606 B
Text
<h1><%= _("Reset password") %></h1>
|
|
|
|
<% if @errors %>
|
|
<% @errors.each do |error| %>
|
|
<% if error.attribute == :password and error.type == :blank %>
|
|
<p class="error"><%= _("Specify a password.") %></p>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<form action="/reset/<%= params[:uuid] %>" method="post">
|
|
<p>
|
|
<label for="email"><%= _("Email") %></label>
|
|
<span><%= @user.email %></span>
|
|
</p>
|
|
<p>
|
|
<label for="password"><%= _("Password") %></label>
|
|
<input type="password" name="password" value="<%= params[:password] %>">
|
|
</p>
|
|
<button type="submit"><%= _("Reset password") %></button>
|
|
</form>
|