]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/create.html.erb
Allow redcarpet to add nofollow to links
[rails.git] / app / views / trace / create.html.erb
index 9a3f48f8baf61795cfc37c96477970cf06ff9d13..43d4eff3750bba96b390d047626dfce792132189 100644 (file)
@@ -7,23 +7,27 @@
 <%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
   <div class="standard-form">
     <fieldset>
 <%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
   <div class="standard-form">
     <fieldset>
-      <label><%= t'trace.trace_form.upload_gpx' %></label>
-      <%= f.file_field :gpx_file %>
+      <div class='form-row'>
+        <label for="trace_gpx_file" class="standard-label"><%= t'trace.trace_form.upload_gpx' %></label>
+        <%= f.file_field :gpx_file %>
+      </div>
+      <div class='form-row'>
+        <label class="standard-label"><%= t'trace.trace_form.description' %></label>
+        <%= f.text_field :description %>
+      </div>
+      <div class='form-row'>
+        <label class="standard-label"><%= t'trace.trace_form.tags' %></label>
+        <%= f.text_field :tagstring %>
+        <span class="form-help deemphasize">(<%= t'trace.trace_form.tags_help' %>)</span>
+      </div>
+      <div class='form-row'>
+        <label class="standard-label"><%= t'trace.trace_form.visibility' %></label>
+        <%= f.select :visibility, [[t('trace.visibility.private'),"private"],[t('trace.visibility.public'),"public"],[t('trace.visibility.trackable'),"trackable"],[t('trace.visibility.identifiable'),"identifiable"]] %>
+        <span class="form-help deemphasize">(<a href="<%= t'trace.trace_form.visibility_help_url' %>"><%= t'trace.trace_form.visibility_help' %></a>)</span>
+      </div>
     </fieldset>
     </fieldset>
-    <fieldset>
-      <label><%= t'trace.trace_form.description' %></label>
-      <%= f.text_field :description %></td></tr>
-    </fieldset>
-    <fieldset>
-      <label><%= t'trace.trace_form.tags' %></label>
-      <%= f.text_field :tagstring %>
-      <p class="form-help deemphasize">(<%= t'trace.trace_form.tags_help' %>)</p>
-    </fieldset>
-    <fieldset>
-      <label><%= t'trace.trace_form.visibility' %></label>
-      <%= f.select :visibility, [[t('trace.visibility.private'),"private"],[t('trace.visibility.public'),"public"],[t('trace.visibility.trackable'),"trackable"],[t('trace.visibility.identifiable'),"identifiable"]] %>
-      <p class="form-help deemphasize">(<a href="<%= t'trace.trace_form.visibility_help_url' %>"><%= t'trace.trace_form.visibility_help' %></a>)</p>
-      <%= submit_tag t('trace.trace_form.upload_button') %>
-      <p class="form-help deemphasize"><a href="<%= t'trace.trace_form.help_url' %>"><%= t'trace.trace_form.help' %></a></p>
+
+    <%= submit_tag t('trace.trace_form.upload_button') %>
+    <span class="form-help deemphasize"><a href="<%= t'trace.trace_form.help_url' %>"><%= t'trace.trace_form.help' %></a></span>
   </div>
 <% end %>
   </div>
 <% end %>