Sha256: cd1f3abea90f35410d0fc7a8661dba95f7171b055c6e9ee4b7373c7eb6e8d52f

Contents?: true

Size: 831 Bytes

Versions: 3

Compression:

Stored size: 831 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.mailing_lists.any?
    %fieldset
      - @offer.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

3 entries across 3 versions & 1 rubygems

Version Path
e9_crm-0.1.21 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.20 app/views/e9_crm/leads/_form.html.haml
e9_crm-0.1.19 app/views/e9_crm/leads/_form.html.haml