]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/templates/reversepage.hbs
/reverse.html should be reverse.html to app works in subdirectory
[nominatim-ui.git] / src / templates / reversepage.hbs
index 43c60f3c56669c1dfab1e36c3277b2d9720d17c2..534b87dd6395945cddcc7d35b344f17ddd98ca4f 100644 (file)
@@ -1,49 +1,47 @@
 
 {{#*inline "partial_one_result"}}
   <div class="result" data-position="{{iResNum}}">
-    {{#if aResult.icon}}
-      <img src="{{env.Images_Base_Url}}{{aResult.icon}}" />
-      {{!-- {{formatMapIcon aResult.icon}} --}}
-    {{/if}}
+    {{formatMapIcon aResult}}
 
     <span class="name">{{aResult.display_name}}</span>
     <span class="type">{{formatLabel aResult}}</span>
     <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
 
-    <a class="btn btn-default btn-xs details"
-       href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
+    <a class="details btn btn-outline-secondary btn-sm" href="{{detailsURL aResult}}">details</a>
   </div>
 {{/inline}}
 
-<form class="form-inline" role="search" accept-charset="UTF-8" action="">
-  <div class="form-group">
-    <input name="format" type="hidden" value="html">
-    <input name="lat"
-           type="text"
-           class="form-control input-sm"
-           placeholder="latitude"
-           value="{{fLat}}" />
-    <span id="switch-coords">&lt;&gt;</span>
-    <input name="lon"
-           type="text"
-           class="form-control input-sm"
-           placeholder="longitude"
-           value="{{fLon}}" />
-    max zoom
-    <select name="zoom" class="form-control input-sm" value="{{iZoom}}">
-      {{zoomLevels iZoom}}
-    </select>
-  </div>
-  <div class="form-group search-button-group">
-    <button type="submit" class="btn btn-primary btn-sm">
-      Search
-    </button>
-  </div>
-  <div class="search-type-link">
-    <a href="/search.html">forward search</a>
-  </div>
-</form>
-
+<div class="top-bar">
+  <form class="form-inline" role="search" accept-charset="UTF-8" action="">
+    <div class="form-group">
+      <input name="format" type="hidden" value="html">
+      <label>lat</label>
+      <input name="lat"
+             type="text"
+             class="form-control form-control-sm"
+             placeholder="latitude"
+             value="{{fLat}}" />
+      <a id="switch-coords" class="btn btn-outline-secondary btn-sm" title="switch lat and lon">&lt;&gt;</a>
+      <label>lon</label>
+      <input name="lon"
+             type="text"
+             class="form-control form-control-sm"
+             placeholder="longitude"
+             value="{{fLon}}" />
+      <label>max zoom</label>
+      <select name="zoom" class="form-control form-control-sm" value="{{iZoom}}">
+        {{zoomLevels iZoom}}
+      </select>
+      <button type="submit" class="btn btn-primary btn-sm mx-1">
+        Search
+      </button>
+    </div>
+    <div class="search-type-link">
+      <a href="details.html" class="mr-2">search by id</a>
+      <a href="search.html">forward search</a>
+    </div>
+  </form>
+</div>
 
 <div id="content">
   {{#if aPlace}}