Skip to content

Commit

Permalink
Merge pull request #877 from hotwax/rejectionPageStyling
Browse files Browse the repository at this point in the history
fix markup of rejections page
  • Loading branch information
ravilodhi authored Dec 20, 2024
2 parents 85e7c48 + a5538f7 commit dc9a921
Showing 1 changed file with 20 additions and 38 deletions.
58 changes: 20 additions & 38 deletions src/views/Rejections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@
</ion-label>
</div>
</div>
<div v-for="item in order.items" :key="item.orderItemSeqId" class="order-line-item">
<div class="rejected-order-item">
<div v-for="item in order.items" :key="item.orderItemSeqId" class="list-item order-item">
<div class="product-info">
<ion-item lines="none">
<ion-thumbnail slot="start">
Expand All @@ -123,37 +122,22 @@
</ion-label>
</ion-item>
</div>
<div>
<ion-item lines="none">
<ion-label>
{{ formatUtcDate(item.rejectedAt, 'dd MMMM yyyy t a ZZZZ')}}
<p>{{ translate('rejected time') }}</p>
</ion-label>
</ion-item>
</div>
<div>
<ion-item lines="none">
<ion-label lines="none">
{{ item.availableToPromise}}
<p>{{ translate('ATP') }}</p>
</ion-label>
</ion-item>
</div>
<div>
<ion-item lines="none">
<ion-label>
{{ item.rejectionReasonDesc }}
<p>{{ translate('rejection reason') }}</p>
</ion-label>
</ion-item>
</div>
<div>
<ion-chip outline>
<ion-icon :icon="personCircleOutline" />
<ion-label>{{ item.rejectedBy }}</ion-label>
</ion-chip>
</div>
</div>
<ion-label>
{{ formatUtcDate(item.rejectedAt, 'dd MMMM yyyy t a ZZZZ')}}
<p>{{ translate('rejected time') }}</p>
</ion-label>
<ion-label lines="none">
{{ item.availableToPromise}}
<p>{{ translate('ATP') }}</p>
</ion-label>
<ion-label>
{{ item.rejectionReasonDesc }}
<p>{{ translate('rejection reason') }}</p>
</ion-label>
<ion-chip outline>
<ion-icon :icon="personCircleOutline" />
<ion-label>{{ item.rejectedBy }}</ion-label>
</ion-chip>
</div>
</ion-card>
<ion-infinite-scroll @ionInfinite="loadMoreRejectedOrders($event)" threshold="100px" v-show="isRejectedOrdersScrollable()" ref="infiniteScrollRef">
Expand Down Expand Up @@ -370,12 +354,10 @@ export default defineComponent({
margin-bottom: var(--spacer-lg);
align-items: center;
}
.rejected-order-item {
display: grid;
grid-template-columns: repeat(5, 1fr);
align-items: center;
padding: var(--spacer-xs) 0;
.list-item.order-item {
--columns-desktop: 5;
}
.searchbar{
padding-top: 0;
}
Expand Down

0 comments on commit dc9a921

Please sign in to comment.