e9_crm 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. data/.gitignore +1 -0
  2. data/app/controllers/e9_crm/campaigns_controller.rb +3 -0
  3. data/app/controllers/e9_crm/contact_emails_controller.rb +5 -1
  4. data/app/controllers/e9_crm/contact_offers_controller.rb +3 -0
  5. data/app/controllers/e9_crm/deals_controller.rb +41 -13
  6. data/app/controllers/e9_crm/file_download_offers_controller.rb +3 -0
  7. data/app/controllers/e9_crm/leads_controller.rb +74 -0
  8. data/app/controllers/e9_crm/new_content_subscription_offers_controller.rb +3 -0
  9. data/app/controllers/e9_crm/newsletter_subscription_offers_controller.rb +3 -0
  10. data/app/controllers/e9_crm/offer_subclass_controller.rb +11 -0
  11. data/app/controllers/e9_crm/offers_controller.rb +37 -0
  12. data/app/controllers/e9_crm/resources_controller.rb +8 -0
  13. data/app/controllers/e9_crm/video_offers_controller.rb +3 -0
  14. data/app/helpers/e9_crm/deals_helper.rb +32 -0
  15. data/app/helpers/e9_crm/leads_helper.rb +63 -0
  16. data/app/helpers/e9_crm/offers_helper.rb +16 -0
  17. data/app/models/campaign.rb +1 -0
  18. data/app/models/contact.rb +2 -0
  19. data/app/models/contact_offer.rb +2 -0
  20. data/app/models/deal.rb +110 -8
  21. data/app/models/file_download_offer.rb +2 -0
  22. data/app/models/new_content_subscription_offer.rb +5 -0
  23. data/app/models/newsletter_subscription_offer.rb +5 -0
  24. data/app/models/no_campaign.rb +5 -1
  25. data/app/models/offer.rb +30 -19
  26. data/app/models/subscription_offer.rb +3 -0
  27. data/app/models/video_offer.rb +2 -0
  28. data/app/views/e9_crm/campaigns/_header.html.haml +2 -2
  29. data/app/views/e9_crm/contact_offers/_form_inner.html.haml +5 -0
  30. data/app/views/e9_crm/contacts/_form_inner.html.haml +2 -1
  31. data/app/views/e9_crm/contacts/_index_sidebar.html.haml +30 -0
  32. data/app/views/e9_crm/contacts/index.html.haml +1 -30
  33. data/app/views/e9_crm/contacts/index.js.erb +1 -1
  34. data/app/views/e9_crm/deals/_form_inner.html.haml +16 -8
  35. data/app/views/e9_crm/deals/_header.html.haml +13 -0
  36. data/app/views/e9_crm/deals/_leads_header.html.haml +12 -0
  37. data/app/views/e9_crm/deals/_leads_table.html.haml +34 -0
  38. data/app/views/e9_crm/deals/leads.html.haml +4 -9
  39. data/app/views/e9_crm/deals/leads.js.erb +1 -0
  40. data/app/views/e9_crm/deals/offer_form.html.haml +6 -0
  41. data/app/views/e9_crm/deals/reports.html.haml +1 -1
  42. data/app/views/e9_crm/{offers → file_download_offers}/_form.html.haml +0 -0
  43. data/app/views/e9_crm/file_download_offers/_form_inner.html.haml +11 -0
  44. data/app/views/e9_crm/leads/_form.html.haml +26 -0
  45. data/app/views/e9_crm/leads/create.js.erb +11 -0
  46. data/app/views/e9_crm/leads/new.html.haml +6 -0
  47. data/app/views/e9_crm/menu_options/_header.html.haml +3 -4
  48. data/app/views/e9_crm/new_content_subscription_offers/_form_inner.html.haml +1 -0
  49. data/app/views/e9_crm/newsletter_subscription_offers/_form_inner.html.haml +1 -0
  50. data/app/views/e9_crm/offers/_footer.html.haml +0 -0
  51. data/app/views/e9_crm/offers/_form_inner.html.haml +8 -22
  52. data/app/views/e9_crm/offers/_header.html.haml +12 -0
  53. data/app/views/e9_crm/offers/_offer.html.haml +4 -0
  54. data/app/views/e9_crm/offers/_public_offer.html.haml +6 -0
  55. data/app/views/e9_crm/offers/show.html.haml +2 -0
  56. data/app/views/e9_crm/resources/_form_inner.html.haml +0 -5
  57. data/app/views/e9_crm/resources/create.js.erb +3 -2
  58. data/app/views/e9_crm/resources/edit.html.haml +1 -1
  59. data/app/views/e9_crm/resources/new.html.haml +1 -1
  60. data/app/views/e9_crm/resources/show.html.haml +1 -1
  61. data/app/views/e9_crm/resources/update.js.erb +3 -1
  62. data/app/views/e9_crm/subscription_offers/_form_inner.html.haml +5 -0
  63. data/app/views/e9_crm/video_offers/_form_inner.html.haml +5 -0
  64. data/config/locales/e9.en.yml +3 -2
  65. data/config/locales/en.yml +30 -13
  66. data/config/routes.rb +31 -8
  67. data/e9_crm.gemspec +1 -1
  68. data/lib/e9_crm/controller.rb +94 -0
  69. data/lib/e9_crm/model.rb +9 -9
  70. data/lib/e9_crm/rails_extensions.rb +9 -0
  71. data/lib/e9_crm/tracking_controller.rb +48 -80
  72. data/lib/e9_crm/version.rb +1 -1
  73. data/lib/e9_crm.rb +8 -1
  74. data/lib/generators/e9_crm/templates/migration.rb +3 -9
  75. metadata +39 -9
  76. data/Gemfile.lock +0 -98
  77. data/app/models/affiliate.rb +0 -4
  78. data/app/models/sales_person.rb +0 -4
  79. data/app/views/e9_crm/contact_emails/send_email.js.erb +0 -1
  80. data/app/views/e9_crm/offers/_form_inner.html.haml.bak +0 -43
data/Gemfile.lock DELETED
@@ -1,98 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- e9_crm (0.1.4)
5
- e9_rails (~> 0.0.13)
6
- e9_tags (~> 0.0.11)
7
- has_scope
8
- inherited_resources (~> 1.1.2)
9
- money
10
- rails (~> 3.0.0)
11
- will_paginate
12
-
13
- GEM
14
- remote: http://rubygems.org/
15
- specs:
16
- abstract (1.0.0)
17
- actionmailer (3.0.6)
18
- actionpack (= 3.0.6)
19
- mail (~> 2.2.15)
20
- actionpack (3.0.6)
21
- activemodel (= 3.0.6)
22
- activesupport (= 3.0.6)
23
- builder (~> 2.1.2)
24
- erubis (~> 2.6.6)
25
- i18n (~> 0.5.0)
26
- rack (~> 1.2.1)
27
- rack-mount (~> 0.6.14)
28
- rack-test (~> 0.5.7)
29
- tzinfo (~> 0.3.23)
30
- activemodel (3.0.6)
31
- activesupport (= 3.0.6)
32
- builder (~> 2.1.2)
33
- i18n (~> 0.5.0)
34
- activerecord (3.0.6)
35
- activemodel (= 3.0.6)
36
- activesupport (= 3.0.6)
37
- arel (~> 2.0.2)
38
- tzinfo (~> 0.3.23)
39
- activeresource (3.0.6)
40
- activemodel (= 3.0.6)
41
- activesupport (= 3.0.6)
42
- activesupport (3.0.6)
43
- acts-as-taggable-on (2.0.6)
44
- arel (2.0.9)
45
- builder (2.1.2)
46
- e9_rails (0.0.13)
47
- inherited_resources
48
- rails (~> 3.0.0)
49
- e9_tags (0.0.11)
50
- acts-as-taggable-on (~> 2.0.6)
51
- rails (~> 3.0.0)
52
- erubis (2.6.6)
53
- abstract (>= 1.0.0)
54
- has_scope (0.5.0)
55
- i18n (0.5.0)
56
- inherited_resources (1.1.2)
57
- has_scope (~> 0.5.0)
58
- responders (~> 0.6.0)
59
- mail (2.2.19)
60
- activesupport (>= 2.3.6)
61
- i18n (>= 0.4.0)
62
- mime-types (~> 1.16)
63
- treetop (~> 1.4.8)
64
- mime-types (1.16)
65
- money (3.6.1)
66
- i18n (~> 0.4)
67
- polyglot (0.3.1)
68
- rack (1.2.2)
69
- rack-mount (0.6.14)
70
- rack (>= 1.0.0)
71
- rack-test (0.5.7)
72
- rack (>= 1.0)
73
- rails (3.0.6)
74
- actionmailer (= 3.0.6)
75
- actionpack (= 3.0.6)
76
- activerecord (= 3.0.6)
77
- activeresource (= 3.0.6)
78
- activesupport (= 3.0.6)
79
- bundler (~> 1.0)
80
- railties (= 3.0.6)
81
- railties (3.0.6)
82
- actionpack (= 3.0.6)
83
- activesupport (= 3.0.6)
84
- rake (>= 0.8.7)
85
- thor (~> 0.14.4)
86
- rake (0.8.7)
87
- responders (0.6.4)
88
- thor (0.14.6)
89
- treetop (1.4.9)
90
- polyglot (>= 0.3.1)
91
- tzinfo (0.3.27)
92
- will_paginate (3.0.pre2)
93
-
94
- PLATFORMS
95
- ruby
96
-
97
- DEPENDENCIES
98
- e9_crm!
@@ -1,4 +0,0 @@
1
- # A contact subtype for affiliates, who drive affiliate campaigns
2
- #
3
- class Affiliate < Contact
4
- end
@@ -1,4 +0,0 @@
1
- # A contact subtype for sales people, who drive sales campaigns
2
- #
3
- class SalesPerson < Contact
4
- end
@@ -1 +0,0 @@
1
- // send email
@@ -1,43 +0,0 @@
1
- = f.fields_for resource.options do |ff|
2
- .field
3
- = f.label :name, nil, :class => :req
4
- = f.text_field :name
5
-
6
- .field{:class => request.xhr? ? 'tinymcexhr' : 'tinymce'}
7
- = f.label :template, nil, :class => :req
8
- = f.text_area :template
9
-
10
- - if request.xhr?
11
- - resource.region_type_ids.each_with_index do |id, i|
12
- = hidden_field_tag 'offer[region_type_ids][]', id, :id => "offer_region_type_ids_#{i}"
13
- - if resource.new_record?
14
- - resource.node_ids.each_with_index do |id, i|
15
- = hidden_field_tag 'offer[node_ids][]', id, :id => "offer_node_ids_#{i}"
16
- - else
17
- = render 'shared/admin/region_type_select', :f => f
18
-
19
- %fieldset.upload
20
- = render 'shared/form_partials/carrierwave_upload_field', :field => :file, :f => f
21
- .field
22
- = ff.label :download_link_text
23
- = ff.text_field :download_link_text
24
-
25
- .field
26
- = ff.label :success_alert_text
27
- = ff.text_field :success_alert_text
28
-
29
- .field
30
- = ff.label :success_page_text
31
- = ff.text_area :success_page_text
32
-
33
- .field
34
- = ff.label :success_alert_text
35
- = ff.text_field :success_alert_text
36
-
37
- .field
38
- = ff.label :conversion_alert_email
39
- = ff.text_field :conversion_alert_email
40
-
41
- .field
42
- = ff.label :custom_form_html
43
- = ff.text_area :custom_form_html