ish_manager 0.1.8.363 → 0.1.8.364
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_conversations.js +6 -20
- data/app/assets/stylesheets/ish_manager/application.scss +5 -0
- data/app/assets/stylesheets/ish_manager/email_conversations.scss +12 -0
- data/app/assets/stylesheets/ish_manager/scheduled_actions_emails.scss +6 -0
- data/app/views/ish_manager/email_conversations/show.haml +10 -9
- data/app/views/ish_manager/scheduled_email_actions/_form.haml +16 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43b6fa2d41aaca42dc7181d68f72e49a5fc9a76d4327894d55d6d0156f141cff
|
4
|
+
data.tar.gz: ea82d9eaf2c0e36a905224f1ee9800b9cfedfc5d5d4e351e5a85390314b95d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c90b40886b5eb082a6f52f33a289f2f36d177a2a8c718b905dccb95d770fea1e4ace19266af55cb886bd9d6412f6a9850a85856ee1962e77d4a99f8b6507034e
|
7
|
+
data.tar.gz: cbafecbe93220b787d6d28156992273f417fac83d1007e45fb0636bce92784f72c5909ef817faa9508703323feeb41eab98f2ad896cc2f5e333ccd89e462d325
|
@@ -5,29 +5,15 @@ $(document).ready(() => {
|
|
5
5
|
// logg(e, 'clicked')
|
6
6
|
|
7
7
|
if ($(this).data('expanded')) {
|
8
|
-
$(this).parent().find(".expand").html('')
|
9
|
-
$(this).parent().find(".my-actions").addClass('hide')
|
10
8
|
$(this).data('expanded', false)
|
11
|
-
|
9
|
+
$(this).parent().find(".my-actions").addClass('hide')
|
10
|
+
$(this).parent().find("iframe").css('display', 'none')
|
11
|
+
} else {
|
12
|
+
$(this).data('expanded', true)
|
13
|
+
$(this).parent().find(".my-actions").removeClass('hide')
|
14
|
+
$(this).parent().find("iframe").css('display', 'block')
|
12
15
|
}
|
13
16
|
|
14
|
-
const action_path = "/api/email_messages/" + $(this).data('id')
|
15
|
-
|
16
|
-
$.ajax({
|
17
|
-
url: action_path,
|
18
|
-
type: 'GET',
|
19
|
-
data: {
|
20
|
-
jwt_token: $( $("#Config")[0] ).data('jwt-token'),
|
21
|
-
},
|
22
|
-
success: e => {
|
23
|
-
$(this).parent().find(".expand").html(e.item.part_html)
|
24
|
-
$(this).parent().find(".my-actions").removeClass('hide')
|
25
|
-
$(this).data('expanded', true)
|
26
|
-
},
|
27
|
-
error: e => {
|
28
|
-
logg((e||{}).responseText, 'cannot get email_message')
|
29
|
-
},
|
30
|
-
})
|
31
17
|
})
|
32
18
|
|
33
19
|
})
|
@@ -184,6 +184,7 @@ table.dataTable {
|
|
184
184
|
padding: .8em;
|
185
185
|
}
|
186
186
|
|
187
|
+
|
187
188
|
/* F */
|
188
189
|
|
189
190
|
.flex-row {
|
@@ -216,6 +217,10 @@ table.dataTable {
|
|
216
217
|
.hide, .hidden {
|
217
218
|
display: none !important;
|
218
219
|
}
|
220
|
+
.hide-expand {
|
221
|
+
display: none;
|
222
|
+
position: absolute;
|
223
|
+
}
|
219
224
|
|
220
225
|
/* I */
|
221
226
|
img.img-400 {
|
@@ -103,6 +103,18 @@
|
|
103
103
|
display: flex;
|
104
104
|
justify-content: space-between;
|
105
105
|
}
|
106
|
+
|
107
|
+
.row-2 {
|
108
|
+
iframe {
|
109
|
+
border: 2px solid yellow;
|
110
|
+
|
111
|
+
width: 100%;
|
112
|
+
min-height: 500px;
|
113
|
+
height: 80vh;
|
114
|
+
display: none;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
106
118
|
}
|
107
119
|
}
|
108
120
|
|
@@ -22,15 +22,15 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
.messages.max-width
|
25
|
-
- @email_messages.each do |
|
26
|
-
- lead =
|
25
|
+
- @email_messages.each do |msg|
|
26
|
+
- lead = msg.lead || Lead.new(email: 'NO LEAD!', id: 'no lead')
|
27
27
|
|
28
28
|
.item
|
29
29
|
.row-1
|
30
|
-
.gray=
|
30
|
+
.gray= msg.id
|
31
31
|
|
32
32
|
.chip.from
|
33
|
-
-# =
|
33
|
+
-# = msg.from
|
34
34
|
= lead.email
|
35
35
|
|
36
36
|
.relative
|
@@ -45,13 +45,14 @@
|
|
45
45
|
= render 'ish_manager/scheduled_email_actions/form', scheduled_email_action: Sch.new({ lead_id: lead.id })
|
46
46
|
|
47
47
|
.datetime
|
48
|
-
.date=
|
49
|
-
.time=
|
48
|
+
.date= msg.date&.strftime('%Y-%m-%d')
|
49
|
+
.time= msg.date&.strftime('%l:%M%P')
|
50
50
|
|
51
51
|
.row-2
|
52
|
-
|
53
|
-
|
54
|
-
.
|
52
|
+
|
53
|
+
- link_label = (ActionView::Base.full_sanitizer.sanitize( msg.part_html )||'<no-info>')[0..200]
|
54
|
+
= link_to link_label, ishapi.email_message_path(msg, jwt_token: @jwt_token ), target: msg.message_id, class: 'preview'
|
55
|
+
%iframe{ name: msg.message_id }
|
55
56
|
|
56
57
|
.my-actions.hide
|
57
58
|
= render 'ish_manager/email_templates/form_reply_2_mini'
|
@@ -6,21 +6,21 @@
|
|
6
6
|
- sch_a = scheduled_email_action
|
7
7
|
- url = sch_a.new_record? ? scheduled_email_actions_path : scheduled_email_action_path(sch_a.id)
|
8
8
|
|
9
|
+
.scheduled-email-actions--form
|
10
|
+
= form_for scheduled_email_action, url: url, html: { class: "form-mini" } do |f|
|
11
|
+
.header
|
12
|
+
%h5.title Schedule an email action
|
9
13
|
|
10
|
-
|
11
|
-
|
12
|
-
|
14
|
+
.field
|
15
|
+
%label Lead
|
16
|
+
= select_tag :lead_id, options_for_select( @leads_list, selected: sch_a[:lead_id]||params[:lead_id] ), class: 'select2'
|
17
|
+
.field
|
18
|
+
%label State
|
19
|
+
= f.select :state, options_for_select(::Office::ScheduledEmailAction::STATES, selected: sch_a.state ), class: 'select2'
|
20
|
+
%br
|
21
|
+
.field
|
22
|
+
%label Email Action
|
23
|
+
= select_tag :email_action_id, options_for_select( @email_actions_list, selected: sch_a[:email_action_id] ), class: 'select2'
|
13
24
|
|
14
|
-
|
15
|
-
|
16
|
-
= select_tag :lead_id, options_for_select( @leads_list, selected: sch_a[:lead_id]||params[:lead_id] ), class: 'select2'
|
17
|
-
.field
|
18
|
-
%label State
|
19
|
-
= f.select :state, options_for_select(::Office::ScheduledEmailAction::STATES, selected: sch_a.state ), class: 'select2'
|
20
|
-
%br
|
21
|
-
.field
|
22
|
-
%label Email Action
|
23
|
-
= select_tag :email_action_id, options_for_select( @email_actions_list, selected: sch_a[:email_action_id] ), class: 'select2'
|
24
|
-
|
25
|
-
.actions
|
26
|
-
= submit_tag 'Schedule'
|
25
|
+
.actions
|
26
|
+
= submit_tag 'Schedule'
|
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.364
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|