CakeProducts/templates/ProductSkus/view.php

61 lines
2.4 KiB
PHP

<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $productSku
*/
?>
<div class="row">
<aside class="column">
<div class="side-nav">
<h4 class="heading"><?= __('Actions') ?></h4>
<?= $this->Html->link(__('Edit Product Skus'), ['action' => 'edit', $productSku->id], ['class' => 'side-nav-item']) ?>
<?= $this->Form->postLink(__('Delete Product Skus'), ['action' => 'delete', $productSku->id], ['confirm' => __('Are you sure you want to delete # {0}?', $productSku->id), 'class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('List Product Skus'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('New Product Skus'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column column-80">
<div class="productSkus view content">
<h3><?= h($productSku->sku) ?></h3>
<table>
<tr>
<th><?= __('Id') ?></th>
<td><?= h($productSku->id) ?></td>
</tr>
<tr>
<th><?= __('Product Id') ?></th>
<td><?= h($productSku->product_id) ?></td>
</tr>
<tr>
<th><?= __('Sku') ?></th>
<td><?= h($productSku->sku) ?></td>
</tr>
<tr>
<th><?= __('Barcode') ?></th>
<td><?= h($productSku->barcode) ?></td>
</tr>
<tr>
<th><?= __('Price') ?></th>
<td><?= $productSku->price === null ? '' : $this->Number->format($productSku->price) ?></td>
</tr>
<tr>
<th><?= __('Cost') ?></th>
<td><?= $productSku->cost === null ? '' : $this->Number->format($productSku->cost) ?></td>
</tr>
<tr>
<th><?= __('Created') ?></th>
<td><?= h($productSku->created) ?></td>
</tr>
<tr>
<th><?= __('Modified') ?></th>
<td><?= h($productSku->modified) ?></td>
</tr>
<tr>
<th><?= __('Deleted') ?></th>
<td><?= h($productSku->deleted) ?></td>
</tr>
</table>
</div>
</div>
</div>