effective_memberships 0.5.4 → 0.6.0

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: 3d91995abf15a0631992651d8e6c595d482becfc19500f71dc8d20c28b0ad9a5
4
- data.tar.gz: 1e71e351b26dd1ec213e9705c61740ec3c4d0e515b43c19712b523402e80c640
3
+ metadata.gz: 3e0fe5390c8126df8c148cf4d031bf4611cc202acf55414f3da855a07e89a60a
4
+ data.tar.gz: 8ce7268567f65358a1dd806f689e6f31eb323f6f26ca7f1c7e82a13506faab6f
5
5
  SHA512:
6
- metadata.gz: 41e68540c92545dea5d8fee849d95ef747d9fb12ef066e0678e664a7e2bd16678a67601abc3ced853e9dba8836cb36eb7e83493854a856922fa6f7a171e4f596
7
- data.tar.gz: d2462226813dd2376c9f6a38b2fd84be373716f0c8494ddef239c70616ca829825efca6c52ac7b323c47dffc8bb1e9a4b5428114122616426f7ac9288eda5ef2
6
+ metadata.gz: 9a658433b5659a0cd35c3f311bb6da56ff909ec0d3aa9a10e9aea337496e4b81935f9329bcdc87080d8ddbec6ae4d45eec8baa7b5e33568864b07b573ab3a5bb
7
+ data.tar.gz: 329b5687fe923fd2e8e1820c84623d74dbfcf2ce3e6b5b4cc99df14ae55d4c1bf26ef76b1ce027e7db203cbce1fd828d4955d262651c59ee449101d0df485a78
@@ -2,8 +2,10 @@
2
2
 
3
3
  = effective_form_with(model: [:admin, category], engine: true) do |f|
4
4
  = card("All Steps") do
5
- = f.rich_text_area "rich_text_applicant_all_steps_content", label: false,
6
- hint: "displayed on all steps"
5
+ - if defined?(EffectiveArticleEditor)
6
+ = f.article_editor "rich_text_applicant_all_steps_content", label: false, hint: "displayed on all steps"
7
+ - else
8
+ = f.rich_text_area "rich_text_applicant_all_steps_content", label: false, hint: "displayed on all steps"
7
9
 
8
10
  %hr
9
11
 
@@ -13,7 +15,9 @@
13
15
  - next unless enabled.include?(step)
14
16
 
15
17
  = card("#{title}") do
16
- = f.rich_text_area "rich_text_applicant_#{step}_content", label: false,
17
- hint: "displayed on the applicant #{step} wizard step only"
18
+ - if defined?(EffectiveArticleEditor)
19
+ = f.article_editor "rich_text_applicant_#{step}_content", label: false, hint: "displayed on the applicant #{step} wizard step only"
20
+ - else
21
+ = f.rich_text_area "rich_text_applicant_#{step}_content", label: false, hint: "displayed on the applicant #{step} wizard step only"
18
22
 
19
23
  = f.submit
@@ -7,7 +7,9 @@
7
7
  - if f.object.class.categories.present?
8
8
  = f.select :category, f.object.class.categories
9
9
 
10
- = f.rich_text_area :rich_text_body, label: 'Body',
11
- hint: 'A quick description of this category. It is displayed on the Application Select Category step.'
10
+ - if defined?(EffectiveArticleEditor)
11
+ = f.article_editor :rich_text_body, label: 'Body', hint: 'A quick description of this category. It is displayed on the Application Select Category step.'
12
+ - else
13
+ = f.rich_text_area :rich_text_body, label: 'Body', hint: 'A quick description of this category. It is displayed on the Application Select Category step.'
12
14
 
13
15
  = f.submit
@@ -2,8 +2,10 @@
2
2
 
3
3
  = effective_form_with(model: [:admin, category], engine: true) do |f|
4
4
  = card("All Steps") do
5
- = f.rich_text_area "rich_text_fee_payment_all_steps_content", label: false,
6
- hint: "displayed on all steps"
5
+ - if defined?(EffectiveArticleEditor)
6
+ = f.article_editor "rich_text_fee_payment_all_steps_content", label: false, hint: "displayed on all steps"
7
+ - else
8
+ = f.rich_text_area "rich_text_fee_payment_all_steps_content", label: false, hint: "displayed on all steps"
7
9
 
8
10
  %hr
9
11
 
@@ -13,7 +15,9 @@
13
15
  - next unless enabled.include?(step)
14
16
 
15
17
  = card("#{title}") do
16
- = f.rich_text_area "rich_text_fee_payment_#{step}_content", label: false,
17
- hint: "displayed on the fee payment #{step} wizard step only"
18
+ - if defined?(EffectiveArticleEditor)
19
+ = f.article_editor "rich_text_fee_payment_#{step}_content", label: false, hint: "displayed on the fee payment #{step} wizard step only"
20
+ - else
21
+ = f.rich_text_area "rich_text_fee_payment_#{step}_content", label: false, hint: "displayed on the fee payment #{step} wizard step only"
18
22
 
19
23
  = f.submit
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.5.4'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
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: 2022-08-22 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails