Sha256: 042e5d4db2c40960834891127a32db12266bd9643ca5e7d58bc3f295277635e7

Contents?: true

Size: 846 Bytes

Versions: 9

Compression:

Stored size: 846 Bytes

Contents

= form_for resource, :url => public_offer_deals_path(@offer), :remote => request.xhr? do |f|
  .errors= resource_error_messages!
  .notice

  - if f.object.user.blank?
    .field
      = f.label :lead_email
      = f.text_field :lead_email
    .field
      = f.label :lead_name
      = f.text_field :lead_name

  = @offer.custom_form_html.html_safe

  - if @offer.kind_of?(SubscriptionOffer)
    %fieldset
      - @offer.class.mailing_lists.each do |ml|
        .field.checkbox
          = label_tag "#{resource_instance_name}_mailing_list_ids_#{ml.id}", ml.description
          = check_box_tag "#{resource_instance_name}[mailing_list_ids][]", ml.id, true, :id => "#{resource_instance_name}_mailing_list_ids_#{ml.id}"

  .actions
    - if @offer.submit_button_text.present?
      = f.submit @offer.submit_button_text
    - else
      = f.submit

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
e9_crm-0.1.18 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.17 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.16 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.14 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.13 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.12 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.11 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.10 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.8 app/views/e9_crm/leads/_form.html.haml