ish_manager 0.1.8.392 → 0.1.8.394

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: 93cdc467e77550fd625d0f7161873674bb4a3d6fbe6ffac20f0ab49c5684c61c
4
- data.tar.gz: 7a6836e9599041bf4420970a5212c65d0088b16a7933c62f29b8da3dc9a34a66
3
+ metadata.gz: d5c26994da09cbf70a9dadd1e16d13065210254c3e8f179b4280bf94e362f4e7
4
+ data.tar.gz: 7f1c8488ca6b6e064cb5acd31697b710ad93d407565099971a52557ba288cb18
5
5
  SHA512:
6
- metadata.gz: aa535f6d1d318d7c16dd48e7685ce9d1be8854246dc9d527ea8d11871c81aebe4e23315613672feb5df6ac374855b7b417900efea24b473a457bd46cc9422855
7
- data.tar.gz: c76fa0c68da834e846c98ce4d40ddb74953d74a090122ac901c2eea7d75e7ea27200f7f20cf8a022376c1ac0970cf8139c75e13c51c40e8b98221987b704562a
6
+ metadata.gz: 5991b77d0bd5a95d9724547033e3a28f455813d4aef0708167e14452dba4e0972e9f4ac94e8e9f266a5d9842073cdf091bc2ac386c225c76a16638cbfb9ccd04
7
+ data.tar.gz: 2a859c9c6dd00709ac1563ba471e069e9f1eceda63552b86f5b4443116293ec034916f742e48385f7658b271268c3bb77c712240ac7f47ceb0ee1711a918a1b3
@@ -80,12 +80,14 @@ class ::IshManager::EmailContextsController < ::IshManager::ApplicationControlle
80
80
 
81
81
  def new
82
82
  authorize! :new, ::Ish::EmailContext
83
- @tmpl = @email_template = Ish::EmailTemplate.where( slug: params[:template_slug] ).first || Ish::EmailTemplate.where( id: params[:template_slug] ).first
83
+ @tmpl = @email_template = Ish::EmailTemplate.where( slug: params[:template_slug] ).first ||
84
+ Ish::EmailTemplate.where( id: params[:template_slug] ).first ||
85
+ Ish::EmailTemplate.new
84
86
  attrs = {}
85
87
  if @tmpl
86
88
  attrs = @tmpl.attributes.slice( :subject, :body, :from_email )
87
89
  end
88
- @ctx = ::Ish::EmailContext.new( { email_template: @tmpl }.merge(attrs) )
90
+ @ctx = ::Ish::EmailContext.new({ email_template: @tmpl }.merge(attrs))
89
91
  end
90
92
 
91
93
  def show
@@ -36,7 +36,10 @@
36
36
  .tab-raw
37
37
  = f.text_area :body
38
38
  .tab-preview
39
- %iframe{ src: email_context_iframe_path(ctx), width: '100%', height: '100%' }
39
+ - if ctx.new_record?
40
+ New record...
41
+ - else
42
+ %iframe{ src: email_context_iframe_path(ctx), width: '100%', height: '100%' }
40
43
 
41
44
 
42
45
  .actions
@@ -11,6 +11,10 @@
11
11
  = f.label :email
12
12
  = f.text_field :email
13
13
 
14
+ .field
15
+ = f.label :phone
16
+ = f.text_field :phone
17
+
14
18
  .field
15
19
  = f.label "Leadset (company)"
16
20
  = f.select :m3_leadset_id, options_for_select(@leadsets_list, selected: lead.m3_leadset_id), { include_blank: true }, { class: 'select2' }
@@ -17,6 +17,7 @@
17
17
  %th &nbsp;
18
18
  %th Name/Email
19
19
  %th Company
20
+ %th Phone
20
21
  %th Tag
21
22
  %th created_at
22
23
  %th Ctx
@@ -28,6 +29,7 @@
28
29
  %td= check_box_tag 'lead_ids[]', lead.id
29
30
  %td= link_to "#{lead.name} <#{lead.email}>", lead_path( lead )
30
31
  %td= lead.company.company_url
32
+ %td= lead.phone
31
33
  %td= lead.wp_tags.map(&:name).join(", ")
32
34
  %td= lead.created_at.to_s[0..10]
33
35
  %td.ctx
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.392
4
+ version: 0.1.8.394
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox