effective_events 0.1.8 → 0.1.9
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/concerns/effective_events_event_registration.rb +2 -2
- data/app/models/effective/event.rb +2 -2
- data/app/views/effective/event_registrations/_content.html.haml +2 -2
- data/app/views/effective/event_registrations/{_registrants.html.haml → _tickets.haml} +2 -2
- data/app/views/effective/event_registrations/addons.html.haml +7 -5
- data/app/views/effective/event_registrations/{registrants.html.haml → tickets.haml} +0 -0
- data/lib/effective_events/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57f83ae2c7ff0c516e104fe18d4f517838bc07eec2a3d10b939946d0c9ed97d6
|
4
|
+
data.tar.gz: 0f5b5cca100cbfc4820940cca910c8cb07e14107227a753135ee5464eecd9611
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33e99c1640263a789ff5c26653eb237110163f45d79726bd39a49412ac3e3fa43cda22ca888d02e07ce306e49393c438721c8bc704937a724146d26370870d8f
|
7
|
+
data.tar.gz: 3b9dedff99f782f3e88fffe9080665607c47ee8933ca0c66a58c9ef45448e5a18db05c21abf3052148dc073bba61b82907845c03982fab48942c94b34d75761f
|
@@ -36,7 +36,7 @@ module EffectiveEventsEventRegistration
|
|
36
36
|
|
37
37
|
acts_as_wizard(
|
38
38
|
start: 'Start',
|
39
|
-
|
39
|
+
tickets: 'Tickets',
|
40
40
|
addons: 'Add-ons',
|
41
41
|
summary: 'Review',
|
42
42
|
billing: 'Billing Address',
|
@@ -91,7 +91,7 @@ module EffectiveEventsEventRegistration
|
|
91
91
|
validates :event, presence: true
|
92
92
|
|
93
93
|
# Registrants Step
|
94
|
-
validate(if: -> { current_step == :
|
94
|
+
validate(if: -> { current_step == :tickets }) do
|
95
95
|
self.errors.add(:event_registrants, "can't be blank") unless present_event_registrants.present?
|
96
96
|
end
|
97
97
|
|
@@ -149,12 +149,12 @@ module Effective
|
|
149
149
|
|
150
150
|
def early_bird?
|
151
151
|
return false if early_bird_end_at.blank?
|
152
|
-
early_bird_end_at
|
152
|
+
early_bird_end_at > Time.zone.now
|
153
153
|
end
|
154
154
|
|
155
155
|
def early_bird_past?
|
156
156
|
return false if early_bird_end_at.blank?
|
157
|
-
early_bird_end_at
|
157
|
+
early_bird_end_at <= Time.zone.now
|
158
158
|
end
|
159
159
|
|
160
160
|
def early_bird_status
|
@@ -1,9 +1,9 @@
|
|
1
1
|
= card do
|
2
2
|
.row
|
3
3
|
.col-sm
|
4
|
-
%h5.card-title= event_registration.wizard_step_title(:
|
4
|
+
%h5.card-title= event_registration.wizard_step_title(:tickets)
|
5
5
|
.col-sm-auto.text-right
|
6
|
-
= link_to('Edit', wizard_path(:
|
6
|
+
= link_to('Edit', wizard_path(:tickets)) if edit_effective_event_registrations_wizard?
|
7
7
|
|
8
8
|
- datatable = EffectiveEventRegistrantsDatatable.new(event_registration: event_registration)
|
9
9
|
.mb-4= render_simple_datatable(datatable)
|
@@ -1,10 +1,12 @@
|
|
1
1
|
= render 'layout' do
|
2
|
-
|
2
|
+
.card.mb-4
|
3
|
+
.card-body
|
4
|
+
%p
|
5
|
+
Add-ons are free or paid additional items that can be included in your registration.
|
6
|
+
%br
|
7
|
+
If you are registering for multiple people, you need to include an add-on for each person.
|
3
8
|
|
4
|
-
|
5
|
-
Add-ons are free or paid additional items that can be included in your registration.
|
6
|
-
%br
|
7
|
-
If you are registering for multiple people, you need to include an add-on for each person.
|
9
|
+
= render 'effective/event_registrations/content', resource: resource
|
8
10
|
|
9
11
|
.card
|
10
12
|
.card-body
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
@@ -222,15 +222,15 @@ files:
|
|
222
222
|
- app/views/effective/event_registrations/_event_registration.html.haml
|
223
223
|
- app/views/effective/event_registrations/_layout.html.haml
|
224
224
|
- app/views/effective/event_registrations/_orders.html.haml
|
225
|
-
- app/views/effective/event_registrations/_registrants.html.haml
|
226
225
|
- app/views/effective/event_registrations/_summary.html.haml
|
226
|
+
- app/views/effective/event_registrations/_tickets.haml
|
227
227
|
- app/views/effective/event_registrations/addons.html.haml
|
228
228
|
- app/views/effective/event_registrations/billing.html.haml
|
229
229
|
- app/views/effective/event_registrations/checkout.html.haml
|
230
|
-
- app/views/effective/event_registrations/registrants.html.haml
|
231
230
|
- app/views/effective/event_registrations/start.html.haml
|
232
231
|
- app/views/effective/event_registrations/submitted.html.haml
|
233
232
|
- app/views/effective/event_registrations/summary.html.haml
|
233
|
+
- app/views/effective/event_registrations/tickets.haml
|
234
234
|
- app/views/effective/events/_dashboard.html.haml
|
235
235
|
- app/views/effective/events/_event.html.haml
|
236
236
|
- app/views/effective/events/_layout.html.haml
|