Sha256: 107f65b4f5fd39a9db373699eb977392d0c3f177527f4380def1444b838c7d9d

Contents?: true

Size: 1.11 KB

Versions: 17

Compression:

Stored size: 1.11 KB

Contents

= form_for @customer do |f|
  = f.error_messages

  = field_set_tag "Customer Information" do
    .splitContainer
      %dl.third
        %dt= f.label :first_name
        %dd= f.text_field :first_name, :class => "text focus"
      %dl.third
        %dt= f.label :last_name
        %dd= f.text_field :last_name, :class => "text"
      %dl.third
        %dt= f.label :company
        %dd= f.text_field :company, :class => "text"
    .splitContainer
      %dl.third
        %dt= f.label :email
        %dd= f.text_field :email, :class => "text"
      %dl.third
        %dt= f.label :phone
        %dd= f.text_field :phone, :class => "text"
      %dl.third
        %dt= f.label :mobile
        %dd= f.text_field :mobile, :class => "text"

  %p.submit
    - unless @customer.new_record?
      %span.right= link_to "Delete", @customer, :class => 'button purple', :method => :delete, :data => {:confirm => "Are you sure you wish to remove this product?"}
    = f.submit :class => 'button green', data: {disable_with: (@customer.new_record? ? "Creating Customer..." : "Updating Customer...")}
    = link_to "Cancel", :customers, :class => 'button'

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
shoppe-1.1.1 app/views/shoppe/customers/_form.html.haml
kkt_shoppe-2.0.2 app/views/kkt_shoppe/customers/_form.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/customers/_form.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/customers/_form.html.haml
shoppe-1.1.0 app/views/shoppe/customers/_form.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/customers/_form.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/customers/_form.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/customers/_form.html.haml
kkt_shoppe-1.1.2 app/views/kkt_shoppe/customers/_form.html.haml
shoppe-1.0.9 app/views/shoppe/customers/_form.html.haml
kkt_shoppe-1.1.1 app/views/kkt_shoppe/customers/_form.html.haml
kkt_shoppe-1.1.0 app/views/kkt_shoppe/customers/_form.html.haml
kylekthompson_shoppe-1.1.0 app/views/kylekthompson_shoppe/customers/_form.html.haml
kylekthompson_shoppe-1.0.9 app/views/kylekthompson_shoppe/customers/_form.html.haml
shoppe-1.0.8 app/views/shoppe/customers/_form.html.haml
kylekthompson_shoppe-1.0.7 app/views/kylekthompson_shoppe/customers/_form.html.haml
kylekthompson-shoppe-1.0.7 app/views/shoppe/customers/_form.html.haml