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