effective_events 0.3.1 → 0.4.1
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 +4 -4
- data/app/models/effective/event.rb +1 -1
- data/app/models/effective/event_registrant.rb +1 -1
- data/app/views/admin/events/_form_content.html.haml +6 -2
- data/app/views/admin/events/_form_event_registration_content.html.haml +8 -4
- data/app/views/effective/event_registrations/_content.html.haml +2 -2
- data/lib/effective_events/engine.rb +4 -2
- data/lib/effective_events/version.rb +1 -1
- 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: c3cc18563f533b13a758addad2e5c979d07dc0cc5ac600470bac421be24bd749
|
4
|
+
data.tar.gz: 4ba14bd70df819232c3866ffd42afe7b78e02b2283da9db24f73408392fc0bdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9820e104abbb83b4ad4e628e837458d2ca6364e078b3590abe49cf605d99cf7fe2eaf2e760ce97e19e3395621b59177503577a1e7f21c071524417e12031746a
|
7
|
+
data.tar.gz: 9fbf56791b01f83864adf08828a366998c70f2e6db1c3396bc80a2c5d9bfda8d25ee3aa7d7276f96bff80fda85e2c7ae160bb9b7295080f69c36f175d1481589
|
@@ -82,7 +82,7 @@ module Effective
|
|
82
82
|
scope :events, -> (user: nil, unpublished: false) {
|
83
83
|
scope = all.deep.sorted
|
84
84
|
|
85
|
-
if defined?(EffectiveRoles) &&
|
85
|
+
if defined?(EffectiveRoles) && EffectiveEvents.use_effective_roles
|
86
86
|
scope = scope.for_role(user&.roles)
|
87
87
|
end
|
88
88
|
|
@@ -1,5 +1,9 @@
|
|
1
1
|
= effective_form_with(model: [:admin, event], engine: true) do |f|
|
2
|
-
|
3
|
-
|
2
|
+
- if defined?(EffectiveArticleEditor)
|
3
|
+
= f.article_editor :rich_text_excerpt, hint: 'Will be used for the events excerpt on index pages.'
|
4
|
+
= f.article_editor :rich_text_body, hint: 'The main body of your event'
|
5
|
+
- else
|
6
|
+
= f.rich_text_area :rich_text_excerpt, hint: 'Will be used for the events excerpt on index pages.'
|
7
|
+
= f.rich_text_area :rich_text_body, hint: 'The main body of your event'
|
4
8
|
|
5
9
|
= f.submit
|
@@ -2,8 +2,10 @@
|
|
2
2
|
|
3
3
|
= effective_form_with(model: [:admin, event], engine: true) do |f|
|
4
4
|
= card("All Steps") do
|
5
|
-
|
6
|
-
hint: "displayed on all steps"
|
5
|
+
- if defined?(EffectiveArticleEditor)
|
6
|
+
= f.article_editor "rich_text_all_steps_content", label: false, hint: "displayed on all steps"
|
7
|
+
- else
|
8
|
+
= f.rich_text_area "rich_text_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
|
-
|
17
|
-
hint: "displayed on the event registration #{step} wizard step only"
|
18
|
+
- if defined?(EffectiveArticleEditor)
|
19
|
+
= f.article_editor "rich_text_#{step}_content", label: false, hint: "displayed on the event registration #{step} wizard step only"
|
20
|
+
- else
|
21
|
+
= f.rich_text_area "rich_text_#{step}_content", label: false, hint: "displayed on the event registration #{step} wizard step only"
|
18
22
|
|
19
23
|
= f.submit
|
@@ -9,8 +9,10 @@ module EffectiveEvents
|
|
9
9
|
|
10
10
|
# Include concern and allow any ActiveRecord object to call it
|
11
11
|
initializer 'effective_events.active_record' do |app|
|
12
|
-
|
13
|
-
|
12
|
+
app.config.to_prepare do
|
13
|
+
ActiveSupport.on_load :active_record do
|
14
|
+
ActiveRecord::Base.extend(EffectiveEventsEventRegistration::Base)
|
15
|
+
end
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
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-
|
11
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|