| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /**
- * @var LocationUpdateLogEntry[] $entries
- */
- ?>
- <div class="container-fluid mt-3 py-4">
- <h2>Log</h2>
- <table class="table table-sm table-bordered">
- <thead>
- <tr>
- <th>Location</th>
- <th>Date/Time</th>
- <th>User</th>
- <th>Field</th>
- <th>Before</th>
- <th>After</th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach($entries as $entry) {
- $location = $entry->getLocation();
- $user = $entry->getUser();
- $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
- }
- ?>
- <?php
- }
- ?>
- </tbody>
- </table>
- </div>
|