JuanVqz/doctors

View on GitHub
app/views/devise/passwords/edit.html.haml

Summary

Maintainability
Test Coverage
= render 'devise/shared/title', title: t('.title')

= 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

  = f.input :password, label: false, required: true, autofocus: true, placeholder: t('.password'), hint: ("#{@minimum_password_length} caracteres mínimo" if @minimum_password_length), input_html: { autocomplete: 'new-password' }

  = f.input :password_confirmation, label: false, required: true, placeholder: t('.password_confirmation')

  = f.button :submit, t('.title')

= render 'devise/shared/links'