Rewrite views with Bootstrap
This commit is contained in:
parent
529f7118b1
commit
5a278fcddf
19 changed files with 424 additions and 279 deletions
|
|
@ -1,21 +1,21 @@
|
|||
<h1><%= _("Reset password") %></h1>
|
||||
<h1 class="mb-5"><%= _("Reset password") %></h1>
|
||||
|
||||
<% if @errors %>
|
||||
<% @errors.each do |error| %>
|
||||
<% if error.attribute == :password and error.type == :blank %>
|
||||
<p class="error"><%= _("Specify a password.") %></p>
|
||||
<p class="alert alert-warning mb-4"><%= _("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>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue