adopt-a-hydrant/app/views/main/index.html.erb

34 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-02-23 22:24:08 +00:00
<div id="sidebar">
<h1>Adopt a Hydrant</h1>
2011-02-25 19:59:25 +00:00
<p id="tagline">
2011-02-25 19:41:54 +00:00
Claim responsibility for shoveling out a fire hydrant after it snows.
2011-02-23 22:24:08 +00:00
</p>
2011-03-05 01:43:25 +00:00
<%= form_tag "/", :method => "GET", :id => "location_form" do %>
<%= label_tag "city_state", "City", :id => "city_label" %>
2011-03-04 23:42:54 +00:00
<%= select_tag "city_state", '<option value="Boston, MA" selected="selected">Boston, MA</option>'.html_safe, :tabindex => 10 %>
2011-03-05 01:43:25 +00:00
<%= label_tag "address", "Address", :id => "address_label" %>
2011-03-04 23:42:54 +00:00
<%= text_field_tag "address", params[:address], :tabindex => 11 %>
<%= submit_tag "Find Fire Hydrants", :tabindex => 12 %>
2011-02-25 21:34:01 +00:00
<% end %>
2011-03-01 04:13:31 +00:00
<div id="logos">
<%= image_tag "logos/boston.png", :alt => "City of Boston", :title => "City of Boston" %>
<%= image_tag "logos/cert.png", :alt => "Community Emergency Response Team", :title => "Community Emergency Response Team" %>
<%= image_tag "logos/cfa.png", :alt => "Code for America", :title => "Code for America" %>
</div>
<%= image_tag "hydrant-in-snow.jpg", :id => "hydrant-in-snow" %>
2011-02-25 19:59:25 +00:00
</div>
<div id="map_canvas">
2011-02-14 18:49:00 +00:00
</div>
<script type="text/javascript">
$(function() {
$('#location_form').submit(function() {
if($('#address').val() === '') {
$('#address').focus();
$('#address_label').addClass('error', 500);
$('#address').addClass('error', 500);
return false;
}
});
});
</script>