Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions app/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,23 @@ export default ModelBase.extend(CustomPrimaryKeyMixin, {
isSessionsSpeakersEnabled : attr('boolean', { defaultValue: false }),
isFeatured : attr('boolean', { defaultValue: false }),

isTaxEnabled : attr('boolean', { defaultValue: false }),
canPayByPaypal : attr('boolean', { defaultValue: false }),
canPayByStripe : attr('boolean', { defaultValue: false }),
isStripeLinked : attr('boolean'),
canPayByCheque : attr('boolean', { defaultValue: false }),
canPayByBank : attr('boolean', { defaultValue: false }),
canPayByOmise : attr('boolean', { defaultValue: false }),
canPayByAliPay : attr('boolean', { defaultValue: false }),
canPayOnsite : attr('boolean', { defaultValue: false }),
paymentCountry : attr('string'),
paymentCurrency : attr('string', { defaultValue: 'USD' }),
paypalEmail : attr('string'),
chequeDetails : attr('string'),
bankDetails : attr('string'),
onsiteDetails : attr('string'),
orderExpiryTime : attr('number', { defaultValue: 10 }),
isTaxEnabled : attr('boolean', { defaultValue: false }),
canPayByPaypal : attr('boolean', { defaultValue: false }),
canPayByStripe : attr('boolean', { defaultValue: false }),
isStripeLinked : attr('boolean'),
canPayByCheque : attr('boolean', { defaultValue: false }),
canPayByBank : attr('boolean', { defaultValue: false }),
canPayByOmise : attr('boolean', { defaultValue: false }),
canPayByAliPay : attr('boolean', { defaultValue: false }),
canPayOnsite : attr('boolean', { defaultValue: false }),
showRemainingTickets : attr('boolean', { defaultValue: false }),
paymentCountry : attr('string'),
paymentCurrency : attr('string', { defaultValue: 'USD' }),
paypalEmail : attr('string'),
chequeDetails : attr('string'),
bankDetails : attr('string'),
onsiteDetails : attr('string'),
orderExpiryTime : attr('number', { defaultValue: 10 }),

schedulePublishedOn: attr('moment', { defaultValue: () => moment(0) }),

Expand Down Expand Up @@ -157,6 +158,7 @@ export default ModelBase.extend(CustomPrimaryKeyMixin, {
if (!this.locationName) {
return '';
}

let splitLocations = this.locationName.split(',');
if (splitLocations.length <= 3) {
return this.locationName;
Expand Down
9 changes: 9 additions & 0 deletions app/templates/components/forms/wizard/basic-details-step.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@
{{/if}} --}}
</div>
{{/if}}
<div class="ui segmented divider"></div>
<div class="field">
<div class="ui slider checkbox">
{{input type='checkbox' checked=data.event.showRemainingTickets id='show_remaining_tickets'}}
<label for="show_remaining_tickets">
{{t 'Show Remaining Tickets Info on Public Events Page'}}
</label>
</div>
</div>
{{#if hasPaidTickets}}
{{!-- Hiding discount code temporarily, till we get this feature ready to apply discount codes for events.
<div class="ui section divider"></div>
Expand Down
5 changes: 5 additions & 0 deletions app/templates/components/public/ticket-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<div class="ui small">
{{ticket.name}}
</div>
{{#if showRemainingTickets}}
<small class="ui gray-text tiny">
{{sub ticket.quantity (add ticket.orderStatistics.tickets.completed ticket.orderStatistics.tickets.placed)}} {{t ' Tickets Remaining'}}
</small>
{{/if}}
{{#if ticket.isDescriptionVisible}}
<small class="ui gray-text tiny">{{ticket.description}}</small>
{{/if}}
Expand Down
1 change: 1 addition & 0 deletions app/templates/public/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
isTicketingEnabled=model.event.isTicketingEnabled
data=model.tickets
order=model.order
showRemainingTickets=model.event.showRemainingTickets
attendees=model.attendees
code=code
currentEventIdentifier=model.event.identifier
Expand Down