|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @var LocationUpdateLogEntry[] $entries
|
|
* @var LocationUpdateLogEntry[] $entries
|
|
|
|
|
+ * @var object $pagination_object
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
?>
|
|
?>
|
|
@@ -9,15 +10,19 @@
|
|
|
|
|
|
|
|
<h2>Log</h2>
|
|
<h2>Log</h2>
|
|
|
|
|
|
|
|
|
|
+ <div class="mb-3">
|
|
|
|
|
+ <?php
|
|
|
|
|
+ View::include("pagination", compact("pagination_object"));
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<table class="table table-sm table-bordered">
|
|
<table class="table table-sm table-bordered">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>Location</th>
|
|
|
|
|
<th>Date/Time</th>
|
|
<th>Date/Time</th>
|
|
|
|
|
+ <th>Location</th>
|
|
|
<th>User</th>
|
|
<th>User</th>
|
|
|
- <th>Field</th>
|
|
|
|
|
- <th>Before</th>
|
|
|
|
|
- <th>After</th>
|
|
|
|
|
|
|
+ <th>Changes</th>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
@@ -26,23 +31,49 @@
|
|
|
$location = $entry->getLocation();
|
|
$location = $entry->getLocation();
|
|
|
$user = $entry->getUser();
|
|
$user = $entry->getUser();
|
|
|
$dts = Util::getDisplayDateTimeFromUTC($entry->dts);
|
|
$dts = Util::getDisplayDateTimeFromUTC($entry->dts);
|
|
|
- $modifications = $entry->getModifications();
|
|
|
|
|
- foreach($modifications as $modification) {
|
|
|
|
|
- ?>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td><?=htmlspecialchars($dts)?></td>
|
|
|
|
|
- <td><a href="/account/locations/<?=$location->id?>"><?=htmlspecialchars($location->name)?></a></td>
|
|
|
|
|
- <td><a href="<?=htmlspecialchars($user->getURL())?>"><?=htmlspecialchars($user->email)?></a></td>
|
|
|
|
|
- <td class="text-monospace"><?=htmlspecialchars($modification->field)?></td>
|
|
|
|
|
- <td class="text-monospace"><?=htmlspecialchars($modification->before)?></td>
|
|
|
|
|
- <td class="text-monospace"><?=htmlspecialchars($modification->after)?></td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <?php
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
?>
|
|
?>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td><?=htmlspecialchars($dts)?></td>
|
|
|
|
|
+ <td><a href="/account/locations/<?=$location->id?>"><?=htmlspecialchars($location->name)?></a></td>
|
|
|
|
|
+ <td><a href="<?=htmlspecialchars($user->getURL())?>"><?=htmlspecialchars($user->email)?></a></td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <table class="table-sm table-bordered w-100">
|
|
|
|
|
+ <colgroup>
|
|
|
|
|
+ <col style="width: 33%"/>
|
|
|
|
|
+ <col style="width: 33%"/>
|
|
|
|
|
+ <col style="width: 33%"/>
|
|
|
|
|
+ </colgroup>
|
|
|
|
|
+ <thead>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th>Field</th>
|
|
|
|
|
+ <th>Before</th>
|
|
|
|
|
+ <th>After</th>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </thead>
|
|
|
|
|
+ <tbody>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ foreach($entry->getModifications() as $modification) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td class="text-monospace"><?=htmlspecialchars($modification->field)?></td>
|
|
|
|
|
+ <td class="text-monospace"><?=htmlspecialchars($modification->before)?></td>
|
|
|
|
|
+ <td class="text-monospace"><?=htmlspecialchars($modification->after)?></td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </tbody>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
<?php
|
|
<?php
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
|
|
|
+
|
|
|
|
|
+ <?php
|
|
|
|
|
+ View::include("pagination", compact("pagination_object"));
|
|
|
|
|
+ ?>
|
|
|
</div>
|
|
</div>
|