X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2e2f2124728ca755b2db8f83f022eaea24b647f0..996d5413d85e4d38d33ac3827a1fc853ba9d0149:/app/views/trace/create.html.erb diff --git a/app/views/trace/create.html.erb b/app/views/trace/create.html.erb index 140b74918..43d4eff37 100644 --- a/app/views/trace/create.html.erb +++ b/app/views/trace/create.html.erb @@ -1,5 +1,33 @@ -

<%= t'trace.create.upload_trace' %>

+<% content_for :heading do %> +

<%= t'trace.create.upload_trace' %>

+<% end %> <%= error_messages_for 'trace' %> -<%= render :partial => 'trace_form' %> +<%= 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'trace.trace_form.tags_help' %>) +
+
+ + <%= f.select :visibility, [[t('trace.visibility.private'),"private"],[t('trace.visibility.public'),"public"],[t('trace.visibility.trackable'),"trackable"],[t('trace.visibility.identifiable'),"identifiable"]] %> + (<%= t'trace.trace_form.visibility_help' %>) +
+
+ + <%= submit_tag t('trace.trace_form.upload_button') %> + <%= t'trace.trace_form.help' %> +
+<% end %>