Commit ccdaa52ab584f27fd617818bda5b86c31718a961

Thomas de Grivel 2022-06-26T20:55:26

[admin] slug_

diff --git a/lib/kmxgit_web/templates/admin/user/form.html.heex b/lib/kmxgit_web/templates/admin/user/form.html.heex
index 38805dc..cbff28a 100644
--- a/lib/kmxgit_web/templates/admin/user/form.html.heex
+++ b/lib/kmxgit_web/templates/admin/user/form.html.heex
@@ -12,13 +12,11 @@
     <%= error_tag f, :email %>
   </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" %>
-      <%= error_tag ff, :slug %>
-    </div>
-  <% end %>
+  <div class="mb-3">
+    <%= label f, :slug_, gettext("Login"), class: "form-label" %>
+    <%= text_input f, :slug_, class: "form-control" %>
+    <%= error_tag f, :slug_ %>
+  </div>
 
   <div class="mb-3">
     <%= label f, :description, class: "form-label" %>