isprambiente/medplan

View on GitHub
app/views/devise/registrations/new.html.haml

Summary

Maintainability
Test Coverage
%h2 Sign up
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
  = render "devise/shared/error_messages", resource: resource
  .field
    = f.label Settings.auth.field
    %br/
    = f.email_field Settings.auth.field, autofocus: true, autocomplete: Settings.auth.field
  .field
    = f.label :password
    - if @minimum_password_length
      %em
        (#{@minimum_password_length} characters minimum)
    %br/
    = f.password_field :password, autocomplete: "new-password"
  .field
    = f.label :password_confirmation
    %br/
    = f.password_field :password_confirmation, autocomplete: "new-password"
  .actions
    = f.submit "Sign up"
= render "devise/shared/links"