freenetis-github/application/views/address_points/show.php @ f2c4f458
8baed187 | Michal Kliment | <h2><?php echo __('Address point detail') . ' ' . $address_point->name ?></h2><br />
|
|
<?php
|
|||
c1bdc1c4 | Michal Kliment | if ($gps == '' && $this->acl_check_edit('Address_points_Controller', 'address_point'))
|
|
8baed187 | Michal Kliment | echo html::anchor('address_points/edit/' . $address_point->id, __('Fill in GPS'));
|
|
else
|
|||
echo html::anchor('address_points/edit/' . $address_point->id, __('Edit'), array('title' => __('Edit'), 'class' => 'popup_link'));
|
|||
?>
|
|||
<br /><br />
|
|||
a9be340b | Ondřej Fibich | ||
<div style="display: grid; grid-column-gap: 50px; grid-template-columns: 1fr 2fr; margin-bottom: 2em">
|
|||
<table class="extended" cellspacing="0">
|
|||
8baed187 | Michal Kliment | <tr>
|
|
<th><?php echo __('ID') ?></th>
|
|||
<td><?php echo $address_point->id ?></td>
|
|||
</tr>
|
|||
<tr>
|
|||
<th><?php echo __('Country') ?></th>
|
|||
<td><?php echo $address_point->country->country_name ?></td>
|
|||
</tr>
|
|||
<tr>
|
|||
<th><?php echo __('Town') ?></th>
|
|||
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->town) ?></td>
|
|||
</tr>
|
|||
<?php if ($address_point->town->quarter != ''): ?>
|
|||
<tr>
|
|||
<th><?php echo __('Quarter') ?></th>
|
|||
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->quarter) ?></td>
|
|||
</tr>
|
|||
<?php endif ?>
|
|||
<tr>
|
|||
<th><?php echo __('ZIP code') ?></th>
|
|||
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->zip_code) ?></td>
|
|||
</tr>
|
|||
<?php if (!empty($address_point->street->id)): ?>
|
|||
<tr>
|
|||
<th><?php echo __('Street') ?></th>
|
|||
<td><?php echo html::anchor('streets/show/' . $address_point->street->id, $address_point->street->street) ?></td>
|
|||
</tr>
|
|||
<?php endif; ?>
|
|||
<?php if (!empty($address_point->street_number)): ?>
|
|||
<tr>
|
|||
<th><?php echo __('Street number') ?></th>
|
|||
<td><?php echo $address_point->street_number ?></td>
|
|||
</tr>
|
|||
<?php endif; ?>
|
|||
<?php if (!empty($gps)): ?>
|
|||
<tr>
|
|||
<th><?php echo __('GPS') ?></th>
|
|||
<td><?php echo $gps ?></td>
|
|||
</tr>
|
|||
<?php endif ?>
|
|||
</table>
|
|||
<?php if (!empty($gps)): ?>
|
|||
a9be340b | Ondřej Fibich | <div id="ap_gmap" style="min-height: 400px" data-gpsx="<?php echo $gpsx ?>" data-gpsy="<?php echo $gpsy ?>"></div>
|
|
8baed187 | Michal Kliment | <?php endif; ?>
|
|
a9be340b | Ondřej Fibich | </div>
|
|
8baed187 | Michal Kliment | ||
<h3><?php echo __('Members on this address') ?></h3>
|
|||
<?php echo $members_grid ?>
|
|||
<br /><br />
|
|||
<h3><?php echo __('Devices on this address') ?></h3>
|
|||
<?php echo $devices_grid ?>
|
|||
<div class="clear"></div>
|