More composable forms (#989)

* Make forms more composable, opt-in to form builder

* Remove unused method

* Simpler money input controls

* Add in new form styling to imports

* Lint fixes

* Small tweak of multi select styles
This commit is contained in:
Zach Gollwitzer
2024-07-16 14:08:24 -04:00
committed by GitHub
parent 47523f64c2
commit e51806b98b
50 changed files with 268 additions and 488 deletions

View File

@@ -1,7 +1,7 @@
<%
header_title t(".title")
%>
<%= form_with model: @user, url: registration_path do |form| %>
<%= styled_form_with model: @user, url: registration_path, class: "space-y-4" do |form| %>
<%= auth_messages form %>
<%= form.email_field :email, autofocus: false, autocomplete: "email", required: "required", placeholder: "you@example.com", label: true %>
<%= form.password_field :password, autocomplete: "new-password", required: "required", label: true %>