Added a confirmation screen to the delete button.
This commit is contained in:
parent
10f5fd22ca
commit
bf66e8403a
@ -44,6 +44,16 @@ class Admin_TagsMap_Controller extends Admin_Controller {
|
|||||||
print $view;
|
print $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function confirm_delete_gps($tag_id) {
|
||||||
|
// Make sure the user meant to hit the delete button.
|
||||||
|
// Make a new Form.
|
||||||
|
$view = new Admin_View("admin.html");
|
||||||
|
$view->content = new View("admin_tagsmap_delete.html");
|
||||||
|
$view->content->tag_id = $tag_id;
|
||||||
|
print $view;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function delete_gps($tag_id) {
|
public function delete_gps($tag_id) {
|
||||||
// Delete the GSP data associated with a tag.
|
// Delete the GSP data associated with a tag.
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
->find_all();
|
->find_all();
|
||||||
if (count($existingGPS) > 0) {
|
if (count($existingGPS) > 0) {
|
||||||
?>
|
?>
|
||||||
| <a href="<?= url::site("admin/tagsmap/delete_gps/$tag->id") ?>"><?= t("Delete GPS") ?></a>
|
| <a href="<?= url::site("admin/tagsmap/confirm_delete_gps/$tag->id") ?>"><?= t("Delete GPS") ?></a>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user