From: Anton Khorev Date: Fri, 15 Jul 2022 02:19:00 +0000 (+0300) Subject: Set trace description input max length X-Git-Tag: live~1646^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c66f850cd123f751a229888fae31f7e2303b4169 Set trace description input max length --- diff --git a/app/views/traces/edit.html.erb b/app/views/traces/edit.html.erb index 7365295bd..09fe9c510 100644 --- a/app/views/traces/edit.html.erb +++ b/app/views/traces/edit.html.erb @@ -6,7 +6,7 @@ <%= bootstrap_form_for @trace do |f| %> <%= f.text_field :name, :disabled => true %> - <%= f.text_field :description %> + <%= f.text_field :description, :maxlength => 255 %> <%= f.text_field :tagstring %> <%= f.select :visibility, [[t("traces.visibility.private"), "private"], diff --git a/app/views/traces/new.html.erb b/app/views/traces/new.html.erb index b7951cb32..bff8cd3bc 100644 --- a/app/views/traces/new.html.erb +++ b/app/views/traces/new.html.erb @@ -4,7 +4,7 @@ <%= bootstrap_form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> <%= f.file_field :gpx_file, :placeholder => t("helpers.file.prompt") %> - <%= f.text_field :description %> + <%= f.text_field :description, :maxlength => 255 %> <%= f.text_field :tagstring %> <%= f.select :visibility, [[t("traces.visibility.private"), "private"],