]> git.openstreetmap.org Git - nominatim-ui.git/blob - dist/reversepage.hbs
details html page: no longer use place_id in URLs
[nominatim-ui.git] / dist / reversepage.hbs
1
2 {{#*inline "partial_one_result"}}
3   <div class="result" data-position="{{iResNum}}">
4     {{#if aResult.icon}}
5       <img src="{{env.Images_Base_Url}}{{aResult.icon}}" />
6       {{!-- {{formatMapIcon aResult.icon}} --}}
7     {{/if}}
8
9     <span class="name">{{aResult.display_name}}</span>
10     <span class="type">{{formatLabel aResult}}</span>
11     <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
12
13     <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
14   </div>
15 {{/inline}}
16
17 <form class="form-inline" role="search" accept-charset="UTF-8" action="">
18   <div class="form-group">
19     <input name="format" type="hidden" value="html">
20     <input name="lat" type="text" class="form-control input-sm" placeholder="latitude"  value="{{fLat}}">
21     <span id="switch-coords">&lt;&gt;</span>
22     <input name="lon" type="text" class="form-control input-sm" placeholder="longitude" value="{{fLon}}">
23     max zoom
24     <select name="zoom" class="form-control input-sm" value="{{iZoom}}">
25       {{zoomLevels iZoom}}
26     </select>
27   </div>
28   <div class="form-group search-button-group">
29     <button type="submit" class="btn btn-primary btn-sm">Search</button>
30   </div>
31   <div class="search-type-link">
32     <a href="/search.html">forward search</a>
33   </div>
34 </form>
35
36
37 <div id="content">
38   {{#if aPlace}}
39     <div id="searchresults" class="sidebar">
40       {{>partial_one_result iResNum=0 aResult=aPlace env=env}}
41     </div>
42   {{else}}
43     <div id="intro" class="sidebar">
44       Search for coordinates or click anywhere on the map.
45     </div>
46   {{/if}}
47
48   <div id="map-wrapper">
49     <div id="map-position">
50       <div id="map-position-inner"></div>
51       <div id="map-position-close"><a href="#">hide</a></div>
52     </div>
53     <div id="map"></div>
54   </div>
55 </div>