aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-29 22:06:00 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-29 22:06:00 +0200
commit659b9fc0308d30b141e6ed66e52b822e76393756 (patch)
tree9cde1d4a67fe39ec832509a826803c2738efe3bb
parent35465f5375a273eccec0e64d34978ce9209885bf (diff)
parent1b9c31d349f2cd54bbfc544e091598b6adcf64ff (diff)
downloadnextcloud-server-659b9fc0308d30b141e6ed66e52b822e76393756.tar.gz
nextcloud-server-659b9fc0308d30b141e6ed66e52b822e76393756.zip
Merge pull request #11337 from danbartram/better_encryption_recovery_labels
Add clickable labels to encryption recovery radios
-rw-r--r--apps/files_encryption/templates/settings-admin.php6
-rw-r--r--apps/files_encryption/templates/settings-personal.php6
2 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_encryption/templates/settings-admin.php b/apps/files_encryption/templates/settings-admin.php
index a97261dc1c9..2d5f7084c96 100644
--- a/apps/files_encryption/templates/settings-admin.php
+++ b/apps/files_encryption/templates/settings-admin.php
@@ -16,18 +16,20 @@
<br/>
<input
type='radio'
+ id='adminEnableRecovery'
name='adminEnableRecovery'
value='1'
<?php echo($_["recoveryEnabled"] === '1' ? 'checked="checked"' : 'disabled'); ?> />
- <?php p($l->t("Enabled")); ?>
+ <label for="adminEnableRecovery"><?php p($l->t("Enabled")); ?></label>
<br/>
<input
type='radio'
+ id='adminDisableRecovery'
name='adminEnableRecovery'
value='0'
<?php echo($_["recoveryEnabled"] === '0' ? 'checked="checked"' : 'disabled'); ?> />
- <?php p($l->t("Disabled")); ?>
+ <label for="adminDisableRecovery"><?php p($l->t("Disabled")); ?></label>
</p>
<br/><br/>
diff --git a/apps/files_encryption/templates/settings-personal.php b/apps/files_encryption/templates/settings-personal.php
index 7c3a700c233..a1221240422 100644
--- a/apps/files_encryption/templates/settings-personal.php
+++ b/apps/files_encryption/templates/settings-personal.php
@@ -46,18 +46,20 @@
<br />
<input
type='radio'
+ id='userEnableRecovery'
name='userEnableRecovery'
value='1'
<?php echo ( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> />
- <?php p( $l->t( "Enabled" ) ); ?>
+ <label for="userEnableRecovery"><?php p( $l->t( "Enabled" ) ); ?></label>
<br />
<input
type='radio'
+ id='userDisableRecovery'
name='userEnableRecovery'
value='0'
<?php echo ( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> />
- <?php p( $l->t( "Disabled" ) ); ?>
+ <label for="userDisableRecovery"><?php p( $l->t( "Disabled" ) ); ?></label>
<div id="recoveryEnabledSuccess"><?php p( $l->t( 'File recovery settings updated' ) ); ?></div>
<div id="recoveryEnabledError"><?php p( $l->t( 'Could not update file recovery' ) ); ?></div>
</p>