Hash :
7d4e6756
Author :
Thomas de Grivel
Date :
2021-11-18T23:06:28
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
<div class="container-fluid center">
<h1>Edit user <%= @current_user.slug.slug %></h1>
<%= form_for @changeset, Routes.user_path(@conn, :update, @current_user.slug.slug), fn f -> %>
<div class="mb-3">
<%= label f, :name, class: "form-label" %>
<%= text_input f, :name, class: "form-control" %>
</div>
<div class="mb-3">
<%= label f, :email, class: "form-label" %>
<%= text_input f, :email, class: "form-control" %>
</div>
<%= inputs_for f, :slug, fn ff -> %>
<div class="mb-3">
<%= label ff, :slug, gettext("Login"), class: "form-label" %>
<%= text_input ff, :slug, class: "form-control" %>
</div>
<% end %>
<div class="mb-3">
<%= label f, :description, class: "form-label" %>
<%= textarea f, :description, class: "form-control" %>
</div>
<div class="mb-3">
<%= label f, :ssh_keys, gettext("SSH keys"), class: "form-label" %>
<%= textarea f, :ssh_keys, class: "form-control" %>
</div>
<div class="mb-3">
<%= label f, :password, class: "form-label" %>
<%= password_input f, :password, class: "form-control" %>
</div>
<div class="mb-3">
<%= label f, :password_confirmation, class: "form-label" %>
<%= password_input f, :password_confirmation, class: "form-control" %>
</div>
<div class="mb-3">
<%= link gettext("Cancel"),
to: Routes.slug_path(@conn, :show, @current_user.slug.slug),
class: "btn btn-secondary" %>
<%= submit gettext("Submit"), class: "btn btn-primary" %>
</div>
<% end %>
</div>