summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-16 18:01:48 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-17 10:38:13 +0200
commit04323fbc19524926973550cc2aa0ab0331a4ca0a (patch)
treec2bc4ee6adad09114d4b1ceccf145cc9860b33ac /settings/templates
parent4611520c7fbb9269c6232e7f4047bb5f5dd1610c (diff)
downloadnextcloud-server-04323fbc19524926973550cc2aa0ab0331a4ca0a.tar.gz
nextcloud-server-04323fbc19524926973550cc2aa0ab0331a4ca0a.zip
implement sidebar fro personal settings - bad kung-fu
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/personal.php21
1 files changed, 14 insertions, 7 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 86f2c28319b..b3a26acdb69 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -8,10 +8,15 @@
?>
<div id="app-navigation">
-<!-- <?php foreach($_['forms'] as $form) {
- print_unescaped($form);
- };?>
--->
+ <ul>
+ <?php foreach($_['forms'] as $form) {
+ if (isset($form['anchor'])) {
+ $anchor = '#' . $form['anchor'];
+ $sectionName = $form['section-name'];
+ print_unescaped("<li><a href='$anchor'>$sectionName</a></li>");
+ }
+ }?>
+ </ul>
</div>
<div id="app-content">
@@ -159,10 +164,12 @@ if($_['passwordChangeSupported']) {
</form>
<?php foreach($_['forms'] as $form) {
- print_unescaped($form);
+ if (isset($form['form'])) {?>
+ <div id="<?php isset($form['anchor']) ? print_unescaped($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div>
+ <?php }
};?>
-<div class="section">
+<div id="ssl-root-certificates" class="section">
<h2><?php p($l->t('SSL root certificates')); ?></h2>
<table id="sslCertificate" class="grid">
<thead>
@@ -201,7 +208,7 @@ if($_['passwordChangeSupported']) {
</div>
<?php if($_['enableDecryptAll']): ?>
-<div class="section">
+<div id="encryption" class="section">
<h2>
<?php p( $l->t( 'Encryption' ) ); ?>