Skip to content
Snippets Groups Projects
Commit 509d5fa5 authored by Olga Lytvynenko's avatar Olga Lytvynenko
Browse files

MAGETWO-55393: [Github #5636] Many storeviews break the page

parent e330a26d
No related merge requests found
......@@ -17,25 +17,27 @@
</div>
<div class="fieldset-wrapper-content in collapse" id="manage-titles-content">
<fieldset class="admin__fieldset fieldset">
<table class="admin__control-table" id="attribute-labels-table">
<thead>
<tr>
<?php foreach ($block->getStores() as $_store): ?>
<th class="col-store-view"><?php /* @escapeNotVerified */ echo $_store->getName() ?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<tr>
<?php $_labels = $block->getLabelValues() ?>
<?php foreach ($block->getStores() as $_store): ?>
<td class="col-store-view">
<input class="input-text<?php if ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> required-option<?php endif; ?>" type="text" name="frontend_label[<?php /* @escapeNotVerified */ echo $_store->getId() ?>]" value="<?php echo $block->escapeHtml($_labels[$_store->getId()]) ?>"<?php if ($block->getReadOnly()):?> disabled="disabled"<?php endif;?>/>
</td>
<?php endforeach; ?>
</tr>
</tbody>
</table>
<div class="admin__control-table-wrapper">
<table class="admin__control-table" id="attribute-labels-table">
<thead>
<tr>
<?php foreach ($block->getStores() as $_store): ?>
<th class="col-store-view"><?php /* @escapeNotVerified */ echo $_store->getName() ?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<tr>
<?php $_labels = $block->getLabelValues() ?>
<?php foreach ($block->getStores() as $_store): ?>
<td class="col-store-view">
<input class="input-text<?php if ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> required-option<?php endif; ?>" type="text" name="frontend_label[<?php /* @escapeNotVerified */ echo $_store->getId() ?>]" value="<?php echo $block->escapeHtml($_labels[$_store->getId()]) ?>"<?php if ($block->getReadOnly()):?> disabled="disabled"<?php endif;?>/>
</td>
<?php endforeach; ?>
</tr>
</tbody>
</table>
</div>
</fieldset>
</div>
</div>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment