contain category attributse when viewing category
This commit is contained in:
@@ -68,6 +68,35 @@
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h4><?= __('Related Category Attributes') ?></h4>
|
||||
<?php if (!empty($productCategory->product_category_attributes)) : ?>
|
||||
<div class="table-responsive">
|
||||
<table>
|
||||
<tr>
|
||||
<th><?= __('Name') ?></th>
|
||||
<th><?= __('Options') ?></th>
|
||||
<th><?= __('Enabled') ?></th>
|
||||
<th class="actions"><?= __('Actions') ?></th>
|
||||
</tr>
|
||||
<?php foreach ($productCategory->product_category_attributes as $productCategoryAttribute) : ?>
|
||||
<tr>
|
||||
<td><?= h($productCategoryAttribute->name) ?></td>
|
||||
<td>
|
||||
options
|
||||
</td>
|
||||
<td><?= h($productCategoryAttribute->enabled) ?></td>
|
||||
<td class="actions">
|
||||
<?= $this->Html->link(__('View'), ['controller' => 'ProductCategoryAttributes', 'action' => 'view', $productCategoryAttribute->id]) ?>
|
||||
<?= $this->Html->link(__('Edit'), ['controller' => 'ProductCategoryAttributes', 'action' => 'edit', $productCategoryAttribute->id]) ?>
|
||||
<?= $this->Form->postLink(__('Delete'), ['controller' => 'ProductCategoryAttributes', 'action' => 'delete', $productCategoryAttribute->id], ['confirm' => __('Are you sure you want to delete # {0}?', $productCategoryAttribute->id)]) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user