[aur-dev] [PATCH 1/2] Make confirmation label of width 'auto'
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- web/html/css/aurweb.css | 4 ++++ web/html/pkgdel.php | 2 +- web/html/pkgdisown.php | 2 +- web/html/pkgmerge.php | 2 +- web/template/account_delete.php | 2 +- web/template/pkg_search_results.php | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css index 620e0fa..6f2a1e5 100644 --- a/web/html/css/aurweb.css +++ b/web/html/css/aurweb.css @@ -108,3 +108,7 @@ span.hover-help { border-bottom: 1px dotted black; cursor:help; } + +label.confirmation { + width: auto; +} diff --git a/web/html/pkgdel.php b/web/html/pkgdel.php index face081..eb20967 100644 --- a/web/html/pkgdel.php +++ b/web/html/pkgdel.php @@ -34,7 +34,7 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?> <?php if (isset($_GET['via'])): ?> <input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" /> <?php endif; ?> - <p><label><input type="checkbox" name="confirm" value="1" /> + <p><label class="confirmation"><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm package deletion") ?></label></p> <p><input type="submit" class="button" name="do_Delete" value="<?= __("Delete") ?>" /></p> </fieldset> diff --git a/web/html/pkgdisown.php b/web/html/pkgdisown.php index f7ef0f2..4842939 100644 --- a/web/html/pkgdisown.php +++ b/web/html/pkgdisown.php @@ -41,7 +41,7 @@ if (has_credential(CRED_PKGBASE_DISOWN, $maintainer_uids)): ?> <?php if (isset($_GET['via'])): ?> <input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" /> <?php endif; ?> - <p><label><input type="checkbox" name="confirm" value="1" /> + <p><label class="confirmation"><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm to disown the package") ?></label</p> <p><input type="submit" class="button" name="do_Disown" value="<?= __("Disown") ?>" /></p> </fieldset> diff --git a/web/html/pkgmerge.php b/web/html/pkgmerge.php index 0742c62..c651ce9 100644 --- a/web/html/pkgmerge.php +++ b/web/html/pkgmerge.php @@ -55,7 +55,7 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?> </script> <p><label for="merge_Into" ><?= __("Merge into:") ?></label> <input type="text" id="merge_Into" name="merge_Into" value="<?= isset($_GET['into']) ? $_GET['into'] : '' ?>" /></p> - <p><label><input type="checkbox" name="confirm" value="1" /> + <p><label class="confirmation"><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm package merge") ?></label></p> <p><input type="submit" class="button" name="do_Delete" value="<?= __("Merge") ?>" /></p> </fieldset> diff --git a/web/template/account_delete.php b/web/template/account_delete.php index faa0137..74f386d 100644 --- a/web/template/account_delete.php +++ b/web/template/account_delete.php @@ -12,7 +12,7 @@ <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> </fieldset> <fieldset> - <p><label><input type="checkbox" name="confirm" value="1" /> + <p><label class="confirmation"><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm deletion") ?></label></p> <p> diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index e866282..cce533c 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -123,7 +123,7 @@ if (!$result): ?> <label for="merge_Into"><?= __("Merge into") ?></label> <input type="text" id="merge_Into" name="merge_Into" /> <?php endif; ?> - <label><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm") ?></label> + <label class="confirmation"><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm") ?></label> <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> <input type="submit" class="button" style="width: 80px" value="<?= __("Go") ?>" /> </p> -- 2.4.4
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- web/html/css/aurweb.css | 3 ++- web/html/pkgmerge.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css index 6f2a1e5..d67877a 100644 --- a/web/html/css/aurweb.css +++ b/web/html/css/aurweb.css @@ -109,6 +109,7 @@ span.hover-help { cursor:help; } -label.confirmation { +label.confirmation, +#merge-into { width: auto; } diff --git a/web/html/pkgmerge.php b/web/html/pkgmerge.php index c651ce9..f6e951b 100644 --- a/web/html/pkgmerge.php +++ b/web/html/pkgmerge.php @@ -53,7 +53,7 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?> }).attr('autocomplete', 'off'); }); </script> - <p><label for="merge_Into" ><?= __("Merge into:") ?></label> + <p><label id="merge-into" for="merge_Into" ><?= __("Merge into:") ?></label> <input type="text" id="merge_Into" name="merge_Into" value="<?= isset($_GET['into']) ? $_GET['into'] : '' ?>" /></p> <p><label class="confirmation"><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm package merge") ?></label></p> -- 2.4.4
participants (2)
-
Johannes Löthberg
-
Lukas Fleischer