Sha256: 840af45a359e8c247519fce67de8ab09ebb003589edb981c66316696da729295

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

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

  = field_set_tag t('shoppe.customers.customer_information') do
    .splitContainer
      %dl.third
        %dt= f.label :first_name, t('shoppe.customers.first_name')
        %dd= f.text_field :first_name, :class => "text focus"
      %dl.third
        %dt= f.label :last_name, t('shoppe.customers.last_name')
        %dd= f.text_field :last_name, :class => "text"
      %dl.third
        %dt= f.label :company, t('shoppe.customers.company')
        %dd= f.text_field :company, :class => "text"
    .splitContainer
      %dl.third
        %dt= f.label :email, t('shoppe.customers.email')
        %dd= f.text_field :email, :class => "text"
      %dl.third
        %dt= f.label :phone, t('shoppe.customers.phone')
        %dd= f.text_field :phone, :class => "text"
      %dl.third
        %dt= f.label :mobile, t('shoppe.customers.mobile_phone')
        %dd= f.text_field :mobile, :class => "text"

  %p.submit
    - unless @customer.new_record?
      %span.right
        = link_to t('shoppe.customers.delete'),
                  @customer,
                  class: 'button purple',
                  method: :delete,
                  data: {confirm: t('shoppe.customers.delete_confirmation')}
    = f.submit t('shoppe.customers.save'),
               class: 'button green',
               data: {disable_with: (@customer.new_record? ? t('shoppe.customers.creating_customer') : t('shoppe.customers.updating_customer'))}
    = link_to t('shoppe.customers.cancel'), :customers, :class => 'button'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppe-1.1.2 app/views/shoppe/customers/_form.html.haml