summaryrefslogtreecommitdiffstats
path: root/apps/encryption/templates/settings-admin.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-03-27 15:01:46 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:28 +0200
commitbd99042a66acef066bebac1694dd2c431166fe2b (patch)
tree3589e9f8ed72907580b1eeca0dd6a18b83fc89f3 /apps/encryption/templates/settings-admin.php
parent37e8268447b93f6a74c69b0b489c9c3a95ed1fa5 (diff)
downloadnextcloud-server-bd99042a66acef066bebac1694dd2c431166fe2b.tar.gz
nextcloud-server-bd99042a66acef066bebac1694dd2c431166fe2b.zip
add setting templates
Diffstat (limited to 'apps/encryption/templates/settings-admin.php')
-rw-r--r--apps/encryption/templates/settings-admin.php71
1 files changed, 71 insertions, 0 deletions
diff --git a/apps/encryption/templates/settings-admin.php b/apps/encryption/templates/settings-admin.php
new file mode 100644
index 00000000000..252701e9ed0
--- /dev/null
+++ b/apps/encryption/templates/settings-admin.php
@@ -0,0 +1,71 @@
+<?php
+ /** @var array $_ */
+ /** @var OC_L10N $l */
+?>
+<form id="encryption" class="section">
+ <h2><?php p($l->t('ownCloud basic encryption module')); ?></h2>
+
+ <?php if($_["initStatus"] === \OCA\Files_Encryption\Session::NOT_INITIALIZED): ?>
+ <?php p($l->t("Encryption App is enabled but your keys are not initialized, please log-out and log-in again")); ?>
+ <?php else: ?>
+ <p id="encryptionSetRecoveryKey">
+ <?php p($l->t("Enable recovery key (allow to recover users files in case of password loss):")); ?>
+ <span class="msg"></span>
+ <br/>
+ <br/>
+ <input type="password" name="encryptionRecoveryPassword" id="encryptionRecoveryPassword"/>
+ <label for="recoveryPassword"><?php p($l->t("Recovery key password")); ?></label>
+ <br/>
+ <input type="password" name="encryptionRecoveryPassword" id="repeatEncryptionRecoveryPassword"/>
+ <label for="repeatEncryptionRecoveryPassword"><?php p($l->t("Repeat Recovery key password")); ?></label>
+ <br/>
+ <input
+ type='radio'
+ id='adminEnableRecovery'
+ name='adminEnableRecovery'
+ value='1'
+ <?php echo($_["recoveryEnabled"] === '1' ? 'checked="checked"' : ''); ?> />
+ <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"' : ''); ?> />
+ <label for="adminDisableRecovery"><?php p($l->t("Disabled")); ?></label>
+ </p>
+ <br/><br/>
+
+ <p name="changeRecoveryPasswordBlock" id="encryptionChangeRecoveryKey" <?php if ($_['recoveryEnabled'] === '0') print_unescaped('class="hidden"');?>>
+ <strong><?php p($l->t("Change recovery key password:")); ?></strong>
+ <span class="msg"></span>
+ <br/><br/>
+ <input
+ type="password"
+ name="changeRecoveryPassword"
+ id="oldEncryptionRecoveryPassword" />
+ <label for="oldEncryptionRecoveryPassword"><?php p($l->t("Old Recovery key password")); ?></label>
+ <br/>
+ <br/>
+ <input
+ type="password"
+ name="changeRecoveryPassword"
+ id="newEncryptionRecoveryPassword" />
+ <label for="newEncryptionRecoveryPassword"><?php p($l->t("New Recovery key password")); ?></label>
+ <br/>
+ <input
+ type="password"
+ name="changeRecoveryPassword"
+ id="repeatedNewEncryptionRecoveryPassword" />
+ <label for="repeatEncryptionRecoveryPassword"><?php p($l->t("Repeat New Recovery key password")); ?></label>
+ <br/>
+ <button
+ type="button"
+ name="submitChangeRecoveryKey">
+ <?php p($l->t("Change Password")); ?>
+ </button>
+ </p>
+ <?php endif; ?>
+</form>