effective_events 0.17.0 → 0.18.0

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: 6adf869c67bd082b19c66a82b5e3ac530a80b97c19e0047f13bdca69f7f1a98e
4
- data.tar.gz: a1d8cd3df41996b18c2afcf4f2370a69e9d2b353e3bf3ca356808f3802ade723
3
+ metadata.gz: 192d39046e600f74608d6f9b5bf1cc90f14be13eabb74ceed9365579919e2a95
4
+ data.tar.gz: af3326868396402818278f3144a3ea061c417c1b65e7cc178be801726bb16d59
5
5
  SHA512:
6
- metadata.gz: b5cb43f659f86669874ea2edca7aa0159aad83c25a85065d2c69ee10d4aaf8392ea8aa1ebc3a171ab95b40f93e8ec3dd2e59aeb9161c8957a94aab60d5247e26
7
- data.tar.gz: aba17ab942159ea4b5b0cf9c62511f876dbd54b56a864ce584115c07ce2bcd01c02310ceebadafb3548a983b9eeebddd1ccd55dfccde669c231152a35c67c9a8
6
+ metadata.gz: 3160971a296127da50d08aae0a1b35939d18f83aa65b479043b8f832b79812975c5b46759f9caab63f3b19b72d3ae0b3b372293011b45ee59dc4c0bd60753339
7
+ data.tar.gz: b899987a70b37e98033d2c1ad634bfe65b00610b0326cdf353edeadc1c4fe6ecb8a2db7bbb26e53f383c1f339acb163a4e850fbac9941362c6d8abd2ee28dfeb
@@ -6,7 +6,8 @@ class EffectiveEventRegistrantsDatatable < Effective::Datatable
6
6
 
7
7
  col :name do |er|
8
8
  if er.first_name.present?
9
- "#{er.first_name} #{er.last_name}<br><small>#{mail_to(er.email)}</small>"
9
+ email = (er.user.present? ? masked_email(er.user) : er.email)
10
+ "#{er.first_name} #{er.last_name}<br><small>#{email}</small>"
10
11
  elsif er.owner.present?
11
12
  er.owner.to_s + ' - GUEST'
12
13
  else
@@ -24,6 +24,7 @@ module Effective
24
24
  title :string
25
25
 
26
26
  capacity :integer
27
+ display_capacity :boolean
27
28
  waitlist :boolean
28
29
 
29
30
  category :string
@@ -24,12 +24,13 @@
24
24
  Anyone will be able to purchase this ticket. They can select a member from the dropdown list of all members to receive the member pricing or they can enter a first name and last name to receive the regular pricing.
25
25
 
26
26
  .col
27
- = f.number_field :capacity, hint: "The number of registrations will be limited to capacity.<br>Leave blank for unlimited capacity."
27
+ = f.number_field :capacity, hint: "The number of registrations will be limited to capacity. Leave blank for unlimited capacity."
28
+ = f.check_box :display_capacity, label: "Yes, display the remaining ticket capacity to users during registration", hint: "Leave blank to hide the capacity."
28
29
 
29
30
  - if f.object.event&.delayed?
30
31
  = f.check_box :waitlist,
31
32
  label: "Yes, add to waitlist once capacity is reached",
32
- hint: "requires a delayed payment event. Once capacity is reached, new registrations will be added to the waitlist. Payment information is collected but not charged for waitlisted registrants."
33
+ hint: "requires a delayed payment event. Once capacity is reached, new registrations will be added to the waitlist. Payment information is collected but not charged for waitlisted registrants. To waitlist everyone and promote later, set the capacity to zero."
33
34
  .row
34
35
  .col-md-6
35
36
  - if f.object.event&.early_bird_end_at.present?
@@ -5,7 +5,7 @@
5
5
  = f.hide_if(:save_as_draft, true) do
6
6
  .row
7
7
  .col-md-6
8
- = f.datetime_field :published_start_at, hint: 'The event will be available starting on this date and time. Leave blank to use the current date and time.'
8
+ = f.datetime_field :published_start_at, hint: 'The event will be available starting on this date and time. Leave blank to publish immediately.'
9
9
  .col-md-6
10
10
  = f.datetime_field :published_end_at, hint: 'The event will no longer be available after this date and time. Leave blank for no end date.', date_linked: false
11
11
 
@@ -20,7 +20,7 @@
20
20
  %tr
21
21
  %td
22
22
  = ticket.to_s
23
- - if ticket.capacity.present?
23
+ - if ticket.capacity.present? && ticket.display_capacity?
24
24
  %br
25
25
  %small
26
26
  #{ticket.capacity_available} remaining
@@ -16,4 +16,5 @@
16
16
  .alert.alert-info If the price of your registration changes, your order will be automatically updated.
17
17
 
18
18
  %hr
19
- = f.save 'Save and Continue'
19
+ .mb-4
20
+ = f.save 'Save and Continue'
@@ -6,7 +6,7 @@ en:
6
6
  activerecord:
7
7
  models:
8
8
  effective/event: 'Event'
9
- effective/event_registrant: 'Event Registrant'
9
+ effective/event_registrant: 'Event registrant'
10
10
 
11
11
  attributes:
12
12
  effective/event_registrant:
@@ -42,6 +42,8 @@ class CreateEffectiveEvents < ActiveRecord::Migration[6.0]
42
42
 
43
43
  t.string :title
44
44
  t.integer :capacity
45
+ t.boolean :display_capacity, default: false
46
+
45
47
  t.boolean :waitlist, default: false
46
48
  t.string :category
47
49
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '0.17.0'.freeze
2
+ VERSION = '0.18.0'.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.17.0
4
+ version: 0.18.0
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-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails