- <%= text_input f, :name,
- class: input_class(f, :name, "form-control"),
- aria_describedby: error_id(f, :name)
- %>
- <%= error_tag f, :name %>
-
+ <%= text_input f, :name,
+ class: input_class(f, :name, "form-control"),
+ aria_describedby: error_ids(f, :name)
+ %>
+ <%= error_tag f, :name %>
- <%= label f, :price, class: "form-label" %>
-
- <%= number_input f, :price,
- class: input_class(f, :price, "form-control"),
- step: "any",
- aria_describedby: error_id(f, :price)
- %>
- <%= error_tag f, :price %>
-
+ <%= label f, :price, class: "form-label" %>
+
+ <%= number_input f, :price,
+ class: input_class(f, :price, "form-control"),
+ step: "any",
+ aria_describedby: error_ids(f, :price)
+ %>
+ <%= error_tag f, :price %>
-
- <%= label f, :description, class: "form-label" %>
-
- <%= textarea f, :description,
- class: input_class(f, :description, "form-control"),
- aria_describedby: error_id(f, :description)
- %>
- <%= error_tag f, :description %>
-
+ <%= label f, :description, class: "form-label" %>
+
+ <%= textarea f, :description,
+ class: input_class(f, :description, "form-control"),
+ aria_describedby: error_ids(f, :description)
+ %>
+ <%= error_tag f, :description %>
diff --git a/lib/bones73k_web/live/user/registration.html.leex b/lib/bones73k_web/live/user/registration.html.leex
index 412a78c..f23cee6 100644
--- a/lib/bones73k_web/live/user/registration.html.leex
+++ b/lib/bones73k_web/live/user/registration.html.leex
@@ -9,40 +9,33 @@
<%= form_for @changeset, "#", [phx_change: :validate, phx_submit: :save, novalidate: true, id: "reg_form"], fn f -> %>
-
- <%= label f, :email, class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-at", [class: "icon"] %>
-
- <%= email_input f, :email,
- value: input_value(f, :email),
- class: input_class(f, :email, "form-control"),
- placeholder: "e.g., babka@73k.us",
- maxlength: User.max_email,
- autofocus: true,
- phx_debounce: "blur",
- aria_describedby: error_id(f, :email)
- %>
- <%= error_tag f, :email %>
-
+
+ <%= label f, :email, class: "form-label" %>
+
+ <%= icon_div @socket, "bi-at", [class: "icon is-left text-muted fs-5"] %>
+ <%= email_input f, :email,
+ value: input_value(f, :email),
+ class: input_class(f, :email, "form-control"),
+ placeholder: "e.g., babka@73k.us",
+ maxlength: User.max_email,
+ autofocus: true,
+ phx_debounce: "blur",
+ aria_describedby: error_ids(f, :email)
+ %>
+ <%= error_tag f, :email %>
-
- <%= label f, :password, class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-key", [class: "icon"] %>
-
- <%= password_input f, :password,
- value: input_value(f, :password),
- class: input_class(f, :password, "form-control"),
- maxlength: User.max_password,
- phx_debounce: "250",
- aria_describedby: error_id(f, :password)
- %>
- <%= error_tag f, :password %>
-
+ <%= label f, :password, class: "form-label" %>
+
+ <%= icon_div @socket, "bi-key", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :password,
+ value: input_value(f, :password),
+ class: input_class(f, :password, "form-control"),
+ maxlength: User.max_password,
+ phx_debounce: "250",
+ aria_describedby: error_ids(f, :password)
+ %>
+ <%= error_tag f, :password %>
diff --git a/lib/bones73k_web/live/user/reset_password.html.leex b/lib/bones73k_web/live/user/reset_password.html.leex
index 8591af7..67bc766 100644
--- a/lib/bones73k_web/live/user/reset_password.html.leex
+++ b/lib/bones73k_web/live/user/reset_password.html.leex
@@ -9,39 +9,32 @@
<%= form_for @changeset, "#", [phx_change: :validate, phx_submit: :save, novalidate: true, id: "pw_reset_form"], fn f -> %>
-
- <%= label f, :password, "New password", class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-key", [class: "icon"] %>
-
- <%= password_input f, :password,
- value: input_value(f, :password),
- class: input_class(f, :password, "form-control"),
- maxlength: User.max_password,
- autofocus: true,
- aria_describedby: error_id(f, :password)
- %>
- <%= error_tag f, :password %>
-
+ <%= label f, :password, "New password", class: "form-label" %>
+
+ <%= icon_div @socket, "bi-key", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :password,
+ value: input_value(f, :password),
+ class: input_class(f, :password, "form-control"),
+ maxlength: User.max_password,
+ autofocus: true,
+ aria_describedby: error_ids(f, :password)
+ %>
+ <%= error_tag f, :password %>
-
- <%= label f, :password_confirmation, "Confirm new password", class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-key-fill", [class: "icon"] %>
-
- <%= password_input f, :password_confirmation,
- value: input_value(f, :password_confirmation),
- class: input_class(f, :password_confirmation, "form-control"),
- maxlength: User.max_password,
- aria_describedby: error_id(f, :password_confirmation)
- %>
- <%= error_tag f, :password_confirmation %>
-
+ <%= label f, :password_confirmation, "Confirm new password", class: "form-label" %>
+
+ <%= icon_div @socket, "bi-key-fill", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :password_confirmation,
+ value: input_value(f, :password_confirmation),
+ class: input_class(f, :password_confirmation, "form-control"),
+ maxlength: User.max_password,
+ aria_describedby: error_ids(f, :password_confirmation)
+ %>
+ <%= error_tag f, :password_confirmation %>
+
<%= submit "Reset password",
class: "btn btn-primary",
diff --git a/lib/bones73k_web/live/user/settings/email.html.leex b/lib/bones73k_web/live/user/settings/email.html.leex
index 29a9aae..18bc711 100644
--- a/lib/bones73k_web/live/user/settings/email.html.leex
+++ b/lib/bones73k_web/live/user/settings/email.html.leex
@@ -4,40 +4,34 @@
<%= form_for @changeset, "#", [phx_change: :validate, phx_submit: :save, phx_target: @myself], fn f -> %>
-
- <%= label f, :email, class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-at", [class: "icon"] %>
-
- <%= email_input f, :email,
- value: input_value(f, :email),
- class: input_class(f, :email, "form-control"),
- placeholder: "e.g., babka@73k.us",
- maxlength: User.max_email,
- phx_debounce: "500",
- aria_describedby: error_id(f, :email)
- %>
- <%= error_tag f, :email %>
-
+
+ <%= label f, :email, class: "form-label" %>
+
+ <%= icon_div @socket, "bi-at", [class: "icon is-left text-muted fs-5"] %>
+ <%= email_input f, :email,
+ value: input_value(f, :email),
+ class: input_class(f, :email, "form-control"),
+ placeholder: "e.g., babka@73k.us",
+ maxlength: User.max_email,
+ phx_debounce: "500",
+ aria_describedby: error_ids(f, :email)
+ %>
+ <%= error_tag f, :email %>
-
- <%= label f, :current_password, class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-lock", [class: "icon"] %>
-
- <%= password_input f, :current_password,
- value: input_value(f, :current_password),
- class: "form-control",
- aria_describedby: error_id(f, :current_password)
- %>
- <%= error_tag f, :current_password %>
-
+ <%= label f, :current_password, class: "form-label" %>
+
+ <%= icon_div @socket, "bi-lock", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :current_password,
+ value: input_value(f, :current_password),
+ class: "form-control",
+ aria_describedby: error_ids(f, :current_password)
+ %>
+ <%= error_tag f, :current_password %>
+
<%= submit "Change email",
class: "btn btn-primary",
diff --git a/lib/bones73k_web/live/user/settings/password.html.leex b/lib/bones73k_web/live/user/settings/password.html.leex
index e6afacd..6d21d7d 100644
--- a/lib/bones73k_web/live/user/settings/password.html.leex
+++ b/lib/bones73k_web/live/user/settings/password.html.leex
@@ -4,52 +4,41 @@
<%= form_for @changeset, "#", [phx_change: :validate, phx_submit: :save, phx_target: @myself], fn f -> %>
-
- <%= label f, :password, "New password", class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-key", [class: "icon"] %>
-
- <%= password_input f, :password,
- value: input_value(f, :password),
- class: input_class(f, :password, "form-control"),
- maxlength: User.max_password,
- phx_debounce: "500",
- aria_describedby: error_id(f, :password)
- %>
- <%= error_tag f, :password %>
-
+
+ <%= label f, :password, "New password", class: "form-label" %>
+
+ <%= icon_div @socket, "bi-key", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :password,
+ value: input_value(f, :password),
+ class: input_class(f, :password, "form-control"),
+ maxlength: User.max_password,
+ phx_debounce: "500",
+ aria_describedby: error_ids(f, :password)
+ %>
+ <%= error_tag f, :password %>
-
- <%= label f, :password_confirmation, "Confirm new password", class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-key-fill", [class: "icon"] %>
-
- <%= password_input f, :password_confirmation,
- value: input_value(f, :password_confirmation),
- class: input_class(f, :password_confirmation, "form-control"),
- maxlength: User.max_password,
- aria_describedby: error_id(f, :password_confirmation)
- %>
- <%= error_tag f, :password_confirmation %>
-
+ <%= label f, :password_confirmation, "Confirm new password", class: "form-label" %>
+
+ <%= icon_div @socket, "bi-key-fill", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :password_confirmation,
+ value: input_value(f, :password_confirmation),
+ class: input_class(f, :password_confirmation, "form-control"),
+ maxlength: User.max_password,
+ aria_describedby: error_ids(f, :password_confirmation)
+ %>
+ <%= error_tag f, :password_confirmation %>
-
- <%= label f, :current_password, class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-lock", [class: "icon"] %>
-
- <%= password_input f, :current_password,
- value: input_value(f, :current_password),
- class: "form-control",
- aria_describedby: error_id(f, :current_password)
- %>
- <%= error_tag f, :current_password %>
-
+ <%= label f, :current_password, class: "form-label" %>
+
+ <%= icon_div @socket, "bi-lock", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :current_password,
+ value: input_value(f, :current_password),
+ class: "form-control",
+ aria_describedby: error_ids(f, :current_password)
+ %>
+ <%= error_tag f, :current_password %>
@@ -68,10 +57,4 @@
<%= hidden_input f, :params_token, value: Phoenix.Token.encrypt(Bones73kWeb.Endpoint, "login_params", @login_params) %>
<% end %>
- <%# hidden form to submit user for relogin after password change %>
- <%#= form_for :user_login, Routes.user_session_path(@socket, :create), [phx_trigger_action: @trigger_submit], fn f -> %>
- <%#= hidden_input f, :login_params_token, value: Phoenix.Token.encrypt(Bones73kWeb.Endpoint, "login_params", @login_params) %>
- <%#= hidden_input f, :remember_me, value: false %>
- <%# end %>
-
diff --git a/lib/bones73k_web/live/user_management/form_component.html.leex b/lib/bones73k_web/live/user_management/form_component.html.leex
index 2f0c208..6d856cc 100644
--- a/lib/bones73k_web/live/user_management/form_component.html.leex
+++ b/lib/bones73k_web/live/user_management/form_component.html.leex
@@ -6,31 +6,37 @@
-
- <%= label f, :email, class: "form-label" %>
-
-
- <%= icon_div @socket, "bi-at", [class: "icon"] %>
-
- <%= email_input f, :email,
- value: input_value(f, :email),
- class: input_class(f, :email, "form-control"),
- placeholder: "e.g., babka@73k.us",
- maxlength: User.max_email,
- autofocus: true,
- phx_debounce: "250",
- aria_describedby: error_id(f, :email)
- %>
- <%= error_tag f, :email %>
-
+ <%= label f, :email, class: "form-label" %>
+
+ <%= icon_div @socket, "bi-at", [class: "icon is-left text-muted fs-5"] %>
+ <%= email_input f, :email,
+ value: input_value(f, :email),
+ class: input_class(f, :email, "form-control"),
+ placeholder: "e.g., babka@73k.us",
+ maxlength: User.max_email,
+ autofocus: true,
+ phx_debounce: "250",
+ aria_describedby: error_ids(f, :email)
+ %>
+ <%= error_tag f, :email %>
+
+
+ <%= label f, :password, class: "form-label" %>
+
+ <%= icon_div @socket, "bi-key", [class: "icon is-left text-muted fs-5"] %>
+ <%= password_input f, :password,
+ value: input_value(f, :password),
+ class: input_class(f, :password, "form-control"),
+ maxlength: User.max_password,
+ aria_describedby: error_ids(f, :password)
+ %>
+ <%= error_tag f, :password %>
<%= if Roles.can?(@current_user, %User{}, :edit_role) do %>
<%= label f, :role, class: "form-label" %>
-