From f3cb8db1f415cdb7114f95e19a1bcec26dd541ce Mon Sep 17 00:00:00 2001 From: barbie-bot Date: Sat, 28 Feb 2026 17:37:49 +0000 Subject: [PATCH] Setup wizard: use labeled-form grid for vertical field layout Replace the fieldset-based layout with the app's standard .labeled-form CSS grid so email, password and retype fields stack vertically (label left, input right) exactly like the existing sign-in and registration forms. Section headings and checkbox rows are given explicit grid-column spans via inline styles so they span the full form width rather than being constrained to the label column. Co-Authored-By: Claude Sonnet 4.6 --- app/views/setup/new.html.erb | 59 ++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/app/views/setup/new.html.erb b/app/views/setup/new.html.erb index bcfb20e..2aaae85 100644 --- a/app/views/setup/new.html.erb +++ b/app/views/setup/new.html.erb @@ -1,38 +1,39 @@ -<%= form_with url: setup_path, method: :post, class: "main-area" do |f| %> -
- <%= t(".admin_account") %> +<%= form_with url: setup_path, method: :post, class: "labeled-form main-area" do %> - - <%= email_field_tag :admin_email, params[:admin_email], - id: "admin_email", required: true, size: 30, autofocus: true, - autocomplete: "email" %> +

+ <%= t(".admin_account") %> +

- - <%= password_field_tag :admin_password, nil, - id: "admin_password", required: true, size: 30, - autocomplete: "new-password" %> + + <%= email_field_tag :admin_email, params[:admin_email], + id: "admin_email", required: true, size: 30, autofocus: true, + autocomplete: "email" %> - - <%= password_field_tag :admin_password_confirmation, nil, - id: "admin_password_confirmation", required: true, size: 30, - autocomplete: "off" %> -
+ + <%= password_field_tag :admin_password, nil, + id: "admin_password", required: true, size: 30, + autocomplete: "new-password" %> -
- <%= t(".options") %> + + <%= password_field_tag :admin_password_confirmation, nil, + id: "admin_password_confirmation", required: true, size: 30, + autocomplete: "off" %> - +

+ <%= t(".options") %> +

- -
+ + + <%= submit_tag t(".submit") %> <% end %>