Skip to content

Commit

Permalink
feat: Defining cancelled orders in order view template (#3722)
Browse files Browse the repository at this point in the history
  • Loading branch information
kushthedude authored and iamareebjamal committed Dec 25, 2019
1 parent a031bb2 commit 8f941ec
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions app/templates/components/orders/order-summary.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="ui segments">
{{#if (eq session.currentRouteName 'orders.view')}}
{{#if (and (eq session.currentRouteName 'orders.view') (not-eq data.status 'cancelled'))}}
<div class="ui {{order-color data.status}} inverted segment center aligned">
<div class="ui inverted mini statistic horizontal">
<div class="value">
Expand Down Expand Up @@ -38,7 +38,7 @@
<div class="ui secondary segment">
<h3 class="weight-400">{{t 'Order Summary'}}</h3>
</div>
{{#if (or (eq session.currentRouteName 'orders.new') (eq session.currentRouteName 'orders.view') (eq session.currentRouteName 'orders.pending'))}}
{{#if (and (or (eq session.currentRouteName 'orders.new') (eq session.currentRouteName 'orders.view') (eq session.currentRouteName 'orders.pending')) (not-eq data.status 'cancelled'))}}
<table class="ui very basic tablet stackable table order-summary center aligned">
<thead>
<tr>
Expand Down Expand Up @@ -158,3 +158,17 @@
</div>
</div>
{{/if}}
{{#if (and (eq session.currentRouteName 'orders.view') (eq data.status 'cancelled'))}}
<div class="ui {{order-color data.status}} inverted segment">
<div class="ui inverted mini statistic horizontal">
<div class="value">
{{t 'Cancelled'}}
</div>
<div class="label">
{{t 'Your order has been cancelled due to some unavoidable circumstances.'}}
<br>
{{t 'Please contact the event organizer for further details.'}}
</div>
</div>
</div>
{{/if}}

0 comments on commit 8f941ec

Please sign in to comment.