forked from Public/pics
Fix Button, ConfirmDeletePage, WarningDialog templates
This commit is contained in:
@@ -13,7 +13,7 @@ class ConfirmDeletePage extends PhotoPage
|
||||
parent::__construct($photo);
|
||||
}
|
||||
|
||||
protected function html_content()
|
||||
public function html_main()
|
||||
{
|
||||
$this->confirm();
|
||||
$this->photo();
|
||||
@@ -22,7 +22,7 @@ class ConfirmDeletePage extends PhotoPage
|
||||
private function confirm()
|
||||
{
|
||||
$buttons = [];
|
||||
$buttons[] = new Button("Delete", BASEURL . '/' . $this->photo->getSlug() . '?delete_confirmed', "btn btn-red");
|
||||
$buttons[] = new Button("Delete", BASEURL . '/' . $this->photo->getSlug() . '/?delete_confirmed', "btn btn-danger");
|
||||
$buttons[] = new Button("Cancel", $this->photo->getPageUrl(), "btn");
|
||||
|
||||
$alert = new WarningDialog(
|
||||
@@ -30,6 +30,6 @@ class ConfirmDeletePage extends PhotoPage
|
||||
"You are about to permanently delete the following photo.",
|
||||
$buttons
|
||||
);
|
||||
$alert->html_content();
|
||||
$alert->html_main();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user