|
|
@@ -46,14 +46,29 @@ $notes = $location->getNotes();
|
|
|
$user = $note->getUser();
|
|
|
$dt = $note->getDateTimeCreated();
|
|
|
$dt->setTimezone(new DateTimeZone(TIMEZONE));
|
|
|
+ $delete_url = sprintf("/account/locations/%d/delete-note/%d", $location->id, $note->id);
|
|
|
?>
|
|
|
<div class="list-group-item">
|
|
|
- <div>
|
|
|
- <strong><?=htmlspecialchars($user->getDisplayName())?></strong>
|
|
|
- <span class="float-right text-muted"><?=htmlspecialchars($dt->format("d/m/Y H:i"))?></span>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <?=$note->getContentHTML()?>
|
|
|
+ <div class="form-row">
|
|
|
+ <div class="col">
|
|
|
+ <div>
|
|
|
+ <strong><?=htmlspecialchars($user->getDisplayName())?></strong>
|
|
|
+ <span class="float-right text-muted"><?=htmlspecialchars($dt->format("d/m/Y H:i"))?></span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <?=$note->getContentHTML()?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ <button class="btn btn-sm btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
|
|
|
+ <?=htmlspecialchars(__("Actions"))?>
|
|
|
+ </button>
|
|
|
+ <div class="dropdown-menu">
|
|
|
+ <a class="dropdown-item text-danger" href="<?=htmlspecialchars($delete_url)?>">
|
|
|
+ <?=htmlspecialchars(__("Delete"))?>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php
|