Sha256: 9a28259a40849667eb0e5596e80fed92df3d3a88f73ba75e835e4bc664020137

Contents?: true

Size: 1.45 KB

Versions: 9

Compression:

Stored size: 1.45 KB

Contents

= form_for @address, url: [@customer, @address] do |f|
  = f.error_messages

  = field_set_tag "Address Information" do
    %dl
      %dt= f.label :address_type
      %dd= f.select :address_type, KktShoppe::Address::TYPES, {}, :class => "chosen"
    .splitContainer
      %dl.third
        %dt= f.label :address1
        %dd= f.text_field :address1, :class => "text"
      %dl.third
        %dt= f.label :address2
        %dd= f.text_field :address2, :class => "text"
      %dl.third
        %dt= f.label :address3
        %dd= f.text_field :address3, :class => "text"
    .splitContainer
      %dl.third
        %dt= f.label :address4
        %dd= f.text_field :address4, :class => "text"
      %dl.third
        %dt= f.label :postcode
        %dd= f.text_field :postcode, :class => "text"
      %dl.third
        %dt= f.label :country_id
        %dd= f.collection_select :country_id, KktShoppe::Country.ordered, :id, :name, {:include_blank => true}, {:class => 'chosen', :data => { :placeholder => t('kkt_shoppe.orders.select_country')}} 

  %p.submit
    - unless @address.new_record?
      %span.right= link_to t('kkt_shoppe.delete'), [@customer, @address], :class => 'button purple', :method => :delete, :data => {:confirm => "Are you sure you wish to remove this address?"}
    = f.submit :class => 'button green', data: {disable_with: (@address.new_record? ? "Creating Address..." : "Updating Address...")}
    = link_to t('kkt_shoppe.cancel'), :customers, :class => 'button'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-1.1.2 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-1.1.1 app/views/kkt_shoppe/addresses/_form.html.haml
kkt_shoppe-1.1.0 app/views/kkt_shoppe/addresses/_form.html.haml