effective_events 0.1.8 → 0.1.9

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: 44c51f928a7db75214d362f3809a5249cdebb8a22e9239f5cc74e0ea19db958b
4
- data.tar.gz: '099acc31c59746278f78b679b6605430f128f40fa22bfe441c92c84cff974e15'
3
+ metadata.gz: 57f83ae2c7ff0c516e104fe18d4f517838bc07eec2a3d10b939946d0c9ed97d6
4
+ data.tar.gz: 0f5b5cca100cbfc4820940cca910c8cb07e14107227a753135ee5464eecd9611
5
5
  SHA512:
6
- metadata.gz: 623603bcfb7c8ad11228d10a6526c1799c92482fb57e0b258ff43d75c39f40d014a3449946edd11d745026987d62f5da7739667bfc5b2f427acb348341edac17
7
- data.tar.gz: 8eac487ea782b237e1efb89163c799a0f95224f5682d82e08ad4d16930b0e0f953ba7ab6f7f9b8f5e44ad9b82443adbdb29786145bd1ce16f0a1062b762bf1d0
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
- registrants: 'Registrants',
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 == :registrants }) do
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 < Time.zone.now
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 >= Time.zone.now
157
+ early_bird_end_at <= Time.zone.now
158
158
  end
159
159
 
160
160
  def early_bird_status
@@ -2,9 +2,9 @@
2
2
  - step_content = resource.event&.send("rich_text_#{step}_content")
3
3
 
4
4
  - if all_steps_content.present?
5
- .card
5
+ .card.mb-4
6
6
  .card-body= all_steps_content
7
7
 
8
8
  - if step_content.present?
9
- .card
9
+ .card.mb-4
10
10
  .card-body= step_content
@@ -1,9 +1,9 @@
1
1
  = card do
2
2
  .row
3
3
  .col-sm
4
- %h5.card-title= event_registration.wizard_step_title(:registrants)
4
+ %h5.card-title= event_registration.wizard_step_title(:tickets)
5
5
  .col-sm-auto.text-right
6
- = link_to('Edit', wizard_path(:registrants)) if edit_effective_event_registrations_wizard?
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
- = render 'effective/event_registrations/content', resource: resource
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
- %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.
9
+ = render 'effective/event_registrations/content', resource: resource
8
10
 
9
11
  .card
10
12
  .card-body
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '0.1.8'.freeze
2
+ VERSION = '0.1.9'.freeze
3
3
  end
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.8
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