diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-01-25 10:52:29 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-01-25 10:52:34 +0100 |
commit | f2391133e77ce4fdd64bd2e1167c772a17a6ee4e (patch) | |
tree | d82c5177cc7dbdbae1e5c0db85e80162dfe55d5f /settings/templates | |
parent | 20854f463bd046de344eae7ee176c37651819e94 (diff) | |
download | nextcloud-server-f2391133e77ce4fdd64bd2e1167c772a17a6ee4e.tar.gz nextcloud-server-f2391133e77ce4fdd64bd2e1167c772a17a6ee4e.zip |
Contain background jobs options in fieldset to improve accessibility, fix #13795
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/settings/admin/server.php | 79 |
1 files changed, 42 insertions, 37 deletions
diff --git a/settings/templates/settings/admin/server.php b/settings/templates/settings/admin/server.php index 8dc00e26e56..3536c05e995 100644 --- a/settings/templates/settings/admin/server.php +++ b/settings/templates/settings/admin/server.php @@ -55,41 +55,46 @@ href="<?php p(link_to_docs('admin-background-jobs')); ?>"></a> <p class="settings-hint"><?php p($l->t('For optimal performance it\'s important to configure background jobs correctly. For bigger instances \'Cron\' is the recommended setting. Please see the documentation for more information.'));?></p> - <p> - <input type="radio" name="mode" value="ajax" class="radio" - id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") { - print_unescaped('checked="checked"'); - } ?>> - <label for="backgroundjobs_ajax">AJAX</label><br/> - <em><?php p($l->t("Execute one task with each page loaded")); ?></em> - </p> - <p> - <input type="radio" name="mode" value="webcron" class="radio" - id="backgroundjobs_webcron" <?php if ($_['backgroundjobs_mode'] === "webcron") { - print_unescaped('checked="checked"'); - } ?>> - <label for="backgroundjobs_webcron">Webcron</label><br/> - <em><?php p($l->t("cron.php is registered at a webcron service to call cron.php every 15 minutes over HTTP.")); ?></em> - </p> - <p> - <input type="radio" name="mode" value="cron" class="radio" - id="backgroundjobs_cron" <?php if ($_['backgroundjobs_mode'] === "cron") { - print_unescaped('checked="checked"'); - } - if (!$_['cli_based_cron_possible']) { - print_unescaped('disabled'); - }?>> - <label for="backgroundjobs_cron">Cron</label><br/> - <em><?php p($l->t("Use system cron service to call the cron.php file every 15 minutes.")); ?> - <?php if($_['cli_based_cron_possible']) { - p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']])); - } else { - print_unescaped(str_replace( - ['{linkstart}', '{linkend}'], - ['<a href="http://php.net/manual/en/book.posix.php">', ' ↗</a>'], - $l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.') - )); - } ?></em> + <form action="#"> + <fieldset> + <legend class="hidden-visually"><?php p($l->t('Pick background job setting'));?></legend> + <p> + <input type="radio" name="mode" value="ajax" class="radio" + id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") { + print_unescaped('checked="checked"'); + } ?>> + <label for="backgroundjobs_ajax">AJAX</label><br/> + <em><?php p($l->t("Execute one task with each page loaded")); ?></em> + </p> + <p> + <input type="radio" name="mode" value="webcron" class="radio" + id="backgroundjobs_webcron" <?php if ($_['backgroundjobs_mode'] === "webcron") { + print_unescaped('checked="checked"'); + } ?>> + <label for="backgroundjobs_webcron">Webcron</label><br/> + <em><?php p($l->t("cron.php is registered at a webcron service to call cron.php every 15 minutes over HTTP.")); ?></em> + </p> + <p> + <input type="radio" name="mode" value="cron" class="radio" + id="backgroundjobs_cron" <?php if ($_['backgroundjobs_mode'] === "cron") { + print_unescaped('checked="checked"'); + } + if (!$_['cli_based_cron_possible']) { + print_unescaped('disabled'); + }?>> + <label for="backgroundjobs_cron">Cron</label><br/> + <em><?php p($l->t("Use system cron service to call the cron.php file every 15 minutes.")); ?> + <?php if($_['cli_based_cron_possible']) { + p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']])); + } else { + print_unescaped(str_replace( + ['{linkstart}', '{linkend}'], + ['<a href="http://php.net/manual/en/book.posix.php">', ' ↗</a>'], + $l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.') + )); + } ?></em> - </p> -</div>
\ No newline at end of file + </p> + </fieldset> + </form> +</div> |