From 6b7e26a2d19c53438a9594ee3068f1afcdb1ee0d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 31 Aug 2015 18:18:24 +0200 Subject: Move package base flagging to a separate form Show a separate confirmation page when flagging a package out-of-date. Implements FS#44967. Signed-off-by: Lukas Fleischer --- web/html/index.php | 4 ++-- web/html/pkgflag.php | 44 ++++++++++++++++++++++++++++++++++++++++ web/template/pkgbase_actions.php | 2 +- 3 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 web/html/pkgflag.php diff --git a/web/html/index.php b/web/html/index.php index 7068d763..ec99bb72 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -68,8 +68,8 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { $_POST['do_UnNotify'] = __('UnNotify'); break; case "flag": - $_POST['do_Flag'] = __('Flag'); - break; + include('pkgflag.php'); + return; case "unflag": $_POST['do_UnFlag'] = __('UnFlag'); break; diff --git a/web/html/pkgflag.php b/web/html/pkgflag.php new file mode 100644 index 00000000..9d86909d --- /dev/null +++ b/web/html/pkgflag.php @@ -0,0 +1,44 @@ + +
+

+

+ ', htmlspecialchars($pkgbase_name), ''); ?> +

+
    + +
  • + +
+

+ ', ''); ?> +

+
+
+ + + +

" />

+
+
+
+ +
  • -
  • +
  • -- cgit v1.2.3-24-g4f1b