]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP Wizard: add forgotten templates
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 9 Oct 2013 21:03:45 +0000 (23:03 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 17 Oct 2013 17:13:28 +0000 (19:13 +0200)
apps/user_ldap/templates/part.wizard-groupfilter.php [new file with mode: 0644]
apps/user_ldap/templates/part.wizard-loginfilter.php [new file with mode: 0644]

diff --git a/apps/user_ldap/templates/part.wizard-groupfilter.php b/apps/user_ldap/templates/part.wizard-groupfilter.php
new file mode 100644 (file)
index 0000000..d36c171
--- /dev/null
@@ -0,0 +1,42 @@
+<fieldset id="ldapWizard4">
+       <div>
+               <p>
+                       <?php p($l->t('Limit the access to ownCloud to groups meeting this criteria:'));?>
+               </p>
+               <p>
+                       <label for="ldap_groupfilter_objectclass">
+                               <?php p($l->t('only those object classes:'));?>
+                       </label>
+
+                       <select id="ldap_groupfilter_objectclass" multiple="multiple"
+                        name="ldap_groupfilter_objectclass">
+                       </select>
+               </p>
+               <p>
+                       <label for="ldap_groupfilter_groups">
+                               <?php p($l->t('only from those groups:'));?>
+                       </label>
+
+                       <select id="ldap_groupfilter_groups" multiple="multiple"
+                        name="ldap_groupfilter_groups">
+                       </select>
+               </p>
+               <p>
+                       <label><a id='toggleRawGroupFilter'>↓ <?php p($l->t('Edit raw filter instead'));?></a></label>
+               </p>
+               <p id="rawGroupFilterContainer" class="invisible">
+                       <input type="text" id="ldap_group_filter" name="ldap_group_filter"
+                       class="lwautosave"
+                       placeholder="<?php p($l->t('Raw LDAP filter'));?>"
+                       title="<?php p($l->t('The filter specifies which LDAP groups shall have access to the ownCloud instance.'));?>"
+                       />
+               </p>
+               <p>
+                       <div class="ldapWizardInfo invisible">&nbsp;</div>
+               </p>
+               <p>
+                       <span id="ldap_group_count">0</span> <span><?php p($l->t('group(s) found'));?></span>
+               </p>
+               <?php print_unescaped($_['wizardControls']); ?>
+       </div>
+</fieldset>
\ No newline at end of file
diff --git a/apps/user_ldap/templates/part.wizard-loginfilter.php b/apps/user_ldap/templates/part.wizard-loginfilter.php
new file mode 100644 (file)
index 0000000..4cad659
--- /dev/null
@@ -0,0 +1,37 @@
+<fieldset id="ldapWizard3">
+       <div>
+               <p>
+                       <?php p($l->t('What attribute shall be used as login name:'));?>
+               </p>
+               <p>
+                       <label for="ldap_loginfilter_username">
+                               <?php p($l->t('LDAP Username:'));?>
+                       </label>
+
+                       <input type="checkbox" id="ldap_loginfilter_username"
+                        name="ldap_loginfilter_username" value="1" class="lwautosave" />
+               </p>
+               <p>
+                       <label for="ldap_loginfilter_email">
+                               <?php p($l->t('LDAP Email Adress:'));?>
+                       </label>
+
+                       <input type="checkbox" id="ldap_loginfilter_email"
+                        name="ldap_loginfilter_email" value="1" class="lwautosave" />
+               </p>
+               <p>
+                       <label for="ldap_loginfilter_attributes">
+                               <?php p($l->t('Other Attributes:'));?>
+                       </label>
+
+                       <select id="ldap_loginfilter_attributes" multiple="multiple"
+                        name="ldap_loginfilter_attributes">
+                       </select>
+               </p>
+               <p>
+                       <div class="ldapWizardInfo invisible">&nbsp;</div>
+               </p>
+
+               <?php print_unescaped($_['wizardControls']); ?>
+       </div>
+</fieldset>
\ No newline at end of file