summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/templates
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-10-04 16:33:37 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-10-17 19:13:27 +0200
commit3b1822cf91407f243f18311b8abc273ad2eb1b11 (patch)
treedce41cedcf3916bd9ef4951b74fec029fb9636c7 /apps/user_ldap/templates
parent8290929aa6fcb1e62e79d7acf8bf310c8d6f94d7 (diff)
downloadnextcloud-server-3b1822cf91407f243f18311b8abc273ad2eb1b11.tar.gz
nextcloud-server-3b1822cf91407f243f18311b8abc273ad2eb1b11.zip
LDAP Wizard: add detection, load and save of LDAP objectClasses for filter purposes
Diffstat (limited to 'apps/user_ldap/templates')
-rw-r--r--apps/user_ldap/templates/part.wizard-server.php4
-rw-r--r--apps/user_ldap/templates/part.wizard-userfilter.php51
-rw-r--r--apps/user_ldap/templates/settings.php2
3 files changed, 54 insertions, 3 deletions
diff --git a/apps/user_ldap/templates/part.wizard-server.php b/apps/user_ldap/templates/part.wizard-server.php
index ae0a7e650c9..c6900fd24e8 100644
--- a/apps/user_ldap/templates/part.wizard-server.php
+++ b/apps/user_ldap/templates/part.wizard-server.php
@@ -33,7 +33,7 @@
/>
<span>
<input type="number" id="ldap_port" name="ldap_port"
- class="hidden lwautosave"
+ class="invisible lwautosave"
data-default="<?php p($_['ldap_port_default']); ?>"
placeholder="<?php p($l->t('Port'));?>" />
</span>
@@ -68,7 +68,7 @@
</div>
<div class="tablerow">
- <div class="tablecell ldapWizardInfo hidden">&nbsp;
+ <div class="tablecell ldapWizardInfo invisible">&nbsp;
</div>
</div>
</div>
diff --git a/apps/user_ldap/templates/part.wizard-userfilter.php b/apps/user_ldap/templates/part.wizard-userfilter.php
new file mode 100644
index 00000000000..b58784b680f
--- /dev/null
+++ b/apps/user_ldap/templates/part.wizard-userfilter.php
@@ -0,0 +1,51 @@
+<fieldset id="ldapWizard2">
+
+ <div>
+ <p>
+ <?php p($l->t('Limit the access to ownCloud to users meetignthis criteria:'));?>
+ </p>
+
+ <p>
+ <label for="ldap_userfilter_objectclass">
+ <?php p($l->t('only those object classes:'));?>
+ </label>
+
+ <select id="ldap_userfilter_objectclass" multiple="multiple"
+ name="ldap_userfilter_objectclass"
+ data-default="<?php p($_['ldap_userfilter_objectclass_default']); ?>">
+<!-- <option><?php p($l->t('Any'));?></option> -->
+ </select>
+ </p>
+
+ <p>
+ <label for="ldap_userfilter_groups">
+ <?php p($l->t('only from those groups:'));?>
+ </label>
+
+ <select id="ldap_userfilter_groups" multiple="multiple"
+ name="ldap_userfilter_groups" class="lwautosave"
+ data-default="<?php p($_['ldap_userfilter_groups_default']); ?>">
+<!-- <option value="TODOfillIn">TODO: fill in object classes via Ajax</option> -->
+<!-- <option value="TODOfillIn2">22222</option> -->
+ </select>
+ </p>
+
+ <p>
+ <label><a>↓ <?php p($l->t('Edit raw filter instead'));?></a></label>
+ </p>
+
+ <p class="invisible">
+ <input type="text" id="ldap_userlistfilter_raw" name="ldap_userlistfilter_raw"
+ class="lwautosave"
+ data-default="<?php p($_['ldap_userlistfilter_raw_default']); ?>"
+ placeholder="<?php p($l->t('Raw LDAP filter'));?>"
+ title="<?php p($l->t('The filter specifies which LDAP users shall have access to the ownCloud instance.'));?>"
+ />
+ </p>
+
+ <p>
+ <div class="ldapWizardInfo invisible">&nbsp;</div>
+ </p>
+ <?php print_unescaped($_['wizardControls']); ?>
+ </div>
+</fieldset> \ No newline at end of file
diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php
index 9ca9673ada2..f63a4bdef1f 100644
--- a/apps/user_ldap/templates/settings.php
+++ b/apps/user_ldap/templates/settings.php
@@ -2,7 +2,7 @@
<div id="ldapSettings" class="personalblock">
<ul>
<?php foreach($_['toc'] as $id => $title) { ?>
- <li><a href="<?php p($id); ?>"><?php p($title); ?></a></li>
+ <li id="<?php p($id); ?>"><a href="<?php p($id); ?>"><?php p($title); ?></a></li>
<?php } ?>
<li class="ldapSettingsTabs"><a href="#ldapSettings-3">Expert</a></li>
<li class="ldapSettingsTabs"><a href="#ldapSettings-2">Advanced</a></li>