X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d9b8ebeb01e6cf81f6d9ea70748fedb14e4d86fa..acd899d26dbf09620d598d74759fc6f7aac4846a:/app/views/traces/new.html.erb diff --git a/app/views/traces/new.html.erb b/app/views/traces/new.html.erb index fc6a9f1a9..ae5ffe565 100644 --- a/app/views/traces/new.html.erb +++ b/app/views/traces/new.html.erb @@ -2,32 +2,17 @@

<%= t ".upload_trace" %>

<% end %> -<%= error_messages_for "trace" %> - -<%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> -
-
-
- - <%= f.file_field :gpx_file %> -
-
- - <%= f.text_field :description %> -
-
- - <%= f.text_field :tagstring %> - (<%= t ".tags_help" %>) -
-
- - <%= f.select :visibility, [[t("traces.visibility.private"), "private"], [t("traces.visibility.public"), "public"], [t("traces.visibility.trackable"), "trackable"], [t("traces.visibility.identifiable"), "identifiable"]] %> - ("><%= t ".visibility_help" %>) -
-
- - <%= f.submit %> - "><%= t ".help" %> -
+<%= bootstrap_form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> + <%= f.file_field :gpx_file, :placeholder => t("helpers.file.prompt"), + :help => ".gpx, .tar.gz, .tar.bz2, .tar, .zip, .gpx.gz, .gpx.bz2" %> + <%= f.text_field :description, :maxlength => 255 %> + <%= f.text_field :tagstring %> + <%= f.select :visibility, + [[t("traces.visibility.private"), "private"], + [t("traces.visibility.public"), "public"], + [t("traces.visibility.trackable"), "trackable"], + [t("traces.visibility.identifiable"), "identifiable"]], + :help => link_to(t(".visibility_help"), t(".visibility_help_url")) %> + <%= f.primary %> + <%= link_to t(".help"), t(".help_url"), :class => "btn btn-link" %> <% end %>