summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-30 13:44:40 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-30 13:44:40 +0100
commitd9db791c67cfb309b0e3ec49ea03fffeb0d71d02 (patch)
tree056a43709b7e8f8d5d68f1266b3004bb24ed7a7c /settings/templates
parentea55848fa11eee7469c9ccee7b2c544ab976d3a1 (diff)
downloadnextcloud-server-d9db791c67cfb309b0e3ec49ea03fffeb0d71d02.tar.gz
nextcloud-server-d9db791c67cfb309b0e3ec49ea03fffeb0d71d02.zip
introduce sidebar for admin page
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/admin.php40
1 files changed, 33 insertions, 7 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 2ea5d824909..4f37a15875c 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -8,6 +8,16 @@
* @var array $_
* @var \OCP\IL10N $l
*/
+
+style('settings', 'settings');
+script('settings', 'settings');
+script( "settings", "admin" );
+script( "settings", "log" );
+script( 'core', 'multiselect' );
+script('core', 'select2/select2');
+style('core', 'select2/select2');
+script('core', 'setupchecks');
+
$levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal');
$levelLabels = array(
$l->t( 'Everything (fatal issues, errors, warnings, info, debug)' ),
@@ -40,9 +50,23 @@ if ($_['sendmail_is_available']) {
if ($_['mail_smtpmode'] == 'qmail') {
$mail_smtpmode[] = 'qmail';
}
-
?>
+<div id="app-navigation">
+ <ul>
+ <?php foreach($_['forms'] as $form) {
+ if (isset($form['anchor'])) {
+ $anchor = '#' . $form['anchor'];
+ $sectionName = $form['section-name'];
+ print_unescaped(sprintf("<li><a href='%s'>%s</a></li>", OC_Util::sanitizeHTML($anchor), OC_Util::sanitizeHTML($sectionName)));
+ }
+ }?>
+ </ul>
+</div>
+
+<div id="app-content">
+
+<div id="security-warning">
<?php
// is ssl working ?
@@ -72,7 +96,6 @@ if (!$_['htaccessworking']) {
</div>
<?php
}
-
// Are doc blocks accessible?
if (!$_['isAnnotationsWorking']) {
?>
@@ -193,10 +216,12 @@ if ($_['suggestedOverwriteWebroot']) {
?></span>
</div>
</div>
-<?php foreach ($_['forms'] as $form) {
- print_unescaped($form);
-}
-;?>
+</div>
+<?php foreach($_['forms'] as $form) {
+ if (isset($form['form'])) {?>
+ <div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div>
+ <?php }
+};?>
<div class="section" id="backgroundjobs">
<h2 class="inlineblock"><?php p($l->t('Cron'));?></h2>
@@ -419,7 +444,7 @@ if ($_['suggestedOverwriteWebroot']) {
<span id="sendtestmail_msg" class="msg"></span>
</div>
-<div class="section">
+<div class="section" id="log">
<h2><?php p($l->t('Log'));?></h2>
<?php p($l->t('Log level'));?> <select name='loglevel' id='loglevel'>
<?php for ($i = 0; $i < 5; $i++):
@@ -472,3 +497,4 @@ if ($_['suggestedOverwriteWebroot']) {
<div class="section credits-footer">
<p><?php print_unescaped($theme->getShortFooter()); ?></p>
</div>
+</div>