2011-12-25 07:23:19 +00:00
|
|
|
= form_tag "/address", :method => "get", :id => "address_form", :class => "form-stacked" do
|
|
|
|
= label_tag "city_state", t("labels.city_state"), :id => "city_state_label"
|
2012-01-02 12:36:34 +00:00
|
|
|
= select_tag "city_state", "<option value=\"#{t("defaults.city_state")}\" selected=\"selected\">#{t("defaults.city_state")}</option>".html_safe
|
2011-12-25 07:23:19 +00:00
|
|
|
= label_tag "address", t("labels.address"), :id => "address_label"
|
2012-01-02 12:36:34 +00:00
|
|
|
= search_field_tag "address", params[:address], :placeholder => [t("defaults.address_1"), t("defaults.neighborhood")].join(", ")
|
2011-12-25 07:23:19 +00:00
|
|
|
= hidden_field_tag "limit", params[:limit] || 40
|
|
|
|
= submit_tag t("buttons.find", :thing => t("defaults.thing").pluralize), :class => "btn primary"
|
|
|
|
= form_for :user, :url => edit_user_registration_path, :html => {:id => "edit_profile_form", :class => "form-stacked", :method => "get"} do |f|
|
|
|
|
= f.submit t("buttons.edit_profile"), :class => "btn"
|
|
|
|
= form_for :sign_out, :html => {:id => "sign_out_form", :class => "form-stacked"} do |f|
|
|
|
|
= f.submit t("buttons.sign_out"), :class => "btn danger"
|
|
|
|
:javascript
|
|
|
|
$(function() {
|
|
|
|
$('#address').focus();
|
|
|
|
});
|