[aur-dev] [PATCH 2/2] Add a confirmation check box below search results

Lukas Fleischer lfleischer at archlinux.org
Tue Jun 9 07:13:21 UTC 2015


Always show the confirmation check box next to the package actions
drop-down on the package search results page. This allows regular users
to confirm disown commands.

Fixes FS#45264.

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/template/pkg_search_results.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index 86b4c74..7ab3eb9 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -122,8 +122,8 @@ if (!$result): ?>
 					<?php if (has_credential(CRED_PKGBASE_DELETE)): ?>
 						<label for="merge_Into"><?= __("Merge into") ?></label>
 						<input type="text" id="merge_Into" name="merge_Into" />
-						<input type="checkbox" name="confirm" value="1" /> <?= __("Confirm") ?>
 					<?php endif; ?>
+					<input type="checkbox" name="confirm" value="1" /> <?= __("Confirm") ?>
 					<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
 					<input type="submit" class="button" style="width: 80px" value="<?= __("Go") ?>" />
 				</p>
-- 
2.4.2


More information about the aur-dev mailing list