11
11
$ stores = $ block ->getStoresSortedBySortOrder ();
12
12
?>
13
13
<fieldset class="fieldset">
14
- <legend class="legend"><span><?php /* @escapeNotVerified */ echo __ ('Manage Options (Values of Your Attribute) ' ) ?> </span></legend>
14
+ <legend class="legend">
15
+ <span><?php echo $ block ->escapeHtml (__ ('Manage Options (Values of Your Attribute) ' )); ?> </span>
16
+ </legend>
15
17
<div id="manage-options-panel" data-index="attribute_options_select_container">
16
18
<table class="admin__control-table" data-index="attribute_options_select">
17
19
<thead>
18
20
<tr id="attribute-options-table">
19
21
<th class="col-draggable"></th>
20
- <th class="col-default control-table-actions-th"><span><?php /* @escapeNotVerified */ echo __ ('Is Default ' ) ?> </span></th>
22
+ <th class="col-default control-table-actions-th">
23
+ <span><?php echo $ block ->escapeHtml (__ ('Is Default ' )); ?> </span>
24
+ </th>
21
25
<?php
22
26
foreach ($ stores as $ _store ): ?>
23
27
<th<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> class="_required"<?php endif ; ?> >
24
- <span><?php /* @escapeNotVerified */ echo __ ($ _store ->getName ()) ?> </span>
28
+ <span><?php echo $ block -> escapeHtml ( __ ($ _store ->getName () )) ?> </span>
25
29
</th>
26
30
<?php endforeach ;
27
31
$ storetotal = count ($ stores ) + 3 ;
@@ -32,17 +36,18 @@ $stores = $block->getStoresSortedBySortOrder();
32
36
<tbody data-role="options-container" class="ignore-validate"></tbody>
33
37
<tfoot>
34
38
<tr>
35
- <th colspan="<?php /* @escapeNotVerified */ echo $ storetotal ; ?> " class="validation">
39
+ <th colspan="<?php echo ( int ) $ storetotal ; ?> " class="validation">
36
40
<input type="hidden" class="required-dropdown-attribute-entry" name="dropdown_attribute_validation"/>
37
41
<input type="hidden" class="required-dropdown-attribute-unique" name="dropdown_attribute_validation_unique"/>
38
42
</th>
39
43
</tr>
40
44
<tr>
41
- <th colspan="<?php /* @escapeNotVerified */ echo $ storetotal ; ?> " class="col-actions-add">
45
+ <th colspan="<?php echo ( int ) $ storetotal ; ?> " class="col-actions-add">
42
46
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()):?>
43
- <button id="add_new_option_button" data-action="add_new_row" title="<?php /* @escapeNotVerified */ echo __ ('Add Option ' ); ?> "
44
- type="button" class="action- scalable add">
45
- <span><?php /* @escapeNotVerified */ echo __ ('Add Option ' ); ?> </span>
47
+ <button id="add_new_option_button" data-action="add_new_row"
48
+ title="<?php echo $ block ->escapeHtml (__ ('Add Option ' )); ?> "
49
+ type="button" class="action- scalable add">
50
+ <span><?php echo $ block ->escapeHtml (__ ('Add Option ' )); ?> </span>
46
51
</button>
47
52
<?php endif ; ?>
48
53
</th>
@@ -55,23 +60,25 @@ $stores = $block->getStoresSortedBySortOrder();
55
60
<tr>
56
61
<td class="col-draggable">
57
62
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()): ?>
58
- <div data-role="draggable-handle" class="draggable-handle" title="<?php /* @escapeNotVerified */ echo __ ('Sort Option ' ); ?> "></div>
63
+ <div data-role="draggable-handle" class="draggable-handle"
64
+ title="<?php echo $ block ->escapeHtml (__ ('Sort Option ' )); ?> ">
65
+ </div>
59
66
<?php endif ; ?>
60
67
<input data-role="order" type="hidden" name="option[order][<%- data.id %>]" value="<%- data.sort_order %>" <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()): ?> disabled="disabled"<?php endif ; ?> />
61
68
</td>
62
69
<td class="col-default control-table-actions-cell">
63
70
<input class="input-radio" type="<%- data.intype %>" name="default[]" value="<%- data.id %>" <%- data.checked %><?php if ($ block ->getReadOnly ()):?> disabled="disabled"<?php endif ;?> />
64
71
</td>
65
72
<?php foreach ($ stores as $ _store ): ?>
66
- <td class="col-<%- data.id %>"><input name="option[value][<%- data.id %>][<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> ]" value="<%- data.store<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> %>" class="input-text<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option required-unique<?php endif ; ?> " type="text" <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()):?> disabled="disabled"<?php endif ;?> /></td>
73
+ <td class="col-<%- data.id %>"><input name="option[value][<%- data.id %>][<?php echo ( int ) $ _store ->getId () ?> ]" value="<%- data.store<?php /* @noEscape */ echo ( int ) $ _store ->getId () ?> %>" class="input-text<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option required-unique<?php endif ; ?> " type="text" <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()):?> disabled="disabled"<?php endif ;?> /></td>
67
74
<?php endforeach ; ?>
68
75
<td id="delete_button_container_<%- data.id %>" class="col-delete">
69
76
<input type="hidden" class="delete-flag" name="option[delete][<%- data.id %>]" value="" />
70
77
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()):?>
71
- <button id="delete_button_<%- data.id %>" title="<?php /* @escapeNotVerified */ echo __ ('Delete ' ) ?> " type="button"
78
+ <button id="delete_button_<%- data.id %>" title="<?php echo $ block -> escapeHtml ( __ ('Delete ' )); ?> " type="button"
72
79
class="action- scalable delete delete-option"
73
80
>
74
- <span><?php /* @escapeNotVerified */ echo __ ('Delete ' ) ?> </span>
81
+ <span><?php echo $ block -> escapeHtml ( __ ('Delete ' ) ) ?> </span>
75
82
</button>
76
83
<?php endif ;?>
77
84
</td>
@@ -94,7 +101,7 @@ $stores = $block->getStoresSortedBySortOrder();
94
101
},
95
102
"Magento_Catalog/catalog/product/attribute/unique-validate": {
96
103
"element": "required-dropdown-attribute-unique",
97
- "message": "<?php echo __ ("The value of Admin must be unique. " ) ?> "
104
+ "message": "<?php echo $ block -> escapeHtml ( __ ("The value of Admin must be unique. " )); ?> "
98
105
}
99
106
}
100
107
}
0 commit comments