X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/03fb042591bf60cd74aa277ee3de98f02d8486d3..d2db785a2ac74eed0392694fa659cce7337c68d1:/app/views/trace/create.html.erb diff --git a/app/views/trace/create.html.erb b/app/views/trace/create.html.erb index ba8b8e700..23346a951 100644 --- a/app/views/trace/create.html.erb +++ b/app/views/trace/create.html.erb @@ -2,12 +2,12 @@ <%= error_messages_for 'trace' %> -<% form_for :trace, @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> +<%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
<%= t'trace.trace_form.upload_gpx' %> | <%= f.file_field :gpx_file, :size => 50, :maxlength => 255 %> |
<%= t'trace.trace_form.description' %> | <%= f.text_field :description, :size => 50, :maxlength => 255 %> |
<%= t'trace.trace_form.tags' %> | <%= f.text_field :tagstring, :size => 50, :maxlength => 255 %> (<%= t'trace.trace_form.tags_help' %>) |
<%= t'trace.trace_form.visibility' %> | <%= 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' %>) |
<%= t'trace.trace_form.upload_gpx' %> | <%= f.file_field :gpx_file, :size => 50, :maxlength => 255 %> |
<%= t'trace.trace_form.description' %> | <%= f.text_field :description, :size => 50, :maxlength => 255 %> |
<%= t'trace.trace_form.tags' %> | <%= f.text_field :tagstring, :size => 50, :maxlength => 255 %> (<%= t'trace.trace_form.tags_help' %>) |
<%= t'trace.trace_form.visibility' %> | <%= 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' %> |