Wrap all confirmation checkbox labels in label tag

Without a label tag around the label it won't be clickable.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Johannes Löthberg 2015-06-23 07:28:24 +02:00 committed by Lukas Fleischer
parent 0fa4836e66
commit 226376fc62
5 changed files with 9 additions and 9 deletions

View file

@ -34,8 +34,8 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?>
<?php if (isset($_GET['via'])): ?> <?php if (isset($_GET['via'])): ?>
<input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" /> <input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" />
<?php endif; ?> <?php endif; ?>
<p><input type="checkbox" name="confirm" value="1" /> <p><label><input type="checkbox" name="confirm" value="1" />
<?= __("Confirm package deletion") ?></p> <?= __("Confirm package deletion") ?></label></p>
<p><input type="submit" class="button" name="do_Delete" value="<?= __("Delete") ?>" /></p> <p><input type="submit" class="button" name="do_Delete" value="<?= __("Delete") ?>" /></p>
</fieldset> </fieldset>
</form> </form>

View file

@ -41,8 +41,8 @@ if (has_credential(CRED_PKGBASE_DISOWN, $maintainer_uids)): ?>
<?php if (isset($_GET['via'])): ?> <?php if (isset($_GET['via'])): ?>
<input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" /> <input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" />
<?php endif; ?> <?php endif; ?>
<p><input type="checkbox" name="confirm" value="1" /> <p><label><input type="checkbox" name="confirm" value="1" />
<?= __("Confirm to disown the package") ?></p> <?= __("Confirm to disown the package") ?></label</p>
<p><input type="submit" class="button" name="do_Disown" value="<?= __("Disown") ?>" /></p> <p><input type="submit" class="button" name="do_Disown" value="<?= __("Disown") ?>" /></p>
</fieldset> </fieldset>
</form> </form>

View file

@ -55,8 +55,8 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?>
</script> </script>
<p><label for="merge_Into" ><?= __("Merge into:") ?></label> <p><label for="merge_Into" ><?= __("Merge into:") ?></label>
<input type="text" id="merge_Into" name="merge_Into" value="<?= isset($_GET['into']) ? $_GET['into'] : '' ?>" /></p> <input type="text" id="merge_Into" name="merge_Into" value="<?= isset($_GET['into']) ? $_GET['into'] : '' ?>" /></p>
<p><input type="checkbox" name="confirm" value="1" /> <p><label><input type="checkbox" name="confirm" value="1" />
<?= __("Confirm package merge") ?></p> <?= __("Confirm package merge") ?></label></p>
<p><input type="submit" class="button" name="do_Delete" value="<?= __("Merge") ?>" /></p> <p><input type="submit" class="button" name="do_Delete" value="<?= __("Merge") ?>" /></p>
</fieldset> </fieldset>
</form> </form>

View file

@ -12,8 +12,8 @@
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
</fieldset> </fieldset>
<fieldset> <fieldset>
<p><input type="checkbox" name="confirm" value="1" /> <p><label><input type="checkbox" name="confirm" value="1" />
<?= __("Confirm deletion") ?></p> <?= __("Confirm deletion") ?></label></p>
<p> <p>
<input type="submit" class="button" value="<?= __("Delete") ?>" /> <input type="submit" class="button" value="<?= __("Delete") ?>" />

View file

@ -123,7 +123,7 @@ if (!$result): ?>
<label for="merge_Into"><?= __("Merge into") ?></label> <label for="merge_Into"><?= __("Merge into") ?></label>
<input type="text" id="merge_Into" name="merge_Into" /> <input type="text" id="merge_Into" name="merge_Into" />
<?php endif; ?> <?php endif; ?>
<input type="checkbox" name="confirm" value="1" /> <?= __("Confirm") ?> <label><input type="checkbox" name="confirm" value="1" /> <?= __("Confirm") ?></label>
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" /> <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
<input type="submit" class="button" style="width: 80px" value="<?= __("Go") ?>" /> <input type="submit" class="button" style="width: 80px" value="<?= __("Go") ?>" />
</p> </p>