effective_email_templates 1.9.2 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aecf517797bf525786a337892736177a941ad8087d7aea7f2127b17fa5bd1fa
4
- data.tar.gz: 87d3b90b627e6a7e016a4c5bec608572f1d94c50d9808cf6e733ed17d7df19ac
3
+ metadata.gz: 22c94c5f28e082f029701dea00e77fbf19758c5c3273ae68bc725429d3864176
4
+ data.tar.gz: d2ac8302071d55c74d2008f808a1e35fac77bd57933722e7bde8bdeb05938750
5
5
  SHA512:
6
- metadata.gz: f0dfa1509e5955bbfa28696eaf0dadc73e3f17abff321b73673fa2dda1f5105546c2f70832f4caaf6266e8524f64add45fb5891583680f9b932b99fcf380c3df
7
- data.tar.gz: 84cfb8773a21105828b2fdb971e9c4d454a12c1cfdf5d52a30d004407adce2f3d88a95ed239ddfbb1c36fecfe376f4dfd5cfdf16a20878cdd566225502508190
6
+ metadata.gz: 48c579ece7dfe1e077b7570bfda94610335df6e0be047cc4c04db8c6b503b8c1747efc84245da702a5cafb0df7dd4448e0e7a0ba5864cb795fb71fdab72d4b1b
7
+ data.tar.gz: 34e347579eb631dce2bcde73666a9236c9188e87a5ea51a25d58c686770c3d7120efe30cef9837448d9eee9c5dc60aa8e6c4d2fa0d822bfa2e2f7ba8f091ad40
@@ -1,21 +1,22 @@
1
1
  = effective_form_with(model: email_template, url: email_template.persisted? ? effective_email_templates.admin_email_template_path(email_template.id) : effective_email_templates.admin_email_templates_path) do |f|
2
- = f.static_field :template_name, label: 'Name'
2
+ = card do
3
+ = f.static_field :template_name, label: 'Name'
4
+
5
+ - if EffectiveEmailTemplates.select_content_type
6
+ = f.select :content_type, Effective::EmailTemplate::CONTENT_TYPES
3
7
 
4
- - if EffectiveEmailTemplates.select_content_type
5
- = f.select :content_type, Effective::EmailTemplate::CONTENT_TYPES
8
+ = f.select :from, mailer_froms_collection(), hint: 'Please contact us to add additional sender addresses. Please refresh the page if this from address looks weird.'
9
+ = f.text_field :cc
10
+ = f.text_field :bcc
6
11
 
7
- = f.select :from, mailer_froms_collection(), hint: 'Please contact us to add additional sender addresses. Please refresh the page if this from address looks weird.'
8
- = f.text_field :cc
9
- = f.text_field :bcc
12
+ - prefix_hint = EffectiveResources.mailer_subject_prefix_hint.to_s.strip.presence
13
+ = f.text_field :subject, hint: (prefix_hint ? "The subject of your email. It will be automatically prefixed with: #{prefix_hint}" : 'The subject of your email')
10
14
 
11
- - prefix_hint = EffectiveResources.mailer_subject_prefix_hint.to_s.strip.presence
12
- = f.text_field :subject, hint: (prefix_hint ? "The subject of your email. It will be automatically prefixed with: #{prefix_hint}" : 'The subject of your email')
15
+ = f.show_if(:content_type, Effective::EmailTemplate::CONTENT_TYPE_PLAIN) do
16
+ = f.text_area :body, hint: 'The text/plain content of your email template', rows: 10
13
17
 
14
- = f.show_if(:content_type, Effective::EmailTemplate::CONTENT_TYPE_PLAIN) do
15
- = f.text_area :body, hint: 'The text/plain content of your email template', rows: 10
16
-
17
- = f.show_if(:content_type, Effective::EmailTemplate::CONTENT_TYPE_HTML) do
18
- = f.article_editor :body, hint: 'The text/html content of your email template', mode: :email
18
+ = f.show_if(:content_type, Effective::EmailTemplate::CONTENT_TYPE_HTML) do
19
+ = f.article_editor :body, hint: 'The text/html content of your email template', mode: :email
19
20
 
20
21
  = card do
21
22
  %p The available variables for this email template are:
@@ -1,3 +1,3 @@
1
1
  module EffectiveEmailTemplates
2
- VERSION = '1.9.2'.freeze
2
+ VERSION = '1.9.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_email_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-13 00:00:00.000000000 Z
11
+ date: 2026-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails