X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/57d3b3af55a0bb37eb964aa75a9f1549df9a771c..53aa7259bb0612eb48a17d0b954ad71ea37d87a4:/app/views/traces/new.html.erb?ds=inline diff --git a/app/views/traces/new.html.erb b/app/views/traces/new.html.erb index 42d9f8ab2..b7951cb32 100644 --- a/app/views/traces/new.html.erb +++ b/app/views/traces/new.html.erb @@ -1,33 +1,17 @@ <% content_for :heading do %> -

<%= t '.upload_trace' %>

+

<%= 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' %>) -
-
- - <%= submit_tag t('.upload_button') %> - <%= t '.help' %> -
+<%= 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 :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 %>