]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/reversepage.hbs
npm package updates
[nominatim-ui.git] / dist / reversepage.hbs
index 80bd4bc8459325a3cc2995b9b4acaa3076b5dc4f..ba80e7445c7dcf104af05e6a9c812fd8a0a39a7a 100644 (file)
@@ -1,38 +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="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">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="/search.html">forward search</a>
+    </div>
+  </form>
+</div>
 
 <div id="content">
   {{#if aPlace}}