Sha256: a3f6171aaf945e641fa0d4a4553811a79865f2189512c6cb80515f5d5cd49912

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 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, Shoppe::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, Shoppe::Country.ordered, :id, :name, {:include_blank => true}, {:class => 'chosen', :data => { :placeholder => t('shoppe.orders.select_country')}} 

  %p.submit
    - unless @address.new_record?
      %span.right= link_to t('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('shoppe.cancel'), :customers, :class => 'button'

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
shoppe-1.1.2 app/views/shoppe/addresses/_form.html.haml
shoppe-1.1.1 app/views/shoppe/addresses/_form.html.haml
shoppe-1.1.0 app/views/shoppe/addresses/_form.html.haml
shoppe-1.0.9 app/views/shoppe/addresses/_form.html.haml
shoppe-1.0.8 app/views/shoppe/addresses/_form.html.haml
kylekthompson-shoppe-1.0.7 app/views/shoppe/addresses/_form.html.haml