Skip to content

Commit 1f1dca3

Browse files
committedJul 5, 2023
Run Coding Standard
1 parent a083d09 commit 1f1dca3

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed
 

‎view/adminhtml/templates/customer/password_change.phtml

+21-8
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,41 @@
44
<div class="change-customer-pwd fieldset-wrapper">
55
<div class="fieldset-wrapper-title">
66
<strong class="title">
7-
<span><?php /* @escapeNotVerified */ echo $block->escapeHtml(__('Change Password')); ?></span>
7+
<span><?= /* @escapeNotVerified */ $block->escapeHtml(__('Change Password')); ?></span>
88
</strong>
99
</div>
1010

1111
<div class="admin__fieldset-wrapper-content">
12-
<form action="<?php echo $block->escapeUrl($block->getUrl('customer/password/changePwdPost')); ?>"
12+
<form action="<?= $block->escapeUrl($block->getUrl('customer/password/changePwdPost')); ?>"
1313
method="post">
14-
<?php echo $this->getBlockHtml('formkey')?>
15-
<input id="customer_id" type="hidden" name="customer_id" value="<?php echo $block->escapeHtml($customerId); ?>" />
14+
<?= $block->getBlockHtml('formkey') ?>
15+
<input id="customer_id" type="hidden" name="customer_id" value="<?= $block->escapeHtml($customerId); ?>" />
1616
<div class="admin__field">
1717
<label class="admin__field-label">
18-
<span><?php /* @escapeNotVerified */ echo __('Enter Password'); ?></span>
18+
<span><?= /* @escapeNotVerified */ $block->escapeHtml(__('Enter Password')); ?></span>
1919
</label>
2020
</div>
2121
<div class="admin__field-control">
22-
<input class="admin__control-text" type="password" aria-label="Password" name="new_customer_pwd" style="width: 48%" title="">
22+
<input class="admin__control-text"
23+
type="password"
24+
aria-label="<?= $block->escapeHtml(__('Password')) ?>"
25+
name="new_customer_pwd"
26+
style="width: 48%"
27+
title="">
2328
</div>
2429

2530
<div class="admin__field-control action">
26-
<button id="save" title="Save Customer" type="submit" class="action- scalable save primary ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" data-form-role="save" data-ui-id="save-button" role="button" aria-disabled="false">
31+
<button id="save"
32+
title="<?= $block->escapeHtml(__('Save Customer')) ?>"
33+
type="submit"
34+
class="action-scalable
35+
save primary ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
36+
data-form-role="save"
37+
data-ui-id="save-button"
38+
role="button"
39+
aria-disabled="false">
2740
<span class="ui-button-text">
28-
<span><?php /* @escapeNotVerified */ echo $block->escapeHtml(__('Update Password')); ?></span>
41+
<span><?= /* @escapeNotVerified */ $block->escapeHtml(__('Update Password')); ?></span>
2942
</span>
3043
</button>
3144
</div>

‎view/adminhtml/web/js/form/components/tab-mixin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ define([
88
return function (target) {
99
return target.extend({
1010
/**
11-
* Toogle base on tab
11+
* Toggle base on tab
1212
*/
1313
activate: function () {
14-
var self = this;
14+
let self = this;
1515
this._super();
1616
$('.change-customer-pwd').toggle(self.dataScope === 'customer_edit_tab_view_content');
1717
}

0 commit comments

Comments
 (0)
Please sign in to comment.