4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- // @codingStandardsIgnoreFile
8
-
7
+ /** @var $block \Magento\TaxImportExport\Block\Adminhtml\Rate\ImportExport */
9
8
?>
10
9
<div class="import-export-tax-rates">
11
- <?php if (!$ block ->getIsReadonly ()): ?>
10
+ <?php if (!$ block ->getIsReadonly ()) : ?>
12
11
<div class="import-tax-rates">
13
- <?php if ($ block ->getUseContainer ()): ?>
14
- <form id="import-form" class="admin__fieldset" action="<?= /* @escapeNotVerified */ $ block ->getUrl ('tax/rate/importPost ' ) ?> " method="post" enctype="multipart/form-data">
12
+ <?php if ($ block ->getUseContainer ()) :?>
13
+ <form id="import-form"
14
+ class="admin__fieldset"
15
+ action="<?= $ block ->escapeUrl ($ block ->getUrl ('tax/rate/importPost ' )) ?> "
16
+ method="post"
17
+ enctype="multipart/form-data">
15
18
<?php endif ; ?>
16
19
<?= $ block ->getBlockHtml ('formkey ' ) ?>
17
20
<div class="fieldset admin__field">
18
- <label for="import_rates_file" class="admin__field-label"><span><?= /* @escapeNotVerified */ __ ('Import Tax Rates ' ) ?> </span></label>
21
+ <label for="import_rates_file" class="admin__field-label"><span><?= $ block -> escapeHtml ( __ ('Import Tax Rates ' ) ) ?> </span></label>
19
22
<div class="admin__field-control">
20
- <input type="file" id="import_rates_file" name="import_rates_file" class="input-file required-entry"/>
23
+ <input type="file"
24
+ id="import_rates_file"
25
+ name="import_rates_file"
26
+ class="input-file required-entry"/>
21
27
<?= $ block ->getButtonHtml (__ ('Import Tax Rates ' ), '' , 'import-submit ' ) ?>
22
28
</div>
23
29
</div>
24
- <?php if ($ block ->getUseContainer ()): ?>
30
+ <?php if ($ block ->getUseContainer ()) : ?>
25
31
</form>
26
32
<?php endif ; ?>
27
33
<script>
@@ -44,18 +50,22 @@ require(['jquery', "mage/mage", "loadingPopup"], function(jQuery){
44
50
</script>
45
51
</div>
46
52
<?php endif ; ?>
47
- <div class="export-tax-rates <?php if ($ block ->getIsReadonly ()): ?> box-left<?php else : ?> box-right<?php endif ; ?> ">
48
- <?php if ($ block ->getUseContainer ()): ?>
49
- <form id="export_form" class="admin__fieldset" action="<?= /* @escapeNotVerified */ $ block ->getUrl ('tax/rate/exportPost ' ) ?> " method="post" enctype="multipart/form-data">
53
+ <div class="export-tax-rates <?= ($ block ->getIsReadonly ()) ? 'box-left ' : 'box-right ' ?> ">
54
+ <?php if ($ block ->getUseContainer ()) :?>
55
+ <form id="export_form"
56
+ class="admin__fieldset"
57
+ action="<?= $ block ->escapeUrl ($ block ->getUrl ('tax/rate/exportPost ' )) ?> "
58
+ method="post"
59
+ enctype="multipart/form-data">
50
60
<?php endif ; ?>
51
61
<?= $ block ->getBlockHtml ('formkey ' ) ?>
52
62
<div class="fieldset admin__field">
53
- <span class="admin__field-label"><span><?= /* @escapeNotVerified */ __ ('Export Tax Rates ' ) ?> </span></span>
63
+ <span class="admin__field-label"><span><?= $ block -> escapeHtml ( __ ('Export Tax Rates ' ) ) ?> </span></span>
54
64
<div class="admin__field-control">
55
65
<?= $ block ->getButtonHtml (__ ('Export Tax Rates ' ), "this.form.submit() " ) ?>
56
66
</div>
57
67
</div>
58
- <?php if ($ block ->getUseContainer ()): ?>
68
+ <?php if ($ block ->getUseContainer ()) : ?>
59
69
</form>
60
70
<?php endif ; ?>
61
71
</div>
0 commit comments