mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
31 lines
834 B
Elixir
31 lines
834 B
Elixir
|
<h1>Edit profile</h1>
|
||
|
|
||
|
<%= form_for @changeset, @action, [as: :user], fn f -> %>
|
||
|
<%= if @changeset.action do %>
|
||
|
<div class="alert alert-danger">
|
||
|
<p>Oops, something went wrong! Please check the errors below.</p>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
|
||
|
<%= label f, :current_password %>
|
||
|
<%= password_input f, :current_password %>
|
||
|
<%= error_tag f, :current_password %>
|
||
|
|
||
|
<%= label f, Pow.Ecto.Schema.user_id_field(@changeset) %>
|
||
|
<%= text_input f, Pow.Ecto.Schema.user_id_field(@changeset) %>
|
||
|
<%= error_tag f, Pow.Ecto.Schema.user_id_field(@changeset) %>
|
||
|
|
||
|
<%= label f, :password %>
|
||
|
<%= password_input f, :password %>
|
||
|
<%= error_tag f, :password %>
|
||
|
|
||
|
<%= label f, :confirm_password %>
|
||
|
<%= password_input f, :confirm_password %>
|
||
|
<%= error_tag f, :confirm_password %>
|
||
|
|
||
|
<div>
|
||
|
<%= submit "Update" %>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
|