Sha256: f9351c39975450904d83bc06770670a6273ea76de9d96484f511af530da4fb0f

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

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

.field{:class => request.xhr? ? 'tinymcexhr' : 'tinymce'}
  = f.label :template, nil, :class => :req
  = f.text_area :template

- 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

%fieldset.upload
  = render 'shared/form_partials/carrierwave_upload_field', :field => :file, :f => f
  .field
    = f.label :download_link_text
    = f.text_field :download_link_text

.field
  = f.label :success_alert_text
  = f.text_field :success_alert_text

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

.field
  = f.label :success_alert_text
  = f.text_field :success_alert_text

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
e9_crm-0.1.7 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.6 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.5 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.4 app/views/e9_crm/offers/_form_inner.html.haml
e9_crm-0.1.1 app/views/e9_crm/offers/_form_inner.html.haml