|
|
@@ -1,24 +1,38 @@
|
|
|
-<?php
|
|
|
-if(empty($locations)) {
|
|
|
- ?>
|
|
|
- <div class="alert alert-info">
|
|
|
- No locations to display.
|
|
|
- </div>
|
|
|
- <?php
|
|
|
-}
|
|
|
-else {
|
|
|
- ?>
|
|
|
- <div class="list-group">
|
|
|
+<table class="table table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>ID</th>
|
|
|
+ <th>Name / Address</th>
|
|
|
+ <th></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
<?php
|
|
|
foreach($locations as $location) {
|
|
|
?>
|
|
|
- <a class="list-group-item list-group-item-action" href="/account/locations/<?=$location->id?>">
|
|
|
- <?=htmlspecialchars($location->name)?><br />
|
|
|
- <small><?=htmlspecialchars($location->getDisplayAddress(["address_1", "address_2", "city", "postal_code"]))?></small>
|
|
|
- </a>
|
|
|
+ <tr>
|
|
|
+ <td class="text-right">
|
|
|
+ <?=$location->id?>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <a href="/account/locations/<?=$location->id?>"><?=htmlspecialchars($location->name)?></a><br />
|
|
|
+ <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>
|
|
|
+
|
|
|
+<?php
|
|
|
+if(empty($locations)) {
|
|
|
+ ?>
|
|
|
+ <div class="alert alert-info">
|
|
|
+ No locations to display.
|
|
|
</div>
|
|
|
<?php
|
|
|
}
|