X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/02628bed1e7b5c2656bc68076403467e92462b4f..ebcc988376b0dad8a0969803d52b1073420c77b7:/app/views/trace/_trace_form.html.erb diff --git a/app/views/trace/_trace_form.html.erb b/app/views/trace/_trace_form.html.erb index 86fc29c3a..3d93b65e8 100644 --- a/app/views/trace/_trace_form.html.erb +++ b/app/views/trace/_trace_form.html.erb @@ -1,9 +1,13 @@ +<% if @user.traces.count(:conditions => ["inserted=?", false]) > 4 %> +
<%= t'trace.trace_header.traces_waiting', :count => @user.traces.count(:conditions => ["inserted=?", false]) %>
+<% end %> + <% form_for :trace, @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.public' %> | <%= f.check_box :public %> (<%= t'trace.trace_form.public_help' %>) |
<%= 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' %> |