Sha256: c43e24e97e7a0e753828cf542024245fac23807d17b392233b4e182aa537005a

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

- content_for :bottom_javascripts do
  = render 'shared/admin/tiny_mce'

.field
  = f.label :name, nil, :class => :req
  = f.text_field :name

.field
  = f.label :submit_button_text
  = f.text_field :submit_button_text

.field
  = f.label :conversion_alert_email
  = f.text_field :conversion_alert_email

%fieldset
  %legend= f.label(:mailing_list_ids)
  - offer_mailing_lists.each do |ml|
    .field.checkbox
      = check_box_tag "offer[mailing_list_ids][]", ml.id, resource.has_mailing_list?(ml), :id => "offer_mailing_list_ids_#{ml.id}"
      = label_tag "offer_mailing_list_ids_#{ml.id}", ml.name

.field
  = help_label(f, :template, :markdown => true)
  = f.text_area :template

.field.tinymce
  = f.label :success_page_text
  = f.text_area :success_page_text

.field
  = f.label :custom_form_html
  = f.text_area :custom_form_html

- if request.xhr?
  - resource.region_type_ids.each_with_index do |id, i|
    = hidden_field_tag 'offer[region_type_ids][]', id, :id => "offer_region_type_ids_#{i}"
  - if resource.new_record?
    - resource.node_ids.each_with_index do |id, i|
      = hidden_field_tag 'offer[node_ids][]', id, :id => "offer_node_ids_#{i}"
- else
  = render 'shared/admin/region_type_select', :f => f

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
e9_crm-0.1.34 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.33 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.32 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.31 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.30 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.29 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.28 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.27 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.26 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.25 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.24 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.23 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.22 app/views/e9_crm/offers/_form_inner.html.haml