diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-09-29 19:25:32 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-09-29 19:25:32 +0200 |
commit | 9fb37a2990b250d4416bb8cb7d00c477869a0fa5 (patch) | |
tree | 87180083ba2fce3b9c199cf5ddfd37cf6a9551dd /core/templates | |
parent | 753c6fd07bebcd7ca709aafb6b9358603318e441 (diff) | |
download | nextcloud-server-9fb37a2990b250d4416bb8cb7d00c477869a0fa5.tar.gz nextcloud-server-9fb37a2990b250d4416bb8cb7d00c477869a0fa5.zip |
Add proper labels to various form elements and buttons
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.user.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 98cd8d6c281..16454b4f45e 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -104,7 +104,7 @@ <input id="searchbox" type="search" name="query" value="" required autocomplete="off" tabindex="5"> - <button class="icon-close-white" type="reset"></button> + <button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search'));?></span></button> </form> <div id="contactsmenu"> <div class="icon-contacts menutoggle"></div> @@ -142,10 +142,12 @@ <div id="sudo-login-background" class="hidden"></div> <form id="sudo-login-form" class="hidden"> - <?php p($l->t('This action requires you to confirm your password:')); ?><br> - <input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>" + <label> + <?php p($l->t('This action requires you to confirm your password')); ?><br/> + <input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>" placeholder="<?php p($l->t('Confirm your password')); ?>" /> - <input class="confirm icon-confirm" title="<?php p($l->t('Confirm')); ?>" value="" type="submit"> + </label> + <input class="confirm" value="<?php p($l->t('Confirm')); ?>" type="submit"> </form> <div id="content-wrapper"> |