Files
addressbook/CakePHP/templates/Addresses/view.php
2025-05-09 20:50:34 +02:00

57 lines
2.2 KiB
PHP

<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Address $address
*/
?>
<div class="row">
<aside class="column">
<div class="side-nav">
<h4 class="heading"><?= __('Actions') ?></h4>
<?= $this->Html->link(__('Edit Address'), ['action' => 'edit', $address->id], ['class' => 'side-nav-item']) ?>
<?= $this->Form->postLink(__('Delete Address'), ['action' => 'delete', $address->id], ['confirm' => __('Are you sure you want to delete # {0}?', $address->id), 'class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('List Addresses'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
<?= $this->Html->link(__('New Address'), ['action' => 'add'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column-responsive column-80">
<div class="addresses view content">
<h3><?= h($address->id) ?></h3>
<table>
<tr>
<th><?= __('First') ?></th>
<td><?= h($address->first) ?></td>
</tr>
<tr>
<th><?= __('Last') ?></th>
<td><?= h($address->last) ?></td>
</tr>
<tr>
<th><?= __('Street') ?></th>
<td><?= h($address->street) ?></td>
</tr>
<tr>
<th><?= __('Zip') ?></th>
<td><?= h($address->zip) ?></td>
</tr>
<tr>
<th><?= __('City') ?></th>
<td><?= h($address->city) ?></td>
</tr>
<tr>
<th><?= __('Phone') ?></th>
<td><?= h($address->phone) ?></td>
</tr>
<tr>
<th><?= __('Id') ?></th>
<td><?= $this->Number->format($address->id) ?></td>
</tr>
<tr>
<th><?= __('Owner') ?></th>
<td><?= $this->Number->format($address->owner) ?></td>
</tr>
</table>
</div>
</div>
</div>