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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d3ea64ba1ec38637bdb0384d2cb97992f0ee08580b3711603eb0b8d5074776d
4
- data.tar.gz: 0a2686ddb9bcdf5751b3c55faef56d57e83e92aecc0d5857aa5724603f267c3f
3
+ metadata.gz: 851e8e001bf09f1042638754ef22c0d943bc00b62519f9f869b9e3876ff6f7b5
4
+ data.tar.gz: 2e3b5dc89b06e897e21613d13df201033ebf52dc8c067650dd345a568d232c79
5
5
  SHA512:
6
- metadata.gz: e036d2bdf569ccc7bd9b30c9655c55ee239651c80c4bdd8422ecc3c1ad5fd67b1350d04facc6e47f111e190c376e5118c3c283c262d558d451f429961a677fb5
7
- data.tar.gz: 52e1e727d1c88caeae6933a8c396c19d9040d9e682f8028230081e5121bc2e2e2d7b248b274889bb104551725f56e3c432af75231c965c37158bc72623f5bf2d
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
- @convs = @lead.conversations.includes(:messages)
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
- Scheduled actions (#{@lead.schs.length})
50
- -# = link_to '[+]', '#'
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.email_action.slug, edit_scheduled_email_action_path(sch)
56
- = sch.state
57
- (#{link_to 'proto-action', edit_email_action_path(sch.email_action)})
58
- = sch.perform_at
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.129
4
+ version: 3.1.0.131
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev