effective_events 0.2.1 → 0.2.2

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: 045e735e84e46c1926e1c1a1198a5e4639fe558c358a3a3af71dc7aee3c7be46
4
- data.tar.gz: 910822a14b101f247b38a484fa73d51438e202abf74f376579f13b05ae7c3045
3
+ metadata.gz: 7ea64c06c41ade5e1e33fbf376c292bc873a9e14960637b916694145edc1f93b
4
+ data.tar.gz: 3e8b73e38f316bc14c34552900cf9b61edb44740858c5128c37dd1a17120f95e
5
5
  SHA512:
6
- metadata.gz: cea01d16ec0eac9e8352dae0fb5688b9a58ad5ca7ae8985a9ada5d9615be553e1e0f0a1e56d51d18e0e8bda63a728a66c77571e0db2ca04912ea4d1c9e57798f
7
- data.tar.gz: 7293abfe2379e15a2899144910205f4c49debd72eed838bbe2144009e1f66af4a6215b87e48d1eac5aa84697071582ad7932654e057e1de3478bcbf533546d1b
6
+ metadata.gz: 9193fcdadc110aaf86ef94d5286e93fca1f3390b8920756a0c07ed303d462c0a2f763a91455b8a116744c164cae294b18e9b493b53ca486b2aef7c9121ac1b0c
7
+ data.tar.gz: a491da471bac6ecf669b05c024baa2036c351bb3277adb38f6b05c88cd2200b1bc9ff745be575e0caad67615e88fd6f060f628056a94a05327ef8dbd88385336
@@ -30,8 +30,4 @@ module EffectiveEventsHelper
30
30
  end
31
31
  end
32
32
 
33
- def edit_effective_event_registrations_wizard?
34
- params[:controller] == 'effective/event_registrations' && defined?(resource) && resource.draft?
35
- end
36
-
37
33
  end
@@ -15,14 +15,6 @@ module EffectiveEventsEventRegistration
15
15
 
16
16
  module ClassMethods
17
17
  def effective_events_event_registration?; true; end
18
-
19
- def all_wizard_steps
20
- const_get(:WIZARD_STEPS).keys
21
- end
22
-
23
- def required_wizard_steps
24
- [:start, :summary, :billing, :checkout, :submitted]
25
- end
26
18
  end
27
19
 
28
20
  included do
@@ -3,7 +3,7 @@
3
3
  .col-sm
4
4
  %h5.card-title= event_registration.wizard_step_title(:addons)
5
5
  .col-sm-auto.text-right
6
- = link_to('Edit', wizard_path(:addons)) if edit_effective_event_registrations_wizard?
6
+ = link_to('Edit', wizard_path(:addons)) if edit_effective_wizard?
7
7
 
8
8
  - datatable = EffectiveEventAddonsDatatable.new(event_registration: event_registration)
9
9
  .mb-4= render_simple_datatable(datatable)
@@ -1,8 +1,3 @@
1
1
  .effective-event-registration
2
- - blacklist = EffectiveEvents.EventRegistration.required_wizard_steps
3
- - steps = event_registration.required_steps - blacklist
4
-
5
- = render "effective/event_registrations/summary", event_registration: event_registration
6
-
7
- - steps.select { |step| event_registration.has_completed_step?(step) }.each do |partial|
2
+ - event_registration.render_steps.each do |partial|
8
3
  = render "effective/event_registrations/#{partial}", event_registration: event_registration, step: partial
@@ -3,7 +3,7 @@
3
3
  .col-sm
4
4
  %h5.card-title= event_registration.wizard_step_title(:tickets)
5
5
  .col-sm-auto.text-right
6
- = link_to('Edit', wizard_path(:tickets)) if edit_effective_event_registrations_wizard?
6
+ = link_to('Edit', wizard_path(:tickets)) if edit_effective_wizard?
7
7
 
8
8
  - datatable = EffectiveEventRegistrantsDatatable.new(event_registration: event_registration)
9
9
  .mb-4= render_simple_datatable(datatable)
@@ -9,6 +9,7 @@
9
9
 
10
10
  = link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary mb-4'
11
11
 
12
+ = render 'effective/event_registrations/summary', event_registration: resource
12
13
  = render 'effective/event_registrations/event_registration', event_registration: resource
13
14
  = render 'effective/event_registrations/orders', event_registration: resource
14
15
 
@@ -1,5 +1,5 @@
1
1
  = card do
2
- - if @datatable
2
+ - if @datatable.present?(self)
3
3
  = render_datatable(@datatable, simple: true)
4
4
  - else
5
5
  %p There are no events open for registration. When there are, we'll show them here.
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.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.2.1
4
+ version: 0.2.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: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -243,14 +243,14 @@ files:
243
243
  - app/views/effective/event_registrations/_layout.html.haml
244
244
  - app/views/effective/event_registrations/_orders.html.haml
245
245
  - app/views/effective/event_registrations/_summary.html.haml
246
- - app/views/effective/event_registrations/_tickets.haml
246
+ - app/views/effective/event_registrations/_tickets.html.haml
247
247
  - app/views/effective/event_registrations/addons.html.haml
248
248
  - app/views/effective/event_registrations/billing.html.haml
249
249
  - app/views/effective/event_registrations/checkout.html.haml
250
250
  - app/views/effective/event_registrations/start.html.haml
251
251
  - app/views/effective/event_registrations/submitted.html.haml
252
252
  - app/views/effective/event_registrations/summary.html.haml
253
- - app/views/effective/event_registrations/tickets.haml
253
+ - app/views/effective/event_registrations/tickets.html.haml
254
254
  - app/views/effective/events/_dashboard.html.haml
255
255
  - app/views/effective/events/_event.html.haml
256
256
  - app/views/effective/events/index.html.haml