Skip to content

Commit

Permalink
.class moved to block from phtml
Browse files Browse the repository at this point in the history
  • Loading branch information
srsathish92 committed Feb 24, 2020
1 parent 82e4623 commit ff45a23
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 6 additions & 1 deletion app/code/Magento/Tax/Block/Adminhtml/Rate/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ protected function _prepareForm()
$fieldset->addField(
'zip_is_range',
'checkbox',
['name' => 'zip_is_range', 'label' => __('Zip/Post is Range'), 'value' => '1']
[
'name' => 'zip_is_range',
'label' => __('Zip/Post is Range'),
'value' => '1',
'class' => 'zip-is-range-checkbox'
]
);

if (!isset($formData['tax_postcode'])) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See COPYING.txt for license details.
*/
?>
<div class="entry-edit form-inline tax-rate-form">
<div class="entry-edit form-inline">
<?= $block->getFormHtml() ?>
</div>
<?= $block->getChildHtml('form_after') ?>
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
}
}

.tax-rate-form {
.admin__fieldset > .admin__field > .admin__field-control {
input[type='checkbox'] {
margin: 8px 0 0 0;
}
.admin__fieldset > .admin__field > .admin__field-control {
input.zip-is-range-checkbox {
margin: 8px 0 0 0;
}
}

0 comments on commit ff45a23

Please sign in to comment.