|
|
@@ -1,39 +1,41 @@
|
|
|
-<table class="table table-sm table-hover">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th class="text-right pr-3">ID</th>
|
|
|
- <th>Name / Address</th>
|
|
|
- <th></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <?php
|
|
|
- foreach($locations as $location) {
|
|
|
- ?>
|
|
|
- <tr>
|
|
|
- <td class="text-right pr-3">
|
|
|
- <?=$location->id?>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <a href="/account/locations/<?=$location->id?>"><?=htmlspecialchars($location->name)?></a><br />
|
|
|
- <?php
|
|
|
- if($location->internal_id) {
|
|
|
- ?>
|
|
|
- <small class="text-info">Internal ID: <?=htmlspecialchars($location->internal_id)?></small><br />
|
|
|
- <?php
|
|
|
- }
|
|
|
- ?>
|
|
|
- <small><?=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city", "postal_code"]))?></small>
|
|
|
- </td>
|
|
|
- <td class="text-right align-middle">
|
|
|
- <a class="btn btn-outline-primary" href="/account/locations/<?=$location->id?>/edit">Edit</a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+<div class="table-responsive limit-height-2">
|
|
|
+ <table class="table table-sm table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="text-right pr-3">ID</th>
|
|
|
+ <th>Name / Address</th>
|
|
|
+ <th></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
<?php
|
|
|
- }
|
|
|
- ?>
|
|
|
- </tbody>
|
|
|
-</table>
|
|
|
+ foreach($locations as $location) {
|
|
|
+ ?>
|
|
|
+ <tr>
|
|
|
+ <td class="text-right pr-3">
|
|
|
+ <?=$location->id?>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <a href="/account/locations/<?=$location->id?>"><?=htmlspecialchars($location->name)?></a><br />
|
|
|
+ <?php
|
|
|
+ if($location->internal_id) {
|
|
|
+ ?>
|
|
|
+ <small class="text-info">Internal ID: <?=htmlspecialchars($location->internal_id)?></small><br />
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ <small><?=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city", "postal_code"]))?></small>
|
|
|
+ </td>
|
|
|
+ <td class="text-right align-middle">
|
|
|
+ <a class="btn btn-outline-primary" href="/account/locations/<?=$location->id?>/edit">Edit</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+</div>
|
|
|
|
|
|
<?php
|
|
|
if(empty($locations)) {
|