Sha256: dec6f3d030ed630356e128b29b5f892bf0dbc7607acecc9f9af14c2faeecaa5e

Contents?: true

Size: 960 Bytes

Versions: 7

Compression:

Stored size: 960 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

7 entries across 7 versions & 1 rubygems

Version Path
campfire_logic-2.0.7 app/views/directory/search.html.erb
campfire_logic-2.0.6 app/views/directory/search.html.erb
campfire_logic-2.0.5 app/views/directory/search.html.erb
campfire_logic-2.0.4 app/views/directory/search.html.erb
campfire_logic-2.0.3 app/views/directory/search.html.erb
campfire_logic-2.0.2 app/views/directory/search.html.erb
campfire_logic-2.0.1 app/views/directory/search.html.erb