aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-15 10:23:18 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-15 10:23:18 +0100
commite46f849f1f8b3e2a002ac3b124331011a86f9ea3 (patch)
treed52ae325f2ccd988564979edb24cb824d94d276a
parenta78ecb33ff5cba87b96f44b5ce42e9fce24f7a93 (diff)
downloadoperum-e46f849f1f8b3e2a002ac3b124331011a86f9ea3.tar.gz
operum-e46f849f1f8b3e2a002ac3b124331011a86f9ea3.zip
Added the 'autocapitalize' attribute
I did not bother with this attribute before, but it makes a lot of sense in some inputs. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--app/views/searches/_form.html.erb2
-rw-r--r--app/views/things/_form.html.erb16
2 files changed, 9 insertions, 9 deletions
diff --git a/app/views/searches/_form.html.erb b/app/views/searches/_form.html.erb
index c940fe2..15b5735 100644
--- a/app/views/searches/_form.html.erb
+++ b/app/views/searches/_form.html.erb
@@ -5,7 +5,7 @@
<div id="search_form">
<div id="search-form-name" class="hidden">
<%= form.label :name %>
- <%= form.text_field :name, required: true, autocomplete: 'off' %>
+ <%= form.text_field :name, required: true, autocomplete: 'off', autocapitalize: 'on' %>
</div>
<div>
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 @@
<div id="thing_form">
<div class="thing_large">
<%= form.label :title %>
- <%= form.text_field :title, autofocus: true, required: true %>
+ <%= form.text_field :title, autofocus: true, autocapitalize: 'on', required: true %>
</div>
<div class="thing_large">
<%= form.label :authors %>
- <%= form.text_field :authors, required: true %>
+ <%= form.text_field :authors, autocapitalize: 'words', required: true %>
<%= form.check_box :editors %>
<%= form.label :editors %>
</div>
<div class="thing_large">
<%= form.label :note %>
- <%= form.text_field :note %>
+ <%= form.text_field :note, autocapitalize: 'on' %>
</div>
<div>
<%= form.label :target %>
- <%= form.text_field :target, required: true %>
+ <%= form.text_field :target, autocapitalize: 'on', required: true %>
</div>
<div>
<%= form.label :publisher %>
- <%= form.text_field :publisher %>
+ <%= form.text_field :publisher, autocapitalize: 'on' %>
</div>
<div>
@@ -36,7 +36,7 @@
<div>
<%= form.label :address %>
- <%= form.text_field :address %>
+ <%= form.text_field :address, autocapitalize: 'on' %>
</div>
<div>
@@ -51,7 +51,7 @@
<div>
<%= form.label :insideof %>
- <%= form.text_field :insideof %>
+ <%= form.text_field :insideof, autocapitalize: 'on' %>
</div>
<div>
@@ -81,7 +81,7 @@
<div>
<%= form.label :where_is_it %>
- <%= form.text_field :where_is_it %>
+ <%= form.text_field :where_is_it, autocapitalize: 'on' %>
</div>
</div>