Sha256: b7bbe10eadc3ee70e8220fa6b6feda4ae14e64da2736dadf05de6250ef37ec6f

Contents?: true

Size: 772 Bytes

Versions: 8

Compression:

Stored size: 772 Bytes

Contents

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

%fieldset
  %legend= e9_t(:affiliate_information_legend, :scope => 'e9_crm.campaigns')
  .field
    = f.label :affiliate, :class => :req, :for => 'campaign_affiliate_id'

    - contact = f.object.affiliate
    %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}[affiliate_id]", :value => contact.try(:id)}
      %a{:class => :remove, :title => "Remove", :alt => "Remove"} Remove

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

Version data entries

8 entries across 8 versions & 1 rubygems

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