This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
372 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
Magento_CustomerBalance/templates/account/history.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
// phpcs:disable Magento2.Templates.ThisInTemplate | ||
?> | ||
<?php if ($block->canShow() && $block->getEvents() && count($block->getEvents())) : ?> | ||
<div | ||
class=" | ||
dashboard-table | ||
block | ||
block-balance-history | ||
" | ||
> | ||
<div class="dashboard-table__header block-title"> | ||
<h2 class="dashboard-table__title"> | ||
<?= $block->escapeHtml(__('Balance History')) ?> | ||
</h2> | ||
</div> | ||
<div class="block-content"> | ||
<div class="table-wrapper balance-history"> | ||
<table | ||
id="customerbalance-history" | ||
class=" | ||
data | ||
table | ||
table-balance-history | ||
" | ||
tabindex="0" | ||
role="table" | ||
> | ||
<caption class="table__caption"> | ||
<?= $block->escapeHtml(__('Balance History')) ?> | ||
</caption> | ||
<thead> | ||
<tr role="row"> | ||
<th | ||
scope="col" | ||
class="col actions" | ||
role="columnheader" | ||
> | ||
<?= $block->escapeHtml(__('Action')) ?> | ||
</th> | ||
<th | ||
scope="col" | ||
class="col change" | ||
role="columnheader" | ||
> | ||
<?= $block->escapeHtml(__('Balance Change')) ?> | ||
</th> | ||
<th | ||
scope="col" | ||
class="col balance" | ||
role="columnheader" | ||
> | ||
<?= $block->escapeHtml(__('Balance')) ?> | ||
</th> | ||
<th | ||
scope="col" | ||
class="col date" | ||
role="columnheader" | ||
> | ||
<?= $block->escapeHtml(__('Date')) ?> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach ($block->getEvents() as $event) : ?> | ||
<tr role="row"> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Action')) ?>" | ||
class="col actions" | ||
role="gridcell" | ||
> | ||
<?= $block->escapeHtml($block->getActionLabel($event->getAction())) ?> | ||
</td> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Balance Change')) ?>" | ||
class="col change" | ||
role="gridcell" | ||
> | ||
<?= /* @noEscape */ $this->helper(Magento\Framework\Pricing\Helper\Data::class)->currency($event->getBalanceDelta()) ?> | ||
</td> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Balance')) ?>" | ||
class="col balance" | ||
role="gridcell" | ||
> | ||
<?= /* @noEscape*/ $this->helper(Magento\Framework\Pricing\Helper\Data::class)->currency($event->getBalanceAmount()) ?> | ||
</td> | ||
<td | ||
data-th="<?= $block->escapeHtmlAttr(__('Date')) ?>" | ||
class="col date" | ||
role="gridcell" | ||
> | ||
<?= /* @noEscape*/ $block->formatDate($event->getUpdatedAt(), \IntlDateFormatter::SHORT, true) ?> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f29397c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: