1
0

Added a confirmation screen to the delete button.

This commit is contained in:
rWatcher 2009-07-25 00:58:31 -04:00
parent 10f5fd22ca
commit bf66e8403a
2 changed files with 11 additions and 1 deletions

View File

@ -44,6 +44,16 @@ class Admin_TagsMap_Controller extends Admin_Controller {
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) {
// Delete the GSP data associated with a tag.

View File

@ -53,7 +53,7 @@
->find_all();
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>
<?
}