]> git.openstreetmap.org Git - rails.git/commitdiff
Set trace description input max length
authorAnton Khorev <tony29@yandex.ru>
Fri, 15 Jul 2022 02:19:00 +0000 (05:19 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 15 Jul 2022 02:19:00 +0000 (05:19 +0300)
app/views/traces/edit.html.erb
app/views/traces/new.html.erb

index 7365295bd1176c96317c9cdf9aa1e0195e1ea454..09fe9c510515c0eae9aa3650a5edb1ebdf2f8280 100644 (file)
@@ -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"],
index b7951cb32eb8f167f46b11e0cef5500441ec4323..bff8cd3bc0af22acd12731ebf364c4087b8fcbd2 100644 (file)
@@ -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"],