Adds a Confirm Delete page and actually delete the assets.

This commit is contained in:
2018-07-07 12:21:12 +00:00
parent 344db6e4c5
commit e40c05c1f8
7 changed files with 114 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ class PhotoPage extends SubTemplate
echo '
<div id=user_actions_box>
<h3>Actions</h3>
<a class="btn btn-red" href="', BASEURL, '/editasset/?id=', $this->photo->getId(), '&delete">Delete asset</a>
<a class="btn btn-red" href="', BASEURL, '/confirmdelete?slug=', $this->photo->getSlug(), '">Delete</a>
</div>';
}
}