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

View File

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