Sha256: 689d57b05265d9d66267173c6b6b28eb2071d674f06eabfc7bf4b2eca70e84a4
Contents?: true
Size: 978 Bytes
Versions: 4
Compression:
Stored size: 978 Bytes
Contents
<%- set_title 'Location Directory - Search' -%> <div id="map_canvas" style="border: solid black 1px; width: 100%; height: 300px"></div><br /> <%= render 'search_form' -%><br style="clear: both;" /> <br style="clear: both;" /> <div id="directions_panel"></div> <%- if @locations.empty? -%> <p>No matching locations found. Please try again.</p> </em></p> <%- else -%> <h2><%= controller.searching_by_zip? ? 'Locations nearest' : "#{@locations.size} locations match" -%> "<%= params[:criteria] -%>"</h2> <%- for @location in @locations -%> <%= render 'shared/location' -%> <%- end -%> <%- end -%> <br style="clear: both;" /> <%= render :partial => 'shared/map', :locals => {:locations => @locations, :place => Locale.us.first} -%> <script type="text/javascript"> initializeMap(); $('#search-form')[0].addEventListener('submit', function (e) { window.location = '<%= directory_search_root_url -%>/' + $('#search-input')[0].value; }, false); </script>
Version data entries
4 entries across 4 versions & 1 rubygems