From 2328172c6965cbb9e034b2c21bbd29023902a099 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 26 Jul 2026 17:29:14 +0200 Subject: More visual cleanups for input fields --- app/views/users/edit.html.erb | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'app/views/users') diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 4f1a22b8..9df93815 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -1,14 +1,13 @@ -

<%= @user == current_user ? t(".my_account") : t(".edit_user", :login => @user.login) %>

+
+

<%= @user == current_user ? t(".my_account") : t(".edit_user", :login => @user.login) %>

-<% if @user.errors.any? %> -
-
    <% @user.errors.full_messages.each do |msg| %>
  • <%= msg %>
  • <% end %>
-
-<% end %> + <% if @user.errors.any? %> +
+
    <% @user.errors.full_messages.each do |msg| %>
  • <%= msg %>
  • <% end %>
+
+ <% end %> -
<%= form_for @user do |f| %> -
<%= t("users.labels.login") %>
<%= f.text_field :login, :autocomplete => "username" %>
@@ -29,7 +28,6 @@
<%= submit_tag t(".update") %>
<% end %> -
<% if @user == current_user %>
<%= t(".second_factor") %>
@@ -37,7 +35,6 @@ <% if current_user.otp_enrolled? %>

<%= t(".enabled") %>

<%= form_tag otp_enrollment_path, :method => :delete, :class => "otp_form" do %> - <%= text_field_tag :login, current_user.login, :autocomplete => "username", :readonly => true, :tabindex => -1, :class => "visually_hidden" %> <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password" %> <%= text_field_tag :code, nil, :placeholder => t(".current_code"), :autocomplete => "one-time-code", :inputmode => "numeric" %> @@ -48,7 +45,6 @@ <% else %>

<%= t(".not_enrolled") %>

<%= form_tag otp_enrollment_path, :method => :post, :class => "otp_form" do %> - <%= text_field_tag :login, current_user.login, :autocomplete => "username", :readonly => true, :tabindex => -1, :class => "visually_hidden" %> <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password"%> <%= button_tag :type => "submit", :class => "action_button" do %> <%= icon("shield-lock", library: "tabler", "aria-hidden": true) %> <%= t(".enable_second_factor") %> -- cgit v1.3