- include_stylesheet 'admin/location' - render_region :main do |main| - main.edit_header do %h1 Edit Location - main.edit_form do - form_tag admin_location_path(@location), :method => :put do = hidden_field 'location', 'lock_version' = render_region :form_top - render_region :form do |form| - form.edit_title do %p.title %label{ :for => "location_name" } Name = text_field "location", "name", :class => 'textbox', :maxlength => 100 - form.edit_full_address do %p.address %label{:for=>"location_full_address"} Full Address = text_area "location", "full_address", :class => 'textbox', :size => '30x3' %span.help Required. The address is used for determining the latitude and longitude for searching and showing on the map. the preferred format is: "123 1 Ave, MyCity, AB, Canada, T0M 0R0" - form.edit_group do - if config['locations.use_groups?'] %p.groups %label.optional{:for=>"location_group"} Group = text_field "location", "group", :class => 'textbox', :maxlength => 100 %span.help Optional. Assigning a group allows you to show and search locations within a specific group. - form.edit_website_url do - if config['locations.use_website_urls?'] %p.urls %label.optional{:for=>"location_website_url"} Website URL = text_field "location", "website_url", :class => 'textbox', :maxlength => 100 %span.help Optional. - form.edit_page_path do - if config['locations.use_page_paths?'] %p.page_path %label.optional{:for=>"location_page_path"} Page path = text_field "location", "page_path", :class => 'textbox', :maxlength => 100 %span.help Optional. Associate a page on your site with this location. Example: /locations/office - form.edit_geocode do - if config['locations.allow_manual_geocoding?'] %p.geocode %label{:for=>"location_latitude"} Latitude = text_field "location", "lat", :class => 'textbox', :maxlength => 100 %label{:for=>"location_longitude"} Longitude = text_field "location", "lng", :class => 'textbox', :maxlength => 100 %label = check_box "location", "manual_geocode" Manually Geocode this Location %span.help Auto-generated. Required if 'Manually Geocode this Location' is selected. The latitude and longitude are typically geocoded automatically. However some locations (particularly rural locations) cannot be easily geocoded. If you choose "manual geocoding" you will be able to set the latitude and longitude manually. - render_region :form_bottom do |form_bottom| - form_bottom.edit_timestamp do = updated_stamp @location - form_bottom.edit_buttons do %p.buttons = save_model_button(@location) = save_model_and_continue_editing_button(@location) or = link_to "Cancel", admin_locations_url