Profil - zmiana hasła
<%= link_to raw(" " + I18n.t('back')), :back, title: I18n.t('back'), class: "text-primary" %>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "form-horizontal" }) do |f| %> <%= devise_error_messages! %>
<%= f.label :email, class: "col-sm-2 control-label" %>
<%= f.text_field :email, class: "form-control", placeholder: 'Email', autofocus: true %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %>
<%= f.label :password, class: "col-sm-2 control-label" %>
<%= f.password_field :password, autocomplete: "off", class: "form-control", placeholder: 'Nowe Hasło' %>

<% if @minimum_password_length %> Minimialna ilość znakow: <%= @minimum_password_length %> <% end %> (Pozostaw puste jeśli nie chcesz zmieniać)

<%= f.label :password_confirmation, class: "col-sm-2 control-label" %>
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder: 'Powtorz Hasło' %>
<%= f.label :current_password, class: "col-sm-2 control-label" %>
<%= f.password_field :current_password, autocomplete: "off", class: "form-control", placeholder: 'Aktualne Hasło' %>

(Aktualne hasło jest potrzebne aby zatwierdzić zmiany)

<%= f.submit 'Zapisz', class: "btn btn-primary" %>
<% end %>
Profil - usunięcie konta

Aplikacja Ci się znudziła?

<%= button_to "Anuluj konto", registration_path(resource_name), data: { confirm: "Czy na pewno chcesz anulować konto?" }, method: :delete, class: "btn btn-danger" %>