Sha256: 6c328bf97371ed6a48465502ca7c8e8c89b4f0dbe614d1b538ef3c02ddff33fd

Contents?: true

Size: 768 Bytes

Versions: 8

Compression:

Stored size: 768 Bytes

Contents

= render 'e9_crm/campaigns/form_inner', :f => f

%fieldset
  %legend= e9_t(:salesperson_information_legend, :scope => 'e9_crm.campaigns')
  .field
    = f.label :sales_person, :class => :req, :for => 'campaign_sales_person_id'

    - contact = f.object.sales_person
    %input.contact-autocomplete{:type => 'text', :style => contact.blank? && '' || 'display:none'}
    .contact-select{:style => contact.blank? && 'display:none' || ''}
      %span.content= contact.try(:name)
      %input{:type => :hidden, :name => "#{resource_instance_name}[sales_person_id]", :value => contact.try(:id)}
      %a{:class => :remove, :title => "Remove", :alt => "Remove"} Remove

  .field
    = help_label f, :sales_fee
    = f.text_field :sales_fee, :value => f.object.sales_fee.to_s

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
e9_crm-0.1.34 app/views/e9_crm/sales_campaigns/_form_inner.html.haml
e9_crm-0.1.33 app/views/e9_crm/sales_campaigns/_form_inner.html.haml
e9_crm-0.1.32 app/views/e9_crm/sales_campaigns/_form_inner.html.haml
e9_crm-0.1.31 app/views/e9_crm/sales_campaigns/_form_inner.html.haml
e9_crm-0.1.30 app/views/e9_crm/sales_campaigns/_form_inner.html.haml
e9_crm-0.1.29 app/views/e9_crm/sales_campaigns/_form_inner.html.haml
e9_crm-0.1.28 app/views/e9_crm/sales_campaigns/_form_inner.html.haml
e9_crm-0.1.27 app/views/e9_crm/sales_campaigns/_form_inner.html.haml