121 lines
5.7 KiB
PHP
121 lines
5.7 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* @var \App\View\AppView $this
|
||
|
|
* @var \Cake\Datasource\EntityInterface $city
|
||
|
|
*/
|
||
|
|
?>
|
||
|
|
<div class="row">
|
||
|
|
<aside class="column">
|
||
|
|
<div class="side-nav">
|
||
|
|
<h4 class="heading"><?= __('Actions') ?></h4>
|
||
|
|
<?= $this->Html->link(__('List Cities'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||
|
|
</div>
|
||
|
|
</aside>
|
||
|
|
<div class="column column-80">
|
||
|
|
<div class="cities view content">
|
||
|
|
<h3><?= h($city->name) ?></h3>
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Name') ?></th>
|
||
|
|
<td><?= h($city->name) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('State') ?></th>
|
||
|
|
<td><?= $city->hasValue('state') ? $this->Html->link($city->state->name, ['controller' => 'States', 'action' => 'view', $city->state->id]) : '' ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('State Code') ?></th>
|
||
|
|
<td><?= h($city->state_code) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Country') ?></th>
|
||
|
|
<td><?= $city->hasValue('country') ? $this->Html->link($city->country->name, ['controller' => 'Countries', 'action' => 'view', $city->country->id]) : '' ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Country Code') ?></th>
|
||
|
|
<td><?= h($city->country_code) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('WikiDataId') ?></th>
|
||
|
|
<td><?= h($city->wikiDataId) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Id') ?></th>
|
||
|
|
<td><?= $this->Number->format($city->id) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Latitude') ?></th>
|
||
|
|
<td><?= $this->Number->format($city->latitude) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Longitude') ?></th>
|
||
|
|
<td><?= $this->Number->format($city->longitude) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Created At') ?></th>
|
||
|
|
<td><?= h($city->created_at) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Updated At') ?></th>
|
||
|
|
<td><?= h($city->updated_at) ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Flag') ?></th>
|
||
|
|
<td><?= $city->flag ? __('Yes') : __('No'); ?></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<div class="related">
|
||
|
|
<h4><?= __('Related Addresses') ?></h4>
|
||
|
|
<?php if (!empty($city->addresses)) : ?>
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th><?= __('Id') ?></th>
|
||
|
|
<th><?= __('Address Name') ?></th>
|
||
|
|
<th><?= __('Contact Name') ?></th>
|
||
|
|
<th><?= __('Address Line1') ?></th>
|
||
|
|
<th><?= __('Address Line2') ?></th>
|
||
|
|
<th><?= __('City') ?></th>
|
||
|
|
<th><?= __('City Id') ?></th>
|
||
|
|
<th><?= __('State') ?></th>
|
||
|
|
<th><?= __('State Id') ?></th>
|
||
|
|
<th><?= __('Postal Code') ?></th>
|
||
|
|
<th><?= __('Country') ?></th>
|
||
|
|
<th><?= __('Country Id') ?></th>
|
||
|
|
<th><?= __('Phone Number') ?></th>
|
||
|
|
<th><?= __('Email') ?></th>
|
||
|
|
<th><?= __('Notes') ?></th>
|
||
|
|
<th class="actions"><?= __('Actions') ?></th>
|
||
|
|
</tr>
|
||
|
|
<?php foreach ($city->addresses as $addresses) : ?>
|
||
|
|
<tr>
|
||
|
|
<td><?= h($addresses->id) ?></td>
|
||
|
|
<td><?= h($addresses->address_name) ?></td>
|
||
|
|
<td><?= h($addresses->contact_name) ?></td>
|
||
|
|
<td><?= h($addresses->address_line1) ?></td>
|
||
|
|
<td><?= h($addresses->address_line2) ?></td>
|
||
|
|
<td><?= h($addresses->city) ?></td>
|
||
|
|
<td><?= h($addresses->city_id) ?></td>
|
||
|
|
<td><?= h($addresses->state) ?></td>
|
||
|
|
<td><?= h($addresses->state_id) ?></td>
|
||
|
|
<td><?= h($addresses->postal_code) ?></td>
|
||
|
|
<td><?= h($addresses->country) ?></td>
|
||
|
|
<td><?= h($addresses->country_id) ?></td>
|
||
|
|
<td><?= h($addresses->phone_number) ?></td>
|
||
|
|
<td><?= h($addresses->email) ?></td>
|
||
|
|
<td><?= h($addresses->notes) ?></td>
|
||
|
|
<td class="actions">
|
||
|
|
<?= $this->Html->link(__('View'), ['controller' => 'Addresses', 'action' => 'view', $addresses->id]) ?>
|
||
|
|
<?= $this->Html->link(__('Edit'), ['controller' => 'Addresses', 'action' => 'edit', $addresses->id]) ?>
|
||
|
|
<?= $this->Form->postLink(__('Delete'), ['controller' => 'Addresses', 'action' => 'delete', $addresses->id], ['confirm' => __('Are you sure you want to delete # {0}?', $addresses->id)]) ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|