Set trace description input max length

This commit is contained in:
Anton Khorev 2022-07-15 05:19:00 +03:00
parent 93e21aea7d
commit c66f850cd1
2 changed files with 2 additions and 2 deletions

View 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"],

View 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"],