effective_events 0.19.0 → 0.19.2

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: 6686682576e78118943bd94a91c7d199249ecf048aa5816a8f64cd4bc909bb3b
4
- data.tar.gz: 8b05cb3220da6ebb866380e4eeb4fad4dcbe0ca7b489c33c80d0bfb21e10847c
3
+ metadata.gz: 8e67fe64e6e9affe8d6961f6bd8d6feea7f2795ee0f11087af84f896fe53457e
4
+ data.tar.gz: e43145e482ec697303b2aa0b6e0224f588339134b24259e8ee8c49f1c664e8a4
5
5
  SHA512:
6
- metadata.gz: 54aaff80f4cccc27e000660b96943a16b7e5cb7fbd88070427e1f462a3bf0554ebafb801023e3e8875f6ea29fce82c9432625f30e5efc0f1cd513bc31059d905
7
- data.tar.gz: 15d25d2f33735b41143678ecbb9321614ef6cfdbb5914cb8d3bac28e4c7714ed2da1bc60d3e1c287306312249c8efae445db925c9a7e315017cec94e29bc38da
6
+ metadata.gz: b6cd3b5b07d8215f1e29ce434bfa19210d6ab8aa0ebfe8df4cf8a749b7732f76d97d1fb8863aa62a97853888c5915e7c76780624f4a2589edcc2efbe55858ea3
7
+ data.tar.gz: 84e7ba3b6ebc7dda5da0d751142acce2cc7dc95e93cf994a01dd427608d43516be81d5debac947b7fc975f8369ec6970e0982adbfa6d6661f2a6ce5bc3cd72af
@@ -164,7 +164,7 @@ module EffectiveEventsEventRegistration
164
164
 
165
165
  def required_steps
166
166
  return self.class.test_required_steps if Rails.env.test? && self.class.test_required_steps.present?
167
- event&.event_products.present? ? wizard_step_keys : (wizard_step_keys - [:addons])
167
+ event&.event_products.unarchived.present? ? wizard_step_keys : (wizard_step_keys - [:addons])
168
168
  end
169
169
 
170
170
  def find_or_build_submit_fees
@@ -6,15 +6,16 @@
6
6
  - any_member_only_tickets = tickets.any? { |ticket| ticket.member_only? }
7
7
 
8
8
  = card do
9
- %p This event has the following tickets available for purchase:
9
+ - if resource.event.early_bird?
10
+ .alert.alert-warning.mb-3
11
+ Early Bird rates end on
12
+ = resource.event.early_bird_end_at.strftime("%A, %B %d, %Y at %l:%M%P.")
10
13
 
11
14
  %table.table.table-sm.table-striped
12
15
  %thead
13
16
  %tr
14
17
  %th Ticket
15
- - if member_column
16
- %th Member Price
17
- %th #{'Regular ' if member_column}Price
18
+ %th Price
18
19
 
19
20
  %tbody
20
21
  - tickets.each do |ticket|
@@ -28,17 +29,34 @@
28
29
  - if ticket.waitlist?
29
30
  before waitlist
30
31
 
31
- - if member_column
32
- %td
33
- - if ticket.member_price.present?
34
- = price_to_currency(ticket.member_price)
35
- - else
36
- = '-'
37
32
  %td
38
- - if ticket.regular_price.present?
39
- = price_to_currency(ticket.regular_price)
40
- - else
41
- = '-'
33
+ %ul.list-unstyled.mb-0
34
+ - if resource.event.early_bird? && ticket.early_bird_price.present? && ticket.early_bird_price != 0 && ticket.early_bird_price != ticket.member_price && ticket.early_bird_price != ticket.regular_price
35
+ %li
36
+ - if ticket.regular_price.present? && ticket.regular_price != 0
37
+ %div
38
+ %s.text-muted
39
+ = price_to_currency(ticket.regular_price)
40
+
41
+ - if ticket.member_price.present? && ticket.member_price != 0
42
+ %div
43
+ %s.text-muted
44
+ = price_to_currency(ticket.member_price)
45
+ .badge.badge-secondary.mr-2 Members
46
+
47
+ %div
48
+ = price_to_currency(ticket.early_bird_price)
49
+ .badge.badge-warning Early Bird
50
+
51
+ - else
52
+ - if ticket.regular_price.present?
53
+ %li
54
+ = price_to_currency(ticket.regular_price)
55
+
56
+ - if ticket.member_price.present?
57
+ %li
58
+ = price_to_currency(ticket.member_price)
59
+ .badge.badge-secondary Members
42
60
 
43
61
  - if waitlist
44
62
  %p If the ticket capacity has been reached you will be added to the waitlist.
@@ -1,9 +1,9 @@
1
1
  = render 'layout' do
2
2
 
3
- = render 'effective/event_registrations/event_tickets', resource: resource
4
-
5
3
  = render 'effective/event_registrations/content', resource: resource
6
4
 
5
+ = render 'effective/event_registrations/event_tickets', resource: resource
6
+
7
7
  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
8
8
  = f.hidden_field :id
9
9
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '0.19.0'.freeze
2
+ VERSION = '0.19.2'.freeze
3
3
  end
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.19.0
4
+ version: 0.19.2
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: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails