Skip to content

Commit 578610e

Browse files
committed
MAGETWO-99488: Eliminate @escapeNotVerified in Tax-related Modules
1 parent 009142c commit 578610e

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
// @deprecated
7+
// @codingStandardsIgnoreFile
8+
?>
9+
<div data-mage-init='{"floatingHeader": {}}' class="page-actions">
10+
<button type="button" onclick="window.location.href='<?= $block->escapeUrl($createUrl) ?>'">
11+
<?= $block->escapeHtml(__('Add New Class')) ?>
12+
</button>
13+
</div>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
// @deprecated
7+
// @codingStandardsIgnoreFile
8+
?>
9+
<div data-mage-init='{"floatingHeader": {}}' class="page-actions">
10+
<?= $block->getBackButtonHtml() ?>
11+
<?= $block->getResetButtonHtml() ?>
12+
<?= $block->getSaveButtonHtml() ?>
13+
</div>
14+
<?php if ($form) : ?>
15+
<?= $form->toHtml() ?>
16+
<script>
17+
require(['jquery', "mage/mage"], function(jQuery){
18+
19+
jQuery('#<?= $block->escapeJs($form->getForm()->getId()) ?>').mage('form').mage('validation');
20+
21+
});
22+
</script>
23+
<?php endif; ?>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
// @deprecated
7+
// @codingStandardsIgnoreFile
8+
?>
9+
<div data-mage-init='{"floatingHeader": {}}' class="page-actions">
10+
<button type="button" onclick="window.location.href='<?= $block->escapeUrl($createUrl) ?>'">
11+
<?= $block->escapeHtml(__('Add New Tax Rule')) ?>
12+
</button>
13+
</div>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
// @deprecated
7+
// @codingStandardsIgnoreFile
8+
?>
9+
<div data-mage-init='{"floatingHeader": {}}' class="page-actions">
10+
<?= $block->getBackButtonHtml() ?>
11+
<?= $block->getResetButtonHtml() ?>
12+
<?= $block->getSaveButtonHtml() ?>
13+
<?= $block->getDeleteButtonHtml() ?>
14+
</div>
15+
<?php if ($form) : ?>
16+
<?= $form->toHtml() ?>
17+
<script>
18+
require(['jquery', "mage/mage"], function(jQuery){
19+
20+
jQuery('#<?= $block->escapeJs($form->getForm()->getId()) ?>').mage('form').mage('validation');
21+
22+
});
23+
</script>
24+
<?php endif; ?>

0 commit comments

Comments
 (0)