wco_models 3.1.0.129 → 3.1.0.131
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/wco/leads_controller.rb +6 -2
- data/app/views/wco/leads/show.haml +9 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 851e8e001bf09f1042638754ef22c0d943bc00b62519f9f869b9e3876ff6f7b5
|
4
|
+
data.tar.gz: 2e3b5dc89b06e897e21613d13df201033ebf52dc8c067650dd345a568d232c79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc62d5bc28d595a2140efcbadb652b9af60f3e6c4284034e4a1a96bcb6e78497e6e09d7f1566b1934ae4f329b4a765d0dc946c84d63c51ef54ae0fe697df98ce
|
7
|
+
data.tar.gz: 906f395e8a428a1eacebd532b555f7e837f8ac3468923703f7b90bb0e089ad53358928b244352fb7e3ecda684ac5adc4c58127d51e2e3b6c064dec6b7336d4d9
|
@@ -67,8 +67,12 @@ class Wco::LeadsController < Wco::ApplicationController
|
|
67
67
|
redirect_to request.referrer
|
68
68
|
return
|
69
69
|
end
|
70
|
-
@ctxs = @lead.ctxs
|
71
|
-
|
70
|
+
@ctxs = @lead.ctxs.page( params[:ctxs_page] ).per( current_profile.per_page )
|
71
|
+
|
72
|
+
## not paginated b/c of dataTable:
|
73
|
+
@convs = @lead.conversations # .includes(:messages)
|
74
|
+
# ).page( params[:convs_page] ).per( current_profile.per_page )
|
75
|
+
|
72
76
|
end
|
73
77
|
|
74
78
|
def update
|
@@ -18,8 +18,6 @@
|
|
18
18
|
%li Phone: #{@lead.phone}
|
19
19
|
- if @lead.address
|
20
20
|
%li Address: #{@lead.address}
|
21
|
-
-# - if @lead.shoe_size
|
22
|
-
-# %li Shoe size: #{@lead.shoe_size}
|
23
21
|
-# - if @lead.comment
|
24
22
|
-# %li Comment: #{raw @lead.comment}
|
25
23
|
- if @lead.photo
|
@@ -39,23 +37,25 @@
|
|
39
37
|
Email Contexts (#{@lead.ctxs.length})
|
40
38
|
= link_to '[+]', '#'
|
41
39
|
%ul
|
40
|
+
= paginate @ctxs, param_name: :ctxs_page
|
42
41
|
- @ctxs.each do |ctx|
|
43
42
|
%li
|
44
43
|
= pp_date( ctx.sent_at ) || 'not sent'
|
45
44
|
= link_to ctx.subject.presence||"No Subj?!", wco_email.context_path(ctx)
|
45
|
+
= paginate @ctxs, param_name: :ctxs_page
|
46
46
|
|
47
47
|
.col-md-6.schs
|
48
48
|
%h5
|
49
|
-
|
50
|
-
|
51
|
-
\[+]
|
49
|
+
Email Actions (#{@lead.schs.length})
|
50
|
+
= link_to '[+]', wco_email.new_email_action_path(lead_id: @lead.id)
|
52
51
|
%ul
|
53
52
|
- @lead.schs.each do |sch|
|
54
53
|
%li
|
55
|
-
= link_to sch
|
56
|
-
= sch.
|
57
|
-
|
58
|
-
|
54
|
+
= link_to sch, wco_email.edit_email_action_path(sch)
|
55
|
+
= sch.status
|
56
|
+
%br
|
57
|
+
(#{link_to sch.email_action_template, wco_email.edit_email_action_template_path(sch.email_action_template)})
|
58
|
+
Perform at: #{pp_datetime sch.perform_at}
|
59
59
|
|
60
60
|
%hr
|
61
61
|
%h5
|