Sha256: 7e568115e7aa599e18b2e913df7d06dcc361f41754effeaf9ae1933d2693306e

Contents?: true

Size: 1.38 KB

Versions: 7

Compression:

Stored size: 1.38 KB

Contents

= form_for resource, :url => vendor_member_vendor_proxy_path(resource.vendor_member, resource), :remote => request.xhr? do |f|
  .errors= resource_error_messages!
  .field
    = f.label :discount_code, nil, :class => :req
    = f.text_field :discount_code
  .instructions
    = e9_t(:vendor_defaults_instructions)
  -#.field
    -#= f.label :discount_percentage, resource.label_with_default(:discount_percentage)
    -#= f.text_field :discount_percentage, :value => resource.send(:read_attribute, :discount_percentage)
  .field
    = f.label :landing_page, resource.label_with_default(:landing_page)
    = f.text_area :landing_page, :value => (resource.send(:read_attribute, :landing_page) || '')
  .field
    = f.label :sales_full_name, resource.label_with_default(:sales_full_name)
    = f.text_field :sales_full_name, :value => resource.send(:read_attribute, :sales_full_name)
  .field
    = f.label :sales_title, resource.label_with_default(:sales_title)
    = f.text_field :sales_title, :value => resource.send(:read_attribute, :sales_title)
  .field
    = f.label :sales_phone, resource.label_with_default(:sales_phone)
    = f.text_field :sales_phone, :value => resource.send(:read_attribute, :sales_phone)
  .field
    = f.label :sales_email, resource.label_with_default(:sales_email)
    = f.text_field :sales_email, :value => resource.send(:read_attribute, :sales_email)

  .actions
    = f.submit

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
e9_vendors-0.0.10 app/views/e9_vendors/vendor_proxies/_form.html.haml
e9_vendors-0.0.9 app/views/e9_vendors/vendor_proxies/_form.html.haml
e9_vendors-0.0.8 app/views/e9_vendors/vendor_proxies/_form.html.haml
e9_vendors-0.0.7 app/views/e9_vendors/vendor_proxies/_form.html.haml
e9_vendors-0.0.6 app/views/e9_vendors/vendor_proxies/_form.html.haml
e9_vendors-0.0.5 app/views/e9_vendors/vendor_proxies/_form.html.haml
e9_vendors-0.0.4 app/views/e9_vendors/vendor_proxies/_form.html.haml