|
|
|
@@ -1,45 +1,40 @@ |
|
|
|
<!-- <div class="heading-holder"> |
|
|
|
<div class="heading-holder"> |
|
|
|
<div class="name"> MY ORDERS </div> |
|
|
|
<ion-button fill="clear"> SORT / FILTER </ion-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<ul class="orders"> |
|
|
|
<li *ngFor="let order of orders" class="order" (click)="selected_order = order"> |
|
|
|
<div class="heading"> Order ID: {{ order.id }} </div> |
|
|
|
<div class="time-details"> Ordered on {{ getFormattedDate(order.creation_time, 'DD MMMM YYYY @ hh:mm A') }} </div> |
|
|
|
<li *ngFor="let userOrder of userOrders" class="order" (click)="selected_order = order"> |
|
|
|
<div *ngFor="let order of userOrder.orderedlist"> |
|
|
|
<div class="heading"> Order ID: {{ order.orderedlist_id }} </div> |
|
|
|
<div class="time-details"> |
|
|
|
Pickup on {{ getFormattedDate(order.pickup_time, 'DD MMMM YYYY @ hh:mm A') }} |
|
|
|
</div> |
|
|
|
|
|
|
|
<ul class="ordered-items"> |
|
|
|
<li *ngFor="let item of order.order_items"> |
|
|
|
<div class="order-item-details"> |
|
|
|
<label class="name"> {{ item.menu_details.name }} x {{ item.quantity }} </label> |
|
|
|
<label class="time"> |
|
|
|
Pickup on {{ getFormattedDate(item.pickup_time, 'hh:mm A') }} |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<ul class="ordered-items"> |
|
|
|
<li *ngIf="order.promocode"> |
|
|
|
<div class="order-item-details"> |
|
|
|
<label class="name"> <strong> PROMOCODE </strong> </label> |
|
|
|
<label class="time"> <strong> {{ order.promocode }} </strong> </label> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<div class="order-item-details"> |
|
|
|
<label class="name"> <strong> TOTAL </strong> </label> |
|
|
|
<label class="time"> <strong> ₹ {{ order.calculated_total }} </strong> </label> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<ul class="ordered-items"> |
|
|
|
<li *ngFor="let item of order.menuitems"> |
|
|
|
<div class="order-item-details"> |
|
|
|
<label class="name"> {{ item.menu_item_name }} </label> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<ul class="ordered-items"> |
|
|
|
<li> |
|
|
|
<div class="order-item-details"> |
|
|
|
<label class="name"> <strong> TOTAL </strong> </label> |
|
|
|
<label class="time"> <strong> ₹ </strong> </label> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
|
|
|
|
<p class="note"> |
|
|
|
We will notify you each time a order is ready for pickup |
|
|
|
</p> |
|
|
|
<p class="note"> |
|
|
|
We will notify you each time a order is ready for pickup |
|
|
|
</p> |
|
|
|
|
|
|
|
<div class="action-buttons-holder"> |
|
|
|
<ion-button shape="round"> Reorder </ion-button> |
|
|
|
<ion-button shape="round" fill="outline" (click)="show_rate_modal = true"> Rate & Review </ion-button> |
|
|
|
<div class="action-buttons-holder"> |
|
|
|
<ion-button shape="round"> Reorder </ion-button> |
|
|
|
<ion-button shape="round" fill="outline" (click)="show_rate_modal = true"> Rate & Review </ion-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
@@ -49,7 +44,7 @@ |
|
|
|
<div class="rating"> |
|
|
|
<div class="semi-heading"> Rating </div> |
|
|
|
<p> Rating the food will help us give you personalised recommendation </p> |
|
|
|
<div class="star-holder" (click)="setRating()"> |
|
|
|
<div class="star-holder"> |
|
|
|
<ion-icon name="star" (click)="selected_rating = 1"></ion-icon> |
|
|
|
<ion-icon name="star" (click)="selected_rating = 2"></ion-icon> |
|
|
|
<ion-icon name="star" (click)="selected_rating = 3"></ion-icon> |
|
|
|
@@ -62,4 +57,4 @@ |
|
|
|
<textarea placeholder="Please tell something about the food..."></textarea> |
|
|
|
</div> |
|
|
|
<ion-button size="block" shape="round"> Submit Feedback </ion-button> |
|
|
|
</section> --> |
|
|
|
</section> |