variant options coming along - add test passing
This commit is contained in:
@@ -43,6 +43,34 @@
|
||||
<td><?= $productCategoryVariant->enabled ? __('Yes') : __('No'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="related">
|
||||
<h4><?= __('Related Product Category Variant Options') ?></h4>
|
||||
<?php if (!empty($productCategoryVariant->product_category_variant_options)) : ?>
|
||||
<div class="table-responsive">
|
||||
<table>
|
||||
<tr>
|
||||
<th><?= __('Variant Value') ?></th>
|
||||
<th><?= __('Variant Label') ?></th>
|
||||
<th><?= __('Enabled') ?></th>
|
||||
<th class="actions"><?= __('Actions') ?></th>
|
||||
</tr>
|
||||
<?php foreach ($productCategoryVariant->product_category_variant_options as $productCategoryVariantOption) : ?>
|
||||
<tr>
|
||||
<td><?= h($productCategoryVariantOption->variant_value) ?></td>
|
||||
<td><?= h($productCategoryVariantOption->variant_label) ?></td>
|
||||
<td><?= h($productCategoryVariantOption->enabled) ?></td>
|
||||
<td class="actions">
|
||||
<?= $this->Html->link(__('View'), ['controller' => 'ProductCategoryVariantOptions', 'action' => 'view', $productCategoryVariantOption->id]) ?>
|
||||
<?= $this->Html->link(__('Edit'), ['controller' => 'ProductCategoryVariantOptions', 'action' => 'edit', $productCategoryVariantOption->id]) ?>
|
||||
<?= $this->Form->postLink(__('Delete'), ['controller' => 'ProductCategoryVariantOptions', 'action' => 'delete', $productCategoryVariantOption->id], ['confirm' => __('Are you sure you want to delete # {0}?', $productCategoryVariantOption->id)]) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user