44 * See COPYING.txt for license details.
55 */
66
7- // @codingStandardsIgnoreFile
8-
7+ /** @var $block \Magento\TaxImportExport\Block\Adminhtml\Rate\ImportExport */
98?>
109<div class="import-export-tax-rates">
11- <?php if (!$ block ->getIsReadonly ()): ?>
10+ <?php if (!$ block ->getIsReadonly ()) : ?>
1211 <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">
1518 <?php endif ; ?>
1619 <?= $ block ->getBlockHtml ('formkey ' ) ?>
1720 <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>
1922 <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"/>
2127 <?= $ block ->getButtonHtml (__ ('Import Tax Rates ' ), '' , 'import-submit ' ) ?>
2228 </div>
2329 </div>
24- <?php if ($ block ->getUseContainer ()): ?>
30+ <?php if ($ block ->getUseContainer ()) : ?>
2531 </form>
2632 <?php endif ; ?>
2733 <script>
@@ -44,18 +50,22 @@ require(['jquery', "mage/mage", "loadingPopup"], function(jQuery){
4450</script>
4551 </div>
4652 <?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">
5060 <?php endif ; ?>
5161 <?= $ block ->getBlockHtml ('formkey ' ) ?>
5262 <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>
5464 <div class="admin__field-control">
5565 <?= $ block ->getButtonHtml (__ ('Export Tax Rates ' ), "this.form.submit() " ) ?>
5666 </div>
5767 </div>
58- <?php if ($ block ->getUseContainer ()): ?>
68+ <?php if ($ block ->getUseContainer ()) : ?>
5969 </form>
6070 <?php endif ; ?>
6171 </div>
0 commit comments