ish_manager 0.1.8.328 → 0.1.8.330
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ish_manager/email_contexts.js +16 -0
- data/app/controllers/ish_manager/application_controller.rb +0 -10
- data/app/controllers/ish_manager/email_campaign_leads_controller.rb +75 -0
- data/app/controllers/ish_manager/email_campaigns_controller.rb +6 -6
- data/app/controllers/ish_manager/email_contexts_controller.rb +14 -6
- data/app/controllers/ish_manager/leads_controller.rb +32 -12
- data/app/controllers/ish_manager/leadsets_controller.rb +54 -0
- data/app/jobs/ish_manager/application_job.rb +6 -3
- data/app/jobs/ish_manager/email_campaign_job.rb +30 -0
- data/app/mailers/ish_manager/office_mailer.rb +48 -0
- data/app/views/ish_manager/application/_main_header_admin.haml +8 -7
- data/app/views/ish_manager/email_campaign_leads/show.haml +4 -0
- data/app/views/ish_manager/email_contexts/_form.haml +15 -6
- data/app/views/ish_manager/email_contexts/index.haml +1 -0
- data/app/views/ish_manager/email_contexts/show.haml +24 -3
- data/app/views/ish_manager/email_templates/_marketing_ror_2.html.erb +753 -0
- data/app/views/ish_manager/leads/_form.haml +9 -32
- data/app/views/ish_manager/leads/index.haml +27 -37
- data/app/views/ish_manager/leadsets/_form.haml +42 -0
- data/app/views/ish_manager/leadsets/edit.haml +3 -0
- data/app/views/ish_manager/leadsets/index.haml +26 -0
- data/app/views/ish_manager/leadsets/new.haml +5 -0
- data/app/views/ish_manager/trash/email_campaigns-trash/_form.haml +46 -0
- data/app/views/ish_manager/{email_templates/_marketing_ror_2.html → trash/email_campaigns-trash/edit.haml} +0 -0
- data/app/views/ish_manager/trash/email_campaigns-trash/index.haml +4 -0
- data/app/views/ish_manager/trash/email_campaigns-trash/new.haml +2 -0
- data/config/routes.rb +6 -2
- metadata +15 -4
- data/app/views/ish_manager/email_campaigns/index.haml +0 -2
@@ -2,41 +2,18 @@
|
|
2
2
|
- url = lead.persisted? ? lead_path( lead.id ) : leads_path
|
3
3
|
|
4
4
|
= form_for lead, :as => :lead, :url => url do |f|
|
5
|
-
.
|
5
|
+
.field
|
6
|
+
= f.label :name
|
7
|
+
= f.text_field :name
|
8
|
+
.field
|
6
9
|
= f.label :email
|
7
10
|
= f.text_field :email
|
8
|
-
|
9
|
-
.input-field
|
10
|
-
= f.label :job_url
|
11
|
-
= f.text_field :job_url
|
12
|
-
.input-field
|
13
|
-
= f.label :company_url
|
14
|
-
= f.text_field :company_url
|
15
|
-
.input-field
|
16
|
-
= f.label :yelp_url
|
17
|
-
= f.text_field :yelp_url
|
18
|
-
|
19
|
-
.input-field
|
11
|
+
.field
|
20
12
|
= f.label :company
|
21
|
-
= f.
|
22
|
-
.
|
13
|
+
= f.select :m3_leadset_id, options_for_select(@leadsets_list, selected: lead.m3_leadset_id), { include_blank: true }, {class: 'select2' }
|
14
|
+
.field
|
23
15
|
= f.label :tag
|
24
16
|
= f.text_field :tag
|
25
|
-
.
|
26
|
-
= f.label :location
|
27
|
-
= f.text_field :location
|
28
|
-
.input-field
|
29
|
-
= f.label :description
|
30
|
-
= f.text_area :description
|
31
|
-
.input-field
|
32
|
-
= f.label :address
|
33
|
-
= f.text_area :address
|
34
|
-
.field
|
35
|
-
= f.check_box :is_done
|
36
|
-
= f.label :is_done
|
37
|
-
.field
|
38
|
-
= f.check_box :is_trash
|
39
|
-
= f.label :is_trash
|
40
|
-
.actions{ :style => "margin-top: 1em;" }
|
17
|
+
.actions
|
41
18
|
= f.submit
|
42
|
-
|
19
|
+
|
@@ -1,43 +1,33 @@
|
|
1
1
|
|
2
2
|
.manager-leads-index
|
3
3
|
%h5
|
4
|
-
|
5
|
-
(#{Ish::Lead.all.count})
|
4
|
+
SQL #{link_to 'Leads', leads_path} (#{::Lead.all.count})
|
6
5
|
= link_to raw("<i class='fa fa-plus-square'></i>"), new_lead_path
|
7
|
-
= link_to '[done]', done_leads_path
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
%th Email
|
18
|
-
%th Job Url
|
19
|
-
%th.company-url Company Url
|
20
|
-
%th.yelp-url Yelp Url
|
21
|
-
%th Location
|
22
|
-
%th Description
|
23
|
-
%th Address
|
24
|
-
%tbody
|
25
|
-
- @leads.each do |lead|
|
7
|
+
= form_tag leads_bulkop_path do
|
8
|
+
= label_tag 'Act on Selected:'
|
9
|
+
= select_tag :a, options_for_select( %w| delete add_to_campaign | )
|
10
|
+
= select_tag :email_campaign_id, options_for_select( @email_campaigns_list )
|
11
|
+
= submit_tag 'Go'
|
12
|
+
|
13
|
+
%table#dataTable.display.compact
|
14
|
+
%thead
|
26
15
|
%tr
|
27
|
-
%
|
28
|
-
%
|
29
|
-
%
|
30
|
-
%
|
31
|
-
%
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
= link_to
|
38
|
-
|
39
|
-
=
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
=
|
16
|
+
%th
|
17
|
+
%th Name
|
18
|
+
%th Company
|
19
|
+
%th Email
|
20
|
+
%th Tag
|
21
|
+
|
22
|
+
%tbody
|
23
|
+
- @leads.each do |lead|
|
24
|
+
%tr
|
25
|
+
%td= check_box_tag 'lead_ids[]', lead.id
|
26
|
+
%td= link_to lead.name, lead_path( lead )
|
27
|
+
%td= lead.leadset&.name
|
28
|
+
%td= lead.email
|
29
|
+
-# %td= link_to raw('<i class="fa fa-envelope"></i>'), "mailto:#{lead.email}" if lead.email.present?
|
30
|
+
|
31
|
+
|
32
|
+
%td= lead.tag
|
33
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
- url = leadset.persisted? ? leadset_path( leadset.id ) : leadsets_path
|
3
|
+
|
4
|
+
= form_for leadset, :as => :leadset, :url => url do |f|
|
5
|
+
.input-field
|
6
|
+
= f.label :email
|
7
|
+
= f.text_field :email
|
8
|
+
|
9
|
+
.input-field
|
10
|
+
= f.label :job_url
|
11
|
+
= f.text_field :job_url
|
12
|
+
.input-field
|
13
|
+
= f.label :company_url
|
14
|
+
= f.text_field :company_url
|
15
|
+
.input-field
|
16
|
+
= f.label :yelp_url
|
17
|
+
= f.text_field :yelp_url
|
18
|
+
|
19
|
+
.input-field
|
20
|
+
= f.label :company
|
21
|
+
= f.text_field :company
|
22
|
+
.input-field
|
23
|
+
= f.label :tag
|
24
|
+
= f.text_field :tag
|
25
|
+
.input-field
|
26
|
+
= f.label :location
|
27
|
+
= f.text_field :location
|
28
|
+
.input-field
|
29
|
+
= f.label :description
|
30
|
+
= f.text_area :description
|
31
|
+
.input-field
|
32
|
+
= f.label :address
|
33
|
+
= f.text_area :address
|
34
|
+
.field
|
35
|
+
= f.check_box :is_done
|
36
|
+
= f.label :is_done
|
37
|
+
.field
|
38
|
+
= f.check_box :is_trash
|
39
|
+
= f.label :is_trash
|
40
|
+
.actions{ :style => "margin-top: 1em;" }
|
41
|
+
= f.submit
|
42
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
.manager-leadsets-index
|
3
|
+
%h5
|
4
|
+
SQL
|
5
|
+
= link_to 'Leadsets', leadsets_path
|
6
|
+
(#{Leadset.all.count})
|
7
|
+
= link_to raw("<i class='fa fa-plus-square'></i>"), new_leadset_path
|
8
|
+
|
9
|
+
%table#dataTable.display.compact
|
10
|
+
%thead
|
11
|
+
%tr
|
12
|
+
%th
|
13
|
+
|
14
|
+
%th Name
|
15
|
+
%th Tag
|
16
|
+
%th.company-url Company Url
|
17
|
+
%th Location
|
18
|
+
%tbody
|
19
|
+
- @leadsets.each do |leadset|
|
20
|
+
%tr
|
21
|
+
%td= check_box_tag leadset.id
|
22
|
+
|
23
|
+
%td= link_to leadset.name, leadset_path( leadset )
|
24
|
+
%td= leadset.tag
|
25
|
+
%td= link_to 'B', leadset.company_url if leadset.company_url.present?
|
26
|
+
%td= leadset.location
|
@@ -0,0 +1,46 @@
|
|
1
|
+
|
2
|
+
.email-campaigns--form
|
3
|
+
%h2
|
4
|
+
Email Campaign
|
5
|
+
- if email_campaign.email_template
|
6
|
+
with template `#{email_campaign.email_template.slug}` type:#{email_campaign.email_template.type}.
|
7
|
+
|
8
|
+
- url = %w| index new create |.include?( params[:action] ) ? email_contexts_path : email_context_path(email_campaign)
|
9
|
+
= form_for email_campaign, url: url do |f|
|
10
|
+
.row
|
11
|
+
.col.s6
|
12
|
+
.field
|
13
|
+
= f.label :title
|
14
|
+
= f.text_field :title
|
15
|
+
|
16
|
+
.field
|
17
|
+
= f.label :email_template_id
|
18
|
+
= f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || email_campaign.email_template&.id )
|
19
|
+
|
20
|
+
.field
|
21
|
+
= f.label :from_email
|
22
|
+
= f.select :from_email, options_for_select(Ish::EmailContext.from_email_list, selected: email_campaign.from_email)
|
23
|
+
.field
|
24
|
+
= f.label :to_email
|
25
|
+
= f.text_field :to_email
|
26
|
+
|
27
|
+
.col.s6
|
28
|
+
%h5 Templating
|
29
|
+
.field
|
30
|
+
= f.label :name
|
31
|
+
= f.text_field :name
|
32
|
+
.field.field-subject
|
33
|
+
= f.label :subject
|
34
|
+
= f.text_field :subject
|
35
|
+
- if 'plain' == email_campaign.email_template&.type
|
36
|
+
.body
|
37
|
+
= raw email_campaign.email_template.body
|
38
|
+
- else
|
39
|
+
.field
|
40
|
+
= f.label :body
|
41
|
+
= f.text_area :body, class: 'tinymce'
|
42
|
+
.actions
|
43
|
+
.left
|
44
|
+
= f.submit 'Preview'
|
45
|
+
.right
|
46
|
+
-# = f.submit 'Schedule/Send'
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -62,10 +62,14 @@ IshManager::Engine.routes.draw do
|
|
62
62
|
|
63
63
|
resources :email_unsubscribes
|
64
64
|
|
65
|
-
get 'leads', :to => 'leads#index'
|
66
|
-
|
65
|
+
get 'leads', :to => 'leads#index'
|
66
|
+
post 'leads/bulkop', to: 'leads#bulkop'
|
67
67
|
resources :leads
|
68
68
|
|
69
|
+
resources :leadsets
|
70
|
+
|
71
|
+
resources :email_campaign_leads, as: :campaign_leads
|
72
|
+
|
69
73
|
resources :meetings
|
70
74
|
|
71
75
|
resources :newsitems
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.330
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -266,6 +266,7 @@ files:
|
|
266
266
|
- app/assets/stylesheets/ish_manager/user_profiles.scss
|
267
267
|
- app/assets/stylesheets/ish_manager/videos.scss
|
268
268
|
- app/controllers/ish_manager/application_controller.rb
|
269
|
+
- app/controllers/ish_manager/email_campaign_leads_controller.rb
|
269
270
|
- app/controllers/ish_manager/email_campaigns_controller.rb
|
270
271
|
- app/controllers/ish_manager/email_contexts_controller.rb
|
271
272
|
- app/controllers/ish_manager/email_templates_controller.rb
|
@@ -274,6 +275,7 @@ files:
|
|
274
275
|
- app/controllers/ish_manager/image_assets_controller.rb
|
275
276
|
- app/controllers/ish_manager/invoices_controller.rb
|
276
277
|
- app/controllers/ish_manager/leads_controller.rb
|
278
|
+
- app/controllers/ish_manager/leadsets_controller.rb
|
277
279
|
- app/controllers/ish_manager/maps_controller.rb
|
278
280
|
- app/controllers/ish_manager/markers_controller.rb
|
279
281
|
- app/controllers/ish_manager/meetings_controller.rb
|
@@ -286,6 +288,7 @@ files:
|
|
286
288
|
- app/helpers/ish_manager/application_helper.rb
|
287
289
|
- app/helpers/ish_manager/images_helper.rb
|
288
290
|
- app/jobs/ish_manager/application_job.rb
|
291
|
+
- app/jobs/ish_manager/email_campaign_job.rb
|
289
292
|
- app/jobs/ish_manager/test_email_job.rb
|
290
293
|
- app/mailers/ish_manager/application_mailer.rb
|
291
294
|
- app/mailers/ish_manager/meeting_mailer.rb
|
@@ -307,7 +310,7 @@ files:
|
|
307
310
|
- app/views/ish_manager/application/trash/_main_header_manager.haml
|
308
311
|
- app/views/ish_manager/application_mailer/shared_galleries.html.erb
|
309
312
|
- app/views/ish_manager/application_mailer/welcome.html.erb
|
310
|
-
- app/views/ish_manager/
|
313
|
+
- app/views/ish_manager/email_campaign_leads/show.haml
|
311
314
|
- app/views/ish_manager/email_contexts/_form.haml
|
312
315
|
- app/views/ish_manager/email_contexts/edit.haml
|
313
316
|
- app/views/ish_manager/email_contexts/index.haml
|
@@ -318,7 +321,7 @@ files:
|
|
318
321
|
- app/views/ish_manager/email_templates/_index.haml
|
319
322
|
- app/views/ish_manager/email_templates/_marketing_react_1.html
|
320
323
|
- app/views/ish_manager/email_templates/_marketing_ror_1.html
|
321
|
-
- app/views/ish_manager/email_templates/_marketing_ror_2.html
|
324
|
+
- app/views/ish_manager/email_templates/_marketing_ror_2.html.erb
|
322
325
|
- app/views/ish_manager/email_templates/_marketing_wordpress_1.html
|
323
326
|
- app/views/ish_manager/email_templates/_marketing_wordpress_2.html
|
324
327
|
- app/views/ish_manager/email_templates/_piousbox_roundborders.html.erb
|
@@ -360,6 +363,10 @@ files:
|
|
360
363
|
- app/views/ish_manager/leads/edit.haml
|
361
364
|
- app/views/ish_manager/leads/index.haml
|
362
365
|
- app/views/ish_manager/leads/new.haml
|
366
|
+
- app/views/ish_manager/leadsets/_form.haml
|
367
|
+
- app/views/ish_manager/leadsets/edit.haml
|
368
|
+
- app/views/ish_manager/leadsets/index.haml
|
369
|
+
- app/views/ish_manager/leadsets/new.haml
|
363
370
|
- app/views/ish_manager/maps/_form.haml
|
364
371
|
- app/views/ish_manager/maps/_index_item.haml
|
365
372
|
- app/views/ish_manager/maps/_map_meta_row.haml
|
@@ -404,6 +411,10 @@ files:
|
|
404
411
|
- app/views/ish_manager/reports/index.haml
|
405
412
|
- app/views/ish_manager/reports/new.haml
|
406
413
|
- app/views/ish_manager/reports/show.haml
|
414
|
+
- app/views/ish_manager/trash/email_campaigns-trash/_form.haml
|
415
|
+
- app/views/ish_manager/trash/email_campaigns-trash/edit.haml
|
416
|
+
- app/views/ish_manager/trash/email_campaigns-trash/index.haml
|
417
|
+
- app/views/ish_manager/trash/email_campaigns-trash/new.haml
|
407
418
|
- app/views/ish_manager/user_profiles/_form.haml
|
408
419
|
- app/views/ish_manager/user_profiles/_show.haml
|
409
420
|
- app/views/ish_manager/user_profiles/edit.haml
|