34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
<div id="sidebar">
|
|
<h1>Adopt a Hydrant</h1>
|
|
<p id="tagline">
|
|
Claim responsibility for shoveling out a fire hydrant after it snows.
|
|
</p>
|
|
<%= form_tag "/", :method => "GET", :id => "location_form" do %>
|
|
<%= label_tag "city_state", "City", :id => "city_label" %>
|
|
<%= select_tag "city_state", '<option value="Boston, MA" selected="selected">Boston, MA</option>'.html_safe, :tabindex => 10 %>
|
|
<%= label_tag "address", "Address", :id => "address_label" %>
|
|
<%= text_field_tag "address", params[:address], :tabindex => 11 %>
|
|
<%= submit_tag "Find Fire Hydrants", :tabindex => 12 %>
|
|
<% end %>
|
|
<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" %>
|
|
</div>
|
|
<div id="map_canvas">
|
|
</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>
|