EditAssetForm: add "View asset" button

This commit is contained in:
Aaron van Geffen 2023-11-12 17:29:21 +01:00
parent 8f4ed7e3b0
commit 0b24ef8b07
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class EditAssetForm extends Template
Session::getSessionTokenKey(), '=', Session::getSessionToken(),
'" onclick="return confirm(\'Are you sure you want to delete this asset?\');">',
'Delete asset</a>
<a class="btn btn-light" href="', $this->asset->getPageUrl(), '#photo_frame">View asset</a>
<button class="btn btn-primary" type="submit">Save asset data</button>
</div>
<h2>Edit asset \'', $this->asset->getTitle(), '\' (', $this->asset->getFilename(), ')</h2>