]> git.openstreetmap.org Git - rails.git/blob - app/views/site/export.html.erb
Merge remote-tracking branch 'upstream/pull/4717'
[rails.git] / app / views / site / export.html.erb
1 <% set_title(t(".title")) %>
2
3 <%= render "sidebar_header", :title => t(".title") %>
4
5 <%= form_tag({ :controller => "export", :action => "finish" }, { :class => "export_form" }) do %>
6   <%= hidden_field_tag "format", "osm", :autocomplete => "off" %>
7
8   <div class='export_area_inputs text-center mb-3'>
9     <div class='export_boxy border border-secondary-subtle rounded bg-body-secondary' dir='ltr'>
10       <%= text_field_tag("maxlat", nil, :size => 10, :autocomplete => "off", :class => "form-control text-center mx-auto") %>
11       <div class="clearfix">
12         <%= text_field_tag("minlon", nil, :size => 10, :autocomplete => "off", :class => "form-control text-center my-2") %>
13         <%= text_field_tag("maxlon", nil, :size => 10, :autocomplete => "off", :class => "form-control text-center my-2") %>
14       </div>
15       <%= text_field_tag("minlat", nil, :size => 10, :autocomplete => "off", :class => "form-control text-center mx-auto") %>
16       </div>
17     <a id='drag_box' href="#"><%= t ".manually_select" %></a>
18   </div>
19
20   <h4><%= t ".licence" %></h4>
21   <p><%= t ".licence_details_html", :odbl_link => link_to(t(".odbl"), t(".odbl_url")) %></p>
22
23   <div id="export_osm_too_large">
24     <p class="alert alert-warning">
25       <%= t ".too_large.body" %>
26     </p>
27   </div>
28
29   <div id="export_commit">
30     <div class="mb-3 d-flex">
31       <%= submit_tag t(".export_button"), :class => "btn btn-primary mx-auto" %>
32     </div>
33   </div>
34
35   <p><%= t ".too_large.advice" %></p>
36
37   <dl class="px-3">
38     <dt><a id="export_overpass" href="https://overpass-api.de/api/map?bbox="><%= t ".too_large.overpass.title" %></a></dt>
39     <dd><%= t ".too_large.overpass.description" %></dd>
40
41     <dt><a href="https://planet.openstreetmap.org/"><%= t ".too_large.planet.title" %></a></dt>
42     <dd><%= t ".too_large.planet.description" %></dd>
43
44     <dt><a href="https://download.geofabrik.de/"><%= t ".too_large.geofabrik.title" %></a></dt>
45     <dd><%= t ".too_large.geofabrik.description" %></dd>
46
47     <dt><a href="https://wiki.openstreetmap.org/wiki/Download"><%= t ".too_large.other.title" %></a></dt>
48     <dd><%= t ".too_large.other.description" %></dd>
49   </dl>
50 <% end %>