diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-10-09 22:00:36 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-10-17 19:13:28 +0200 |
commit | b2ccb712e26de6922e09d7500a01041814e6bd74 (patch) | |
tree | 708b8b22f4b3520eceeb212ee90f816b0895d5a1 /apps/user_ldap/settings.php | |
parent | 7c6a9c22562f03eefb6730fc53afeed360c0171e (diff) | |
download | nextcloud-server-b2ccb712e26de6922e09d7500a01041814e6bd74.tar.gz nextcloud-server-b2ccb712e26de6922e09d7500a01041814e6bd74.zip |
Ldap Wizard: Group Filter configuration
Diffstat (limited to 'apps/user_ldap/settings.php')
-rw-r--r-- | apps/user_ldap/settings.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php index 299e98fe090..77bd26a52d9 100644 --- a/apps/user_ldap/settings.php +++ b/apps/user_ldap/settings.php @@ -45,22 +45,22 @@ $wControls = $wControls->fetchPage(); $sControls = new OCP\Template('user_ldap', 'part.settingcontrols'); $sControls = $sControls->fetchPage(); -$wizard1 = new OCP\Template('user_ldap', 'part.wizard-server'); -$wizard1->assign('serverConfigurationPrefixes', $prefixes); -$wizard1->assign('serverConfigurationHosts', $hosts); -$wizard1->assign('wizardControls', $wControls); -$wizardHtml .= $wizard1->fetchPage(); -$toc['#ldapWizard1'] = 'Server'; +$wizTabs = array(); +$wizTabs[] = array('tpl' => 'part.wizard-server', 'cap' => 'Server'); +$wizTabs[] = array('tpl' => 'part.wizard-userfilter', 'cap' => 'User Filter'); +$wizTabs[] = array('tpl' => 'part.wizard-loginfilter', 'cap' => 'Login Filter'); +$wizTabs[] = array('tpl' => 'part.wizard-groupfilter', 'cap' => 'Group Filter'); -$wizard2 = new OCP\Template('user_ldap', 'part.wizard-userfilter'); -$wizard2->assign('wizardControls', $wControls); -$wizardHtml .= $wizard2->fetchPage(); -$toc['#ldapWizard2'] = 'User Filter'; - -$wizard3 = new OCP\Template('user_ldap', 'part.wizard-loginfilter'); -$wizard3->assign('wizardControls', $wControls); -$wizardHtml .= $wizard3->fetchPage(); -$toc['#ldapWizard3'] = 'Login Filter'; +for($i = 0; $i < count($wizTabs); $i++) { + $tab = new OCP\Template('user_ldap', $wizTabs[$i]['tpl']); + if($i === 0) { + $tab->assign('serverConfigurationPrefixes', $prefixes); + $tab->assign('serverConfigurationHosts', $hosts); + } + $tab->assign('wizardControls', $wControls); + $wizardHtml .= $tab->fetchPage(); + $toc['#ldapWizard'.($i+1)] = $wizTabs[$i]['cap']; +} $tmpl->assign('tabs', $wizardHtml); $tmpl->assign('toc', $toc); |