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

21 lines
963 B
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", :id => "location_submit", :tabindex => 12 %>
<% end %>
<div id="logos">
<%= image_tag "logos/cfa.png", :alt => "Code for America", :title => "Code for America" %>
<%= image_tag "logos/boston.png", :alt => "City of Boston", :title => "City of Boston" %>
</div>
<%= image_tag "hydrant-in-snow.jpg", :id => "hydrant-in-snow" %>
</div>
<div id="map_canvas">
</div>