File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Catalog/view/adminhtml/templates/catalog/product/attribute
Eav/Block/Adminhtml/Attribute/Edit/Main Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 19
19
<table class="admin__control-table" id="attribute-labels-table">
20
20
<thead>
21
21
<tr>
22
- <?php foreach ($ block ->getStores () as $ _store ) : ?>
22
+ <?php foreach ($ block ->getStores () as $ _store ): ?>
23
23
<th class="col-store-view"><?= $ block ->escapeHtml ($ _store ->getName ()) ?> </th>
24
24
<?php endforeach ; ?>
25
25
</tr>
26
26
</thead>
27
27
<tbody>
28
28
<tr>
29
29
<?php $ _labels = $ block ->getLabelValues () ?>
30
- <?php foreach ($ block ->getStores () as $ _store ) : ?>
30
+ <?php foreach ($ block ->getStores () as $ _store ): ?>
31
31
<td class="col-store-view">
32
- <input class="input-text validate-no-html-tags<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ) :?> required-option<?php endif ; ?> "
32
+ <?php $ isRequired = $ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ; ?>
33
+ <?php $ isRequiredClass = $ isRequired ? 'required-option ' : '' ; ?>
34
+ <input class="input-text validate-no-html-tags <?= /* @noEscape */ $ isRequiredClass ?> "
33
35
type="text"
34
36
name="frontend_label[<?= $ block ->escapeHtmlAttr ($ _store ->getId ()) ?> ]"
35
37
value="<?= $ block ->escapeHtmlAttr ($ _labels [$ _store ->getId ()]) ?> "
36
- <?php if ($ block ->getReadOnly ()) : ?>
38
+ <?php if ($ block ->getReadOnly ()): ?>
37
39
disabled="disabled"
38
40
<?php endif ;?> />
39
41
</td>
Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ protected function _initFormValues()
283
283
* Adding js block to the end of this block
284
284
*
285
285
* @param string $html
286
+ *
286
287
* @return string
287
288
*/
288
289
protected function _afterToHtml ($ html )
You can’t perform that action at this time.
0 commit comments