Merge pull request #11337 from danbartram/better_encryption_recovery_labels
Add clickable labels to encryption recovery radios
This commit is contained in:
commit
659b9fc030
2 changed files with 8 additions and 4 deletions
|
@ -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/>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue