Created
November 14, 2010 23:57
-
-
Save dmclark/676241 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= form_for @route, :html => {:method => :get}, :url => route_path, :remote => true do |f| -%> | |
| <div class="field" style="float:left; padding-right:1em"> | |
| <%= f.label :startpoint_id %><br /> | |
| <%= f.select :startpoint_id, options_from_collection_for_select(@venues, 'id', 'name'), { :include_blank => false }, { :size => 15 } %> | |
| </div> | |
| <div class="field"> | |
| <%= f.label :endpoint_id %><br /> | |
| <%= f.select :endpoint_id, options_from_collection_for_select(@venues, 'id', 'name'), { :include_blank => false }, { :size => 15 } %> | |
| </div> | |
| <div class="field"> | |
| <%= f.label :mode %><br /> | |
| <%= f.radio_button :mode, "walking", { :checked => true} %> <%= f.label "mode_walking", "Walking Directions" %> | |
| <%= f.radio_button :mode, "pubtrans" %> <%= f.label "mode_pubtrans", "Via Public Transportation"%> | |
| </div> | |
| <div class="actions"> | |
| <%= f.submit "Get Directions", { :id => "route_show" } %> | |
| <input type="reset" value="Reset" id="route_clear"> | |
| </div> | |
| <% end %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment