ish_manager 0.1.8.341 → 0.1.8.342
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31dc721f8085acc082c40407f49b1d43d5e2fdea662ec65baab7518d05e59bc6
|
4
|
+
data.tar.gz: 92623cdaabf812aa4949bb91f8316fd9173cc6553df79cb04f5027c4d46da49b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 747bafb898ed79e8d7a8fd09a381221745733082b69214a1512d100d4ce5997daef0d4f9261d0311991d93d02483c4f8917648be5241915217d1b09188d7e438
|
7
|
+
data.tar.gz: 31e72f77b079430987187711798a1b0744739cd3d73958757c2c393277aae95ae85f569fff846b0213d2b5c94f13db0bf37e248537edd022c17fd32bbe67bdbd
|
@@ -46,9 +46,9 @@ class ::IshManager::LeadsController < IshManager::ApplicationController
|
|
46
46
|
flags = []
|
47
47
|
errors = []
|
48
48
|
CSV.read(file.path, headers: true).each do |row|
|
49
|
-
|
50
|
-
|
51
|
-
company = ::Leadset.find_or_create_by({ company_url:
|
49
|
+
company_url = row[4].presence
|
50
|
+
company_url ||= "https://#{row[3].split('@')[1]}"
|
51
|
+
company = ::Leadset.find_or_create_by({ company_url: company_url })
|
52
52
|
lead = ::Lead.new({
|
53
53
|
name: row[2] || 'there',
|
54
54
|
full_name: row[2] || 'there',
|
@@ -2,41 +2,19 @@
|
|
2
2
|
- url = leadset.persisted? ? leadset_path( leadset.id ) : leadsets_path
|
3
3
|
|
4
4
|
= form_for leadset, :as => :leadset, :url => url do |f|
|
5
|
-
.input-field
|
6
|
-
= f.label :email
|
7
|
-
= f.text_field :email
|
8
5
|
|
9
|
-
.input-field
|
10
|
-
= f.label :job_url
|
11
|
-
= f.text_field :job_url
|
12
6
|
.input-field
|
13
7
|
= f.label :company_url
|
14
8
|
= f.text_field :company_url
|
15
9
|
.input-field
|
16
|
-
= f.label :
|
17
|
-
= f.text_field :
|
18
|
-
|
19
|
-
.input-field
|
20
|
-
= f.label :company
|
21
|
-
= f.text_field :company
|
10
|
+
= f.label :name
|
11
|
+
= f.text_field :name
|
22
12
|
.input-field
|
23
13
|
= f.label :tag
|
24
14
|
= f.text_field :tag
|
25
15
|
.input-field
|
26
16
|
= f.label :location
|
27
17
|
= 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
18
|
.actions{ :style => "margin-top: 1em;" }
|
41
19
|
= f.submit
|
42
20
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
%thead
|
11
11
|
%tr
|
12
12
|
%th
|
13
|
-
|
13
|
+
%th created at
|
14
14
|
%th Name
|
15
15
|
%th Tag
|
16
16
|
%th.company-url Company Url
|
@@ -19,8 +19,8 @@
|
|
19
19
|
- @leadsets.each do |leadset|
|
20
20
|
%tr
|
21
21
|
%td= check_box_tag leadset.id
|
22
|
-
|
22
|
+
%td= leadset.created_at.strftime("%Y-%m-%d %H:%M")
|
23
23
|
%td= link_to leadset.name, leadset_path( leadset )
|
24
24
|
%td= leadset.tag
|
25
|
-
%td= link_to
|
25
|
+
%td= link_to leadset.company_url, leadset.company_url
|
26
26
|
%td= leadset.location
|