Skip to content

Commit

Permalink
Fix-9127: Add the unique ticket code into the downlad CSV file
Browse files Browse the repository at this point in the history
  • Loading branch information
lthanhhieu committed Mar 27, 2024
1 parent 05212ea commit e7b0098
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
5 changes: 2 additions & 3 deletions app/controllers/events/view/tickets/attendees/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
},
options: {
tags: this.model.tags

}
},
{
name : 'Order',
width : 190,
valuePath : 'order',
extraValuePaths : ['user'],
valuePath : 'order.identifier',
extraValuePaths : ['order'],
cellComponent : 'ui-table/cell/events/view/tickets/attendees/cell-order'
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<div class="ui tiny header">
<LinkTo @route="orders.view" @model={{this.record.identifier}}>{{this.record.identifier}}</LinkTo>
<div class="ui basic mini {{order-color this.record.status}} label attendees-margin">
{{this.record.status}}
{{#if this.record}}
<div class="ui tiny header">
<LinkTo @route="orders.view" @model={{this.extraRecords.order.identifier}}>{{this.extraRecords.order.identifier}}</LinkTo>
<div class="ui basic mini {{order-color this.extraRecords.order.status}} label attendees-margin">
{{this.extraRecords.order.status}}
</div>
<div class="sub header">
{{#if this.extraRecords.order.paidVia}}
<span class="weight-800">
{{t 'Payment via'}} {{this.extraRecords.order.paidVia}}
</span>
{{/if}}
{{#if (eq this.extraRecords.order.status 'completed')}}
{{general-date this.extraRecords.order.completedAt 'date-time-short'}}
{{moment-from-now this.extraRecords.order.completedAt}}
{{else}}
{{general-date this.extraRecords.order.createdAt 'date-time-short'}}
{{moment-from-now this.extraRecords.order.createdAt}}
{{/if}}
</div>
</div>
<div class="sub header">
{{#if this.record.paidVia}}
<span class="weight-800">
{{t 'Payment via'}} {{this.record.paidVia}}
</span>
{{/if}}
{{#if (eq this.record.status 'completed')}}
{{general-date this.record.completedAt 'date-time-short'}}
{{moment-from-now this.record.completedAt}}
{{else}}
{{general-date this.record.createdAt 'date-time-short'}}
{{moment-from-now this.record.createdAt}}
{{/if}}
</div>
</div>
{{/if}}

0 comments on commit e7b0098

Please sign in to comment.