Sha256: 1633bda03e0d306264ae0334cee3e31a46656812b5fcbedb0861466fe6fa12bc

Contents?: true

Size: 1.7 KB

Versions: 27

Compression:

Stored size: 1.7 KB

Contents

<% style ||= "" %>
<% placeholder ||= "Your address" %>
<% idkey = "locations_attributes_#{rand(999999)}_" %>
<div class="map_form">
	
		<input type="text" id="<%= idkey %>map_data" class="mgca_map_data <%= style %>" placeholder="<%= placeholder %>" value="<%= f.object ? f.object.presentation : "" %>" autocomplete="false" role="presentation" />
		
		<div class="hidden_mgca_form">
		  <div class="row">
  		  <div class="col-sm-7">
		      <%= f.text_field :street, class: "mgca_txt street form-control", id: "#{idkey}street" %>
  		  </div>
  		  <div class="col-sm-5">
		      <%= f.text_field :number, class: "mgca_txt street_number form-control", id: "#{idkey}street_number" %>
  		  </div>
  		</div>
  		<div class="row">
  		  <div class="col-sm-5">
		      <%= f.text_field :postalcode, class: "mgca_txt zip form-control", id: "#{idkey}zip" %>
  		  </div>
  		  <div class="col-sm-7">
		      <%= f.text_field :city, class: "mgca_txt city form-control", id: "#{idkey}city" %>
  		  </div>
  		</div>
  		<div class="row">
  		  <div class="col-sm-12">
		      <%= f.text_field :country, class: "mgca_txt country form-control", id: "#{idkey}country" %>
  		  </div>
  		</div>
		</div>
		
		<%= f.hidden_field :latitude, id: "#{idkey}latitude", class: "mgca_latitude" %>
		<%= f.hidden_field :longitude, id: "#{idkey}longitude", class: "mgca_longitude" %>
		<%= f.hidden_field :country_code, class: "mgca_txt country_code", id: "#{idkey}country_code" %>
		<%= f.hidden_field :state, class: "mgca_txt state", id: "#{idkey}state" %>
		<%= f.hidden_field :district, class: "mgca_txt district", id: "#{idkey}district" %>
		
		<div class="clearfix"></div>
		<div id="<%= idkey %>preview_map" class="address_preview_map"></div>
	
</div>


Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
magic_addresses-0.0.19 app/views/magic_addresses/addresses/_address_fields.html.erb
magic_addresses-0.0.18 app/views/magic_addresses/addresses/_address_fields.html.erb
magic_addresses-0.0.17 app/views/magic_addresses/addresses/_address_fields.html.erb
magic_addresses-0.0.16 app/views/magic_addresses/addresses/_address_fields.html.erb
magic_addresses-0.0.15 app/views/magic_addresses/addresses/_address_fields.html.erb
magic_addresses-0.0.14 app/views/magic_addresses/addresses/_address_fields.html.erb
magic_addresses-0.0.13 app/views/magic_addresses/addresses/_address_fields.html.erb