wco_email 0.1.1.4 → 0.1.1.5
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: 68de2aa2f69836c97bd54dd9fd7b7f5f8968933a8baa343351fb37d141a4ef64
|
4
|
+
data.tar.gz: 21d17f9d825d3cf51d3da1081149a2e17eded52b992150dca08fc91a330c2dcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 128535731037f157e3f2d717b3f4b3b1d3778d946ac0e067afbc4d924ab188723ed2ce2cf377e5f459940ab3e99658384d014bb033e023a27f8053737ca4a9bd
|
7
|
+
data.tar.gz: 618e690c06f6fb09e3b025cee7bfe63714235f946cb10ebab48b28fec6489f4c6d5bc4e754e9db9578e9ad93cca95b1ad8c34b3d90cfb340cc01d30e84017257
|
@@ -129,7 +129,7 @@ class WcoEmail::ContextsController < WcoEmail::ApplicationController
|
|
129
129
|
@ctx = WcoEmail::Context.find params[:id]
|
130
130
|
authorize! :update, @ctx
|
131
131
|
|
132
|
-
if @ctx.update_attributes params[:
|
132
|
+
if @ctx.update_attributes params[:context].permit!
|
133
133
|
flash[:notice] = 'Saved.'
|
134
134
|
redirect_to action: 'edit', id: @ctx.id
|
135
135
|
return
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
.email-contexts--form
|
5
5
|
-# - url = ctx.new_record? ? contexts_path : context_path(ctx)
|
6
|
-
= form_for ctx, as: :
|
6
|
+
= form_for ctx, as: :context do |f|
|
7
7
|
|
8
8
|
.flex-row
|
9
9
|
= f.label "Template"
|
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
.flex-row
|
36
36
|
= f.label :reply_to_message
|
37
|
-
= f.select :reply_to_message_id, options_for_select([[ ctx.reply_to_message
|
37
|
+
= f.select :reply_to_message_id, options_for_select([[ ctx.reply_to_message, ctx.reply_to_message_id ]], selected: ctx.reply_to_message_id), {}, class: 'w-100'
|
38
38
|
|
39
39
|
.tab-labels.flex-row
|
40
40
|
%a.label-raw{ href: "javascript: void(0)", data: { ref: '.tab-raw' } } Raw
|
@@ -13,7 +13,8 @@
|
|
13
13
|
<b>Template:</b> #{link_to @ctx.email_template.slug, email_template_path(@ctx.email_template), target: :_blank }
|
14
14
|
%li <b>From:</b> #{@ctx.from_email}
|
15
15
|
%li <b>To Lead:</b> #{link_to @ctx.lead.email, wco.lead_path(@ctx.lead)}
|
16
|
-
|
16
|
+
- if @ctx.reply_to_message
|
17
|
+
%li <b>reply_to_message:</b> #{ link_to @ctx.reply_to_message, message_path(@ctx.reply_to_message), target: :_blank }
|
17
18
|
|
18
19
|
|
19
20
|
.col-md-4
|