From 685c13e091e25b6df0b93285446e61bdc4d7315b Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 13 Feb 2019 12:42:41 +0100 Subject: add GUI option to set the $home placeholder Signed-off-by: Arthur Schiwon --- apps/user_ldap/js/wizard/wizardTabAdvanced.js | 15 ++++++++++++++- apps/user_ldap/templates/settings.php | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/js/wizard/wizardTabAdvanced.js b/apps/user_ldap/js/wizard/wizardTabAdvanced.js index 9302104b1f6..1545147f64c 100644 --- a/apps/user_ldap/js/wizard/wizardTabAdvanced.js +++ b/apps/user_ldap/js/wizard/wizardTabAdvanced.js @@ -120,7 +120,11 @@ OCA = OCA || {}; home_folder_naming_rule: { $element: $('#home_folder_naming_rule'), setMethod: 'setHomeFolderAttribute' - } + }, + ldap_ext_storage_home_attribute: { + $element: $('#ldap_ext_storage_home_attribute'), + setMethod: 'setExternalStorageHomeAttribute' + }, }; this.setManagedItems(items); }, @@ -326,6 +330,15 @@ OCA = OCA || {}; this.setElementValue(this.managedItems.ldap_email_attr.$element, attribute); }, + /** + * sets the external storage home attribute + * + * @param {string} attribute + */ + setExternalStorageHomeAttribute: function(attribute) { + this.setElementValue(this.managedItems.ldap_ext_storage_home_attribute.$element, attribute); + }, + /** * sets the quota attribute * diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php index 6d69d0aeb15..7c41363c635 100644 --- a/apps/user_ldap/templates/settings.php +++ b/apps/user_ldap/templates/settings.php @@ -108,6 +108,7 @@ style('user_ldap', 'settings');

+

-- cgit v1.2.3