rails_template/app/views/devise/passwords/edit.html.erb

67 lines
2.4 KiB
Plaintext

<div class="container is-fluid" id="passwords">
<div class="columns is-centered is-mobile">
<div id="registrations-column" class="column is-four-fifths-mobile is-two-thirds-tablet is-half-desktop">
<section class="hero is-primary">
<div class="hero-body">
<div class="container">
<h1 class="title has-text-centered">
Update Password
</h1>
</div>
</div>
</section>
<div id="passwords-column-form">
<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<%= f.input :reset_password_token, as: :hidden %>
<%= f.full_error :reset_password_token %>
<div class="field">
<%= f.label :password, class: "label" %>
<p class="control has-icons-left has-icons-right">
<%= f.input_field :password,
required: true,
autofocus: true,
autocomplete: "new-password",
hint: ("#{@minimum_password_length} characters minimum"),
class: "input" %>
<span class="icon is-small is-left">
<i class="fas fa-lock"></i>
</span>
</p>
<%= f.full_error :password, class: "help is-danger" %>
</div>
<div class="field">
<%= f.label :password_confirmation, class: "label" %>
<p class="control has-icons-left has-icons-right">
<%= f.input_field :password_confirmation,
required: true,
autocomplete: "new-password",
class: "input" %>
<span class="icon is-small is-left">
<i class="fas fa-lock"></i>
</span>
</p>
<%= f.full_error :password_confirmation, class: "help is-danger" %>
</div>
<div class="field">
<p class="control" id="registrations-column-form-submit-button">
<%= f.button :submit, "Update password", class: "button is-primary is-fullwidth is-rounded" %>
</p>
</div>
<% end %>
<%= render "devise/shared/links" %>
</div>
</div>
</div>
</div>