87 lines
3.8 KiB
PHP
87 lines
3.8 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* @var \App\View\AppView $this
|
||
|
|
* @var \Cake\Datasource\EntityInterface $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 column-80">
|
||
|
|
<div class="addresses view content">
|
||
|
|
<h3><?= h($address->address_line1) ?></h3>
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Address Name') ?></th>
|
||
|
|
<td><?= h($address->address_name) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Contact Name') ?></th>
|
||
|
|
<td><?= h($address->contact_name) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Address Line1') ?></th>
|
||
|
|
<td><?= h($address->address_line1) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Address Line2') ?></th>
|
||
|
|
<td><?= h($address->address_line2) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('City') ?></th>
|
||
|
|
<td><?= h($address->city) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('City') ?></th>
|
||
|
|
<td><?= $address->hasValue('city_entity') ? $this->Html->link($address->city_entity->name, ['controller' => 'Cities', 'action' => 'view', $address->city_entity->id]) : '' ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('State') ?></th>
|
||
|
|
<td><?= h($address->state) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('State') ?></th>
|
||
|
|
<td><?= $address->hasValue('state_entity') ? $this->Html->link($address->state_entity->name, ['controller' => 'States', 'action' => 'view', $address->state_entity->id]) : '' ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Postal Code') ?></th>
|
||
|
|
<td><?= h($address->postal_code) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Country') ?></th>
|
||
|
|
<td><?= h($address->country) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Country') ?></th>
|
||
|
|
<td><?= $address->hasValue('country_entity') ? $this->Html->link($address->country_entity->name, ['controller' => 'Countries', 'action' => 'view', $address->country_entity->id]) : '' ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Phone Number') ?></th>
|
||
|
|
<td><?= h($address->phone_number) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Email') ?></th>
|
||
|
|
<td><?= h($address->email) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Id') ?></th>
|
||
|
|
<td><?= $this->Number->format($address->id) ?></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<div class="text">
|
||
|
|
<strong><?= __('Notes') ?></strong>
|
||
|
|
<blockquote>
|
||
|
|
<?= $this->Text->autoParagraph(h($address->notes)); ?>
|
||
|
|
</blockquote>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|