wco_email 0.1.1.44 → 0.1.1.45

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: 1e7b22857d5f395c1bfed4fe2eaf073687aa56dc9770f67c1222edb8d24cf94e
4
- data.tar.gz: d5208aab447a17ad911f48862b1f6a3d84715b22dc8f1c8754aa83f092e38239
3
+ metadata.gz: 3de386dce58be9108942565bde099d2dfaf0bf19477dadbba6141c80554b45c5
4
+ data.tar.gz: e4a1f65a40fe9493b0489dc493aa954945af182d6a9a421a1dac37f7ad6ec307
5
5
  SHA512:
6
- metadata.gz: b0ffdec195f3e74bef7f79612f5e13a15d686e84f397073f552edaffe6d51f509712718c795361fb9252fb9a7db47acbbe6b998c731b2e6e04766e4ec782b16f
7
- data.tar.gz: 5593fba9077f69ad8ba0d95e45e7c16224b63253e1da6e2334dfa21130e2055d0a3c3bb240596d89ae18c7b2771678883ab7d430c60722fc06c6aa3e98a304f4
6
+ metadata.gz: 16f6f116aa3da37a3064592efb63220894bba9c5f10ce28ae9312c0fb6ac5eccfcba4c8083de6c21ec0de377befc0d4b458ddd1a58390f360298b12b755cefc2
7
+ data.tar.gz: 1a886343593044574fd6963cba4ba36c04ffda384c8f3941592fed4ae9c9415d623f9d8b15ef1e534c9fd47e567efe3d29090611b5d809c433400acf2383e772
@@ -12,14 +12,13 @@
12
12
  = f.select :lead, options_for_select( @leads_list, selected: lead_id ), {}, class: 'select2', required: true
13
13
  .flex-row
14
14
  = f.label :template
15
- = f.select :email_template_id, options_for_select( @email_templates_list ), {}, class: 'select2', required: true
15
+ = f.select :email_template_id, options_for_select( @email_templates_list, selected: ctx.email_template_id ), {}, class: 'select2', required: true
16
16
  = link_to '[+]', new_email_template_path, target: :_blank
17
17
  .flex-row
18
18
  %label Subject
19
19
  = f.text_field :subject, class: 'w-100'
20
20
  .field
21
- -## No tinymce, b/c I must allow body to be empty, to be overridden by the template.
22
- = f.text_area :body
21
+ = f.text_area :body, class: 'tinymce'
23
22
  .flex-row
24
23
  .flex-row
25
24
  %label Respond inline?
@@ -24,4 +24,4 @@
24
24
  = render '/wco_email/messages/meta', message: msg
25
25
  %iframe.message-iframe{ src: message_iframe_path(msg) }
26
26
 
27
- = render '/wco_email/contexts/form_reply', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to&.downcase, subject: msg.subject })
27
+ = render '/wco_email/contexts/form_reply', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to&.downcase, subject: msg.subject, email_template_id: ET.find_by( slug: 'blank').id })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.44
4
+ version: 0.1.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: jbuilder
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.11.5
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.11.5
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: kaminari-mongoid
113
127
  requirement: !ruby/object:Gem::Requirement