From e46f849f1f8b3e2a002ac3b124331011a86f9ea3 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 15 Mar 2024 10:23:18 +0100 Subject: Added the 'autocapitalize' attribute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I did not bother with this attribute before, but it makes a lot of sense in some inputs. Signed-off-by: Miquel Sabaté Solà --- app/views/things/_form.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'app/views/things/_form.html.erb') diff --git a/app/views/things/_form.html.erb b/app/views/things/_form.html.erb index 0569cc4..62058a9 100644 --- a/app/views/things/_form.html.erb +++ b/app/views/things/_form.html.erb @@ -4,29 +4,29 @@
<%= form.label :title %> - <%= form.text_field :title, autofocus: true, required: true %> + <%= form.text_field :title, autofocus: true, autocapitalize: 'on', required: true %>
<%= form.label :authors %> - <%= form.text_field :authors, required: true %> + <%= form.text_field :authors, autocapitalize: 'words', required: true %> <%= form.check_box :editors %> <%= form.label :editors %>
<%= form.label :note %> - <%= form.text_field :note %> + <%= form.text_field :note, autocapitalize: 'on' %>
<%= form.label :target %> - <%= form.text_field :target, required: true %> + <%= form.text_field :target, autocapitalize: 'on', required: true %>
<%= form.label :publisher %> - <%= form.text_field :publisher %> + <%= form.text_field :publisher, autocapitalize: 'on' %>
@@ -36,7 +36,7 @@
<%= form.label :address %> - <%= form.text_field :address %> + <%= form.text_field :address, autocapitalize: 'on' %>
@@ -51,7 +51,7 @@
<%= form.label :insideof %> - <%= form.text_field :insideof %> + <%= form.text_field :insideof, autocapitalize: 'on' %>
@@ -81,7 +81,7 @@
<%= form.label :where_is_it %> - <%= form.text_field :where_is_it %> + <%= form.text_field :where_is_it, autocapitalize: 'on' %>
-- cgit v1.2.3