+ {attributes.map((attr) => (
+
{
+ setAttributes((prevAttrs) => prevAttrs.map((a) => {
+ if (a.id === attr.id) {
+ return {
+ ...a,
+ attrs: {
+ ...a.attrs,
+ [attributeKey]: newValue,
+ },
+ };
+ }
+ return a;
+ }));
+ props.setSaveNeeded();
+ }}
+ setByEnv={false}
+ disabled={props.isDisabled}
+ placeholder={{id: 'admin.customProfileAttr.placeholder', defaultMessage: 'E.g.: "fieldName"'}}
+ helpText={
+
+ }
+ />
+ ))}
+
);
diff --git a/webapp/channels/src/components/admin_console/ldap_wizard/ldap_button_setting.tsx b/webapp/channels/src/components/admin_console/ldap_wizard/ldap_button_setting.tsx
index dec9d91a3a..ef1088085c 100644
--- a/webapp/channels/src/components/admin_console/ldap_wizard/ldap_button_setting.tsx
+++ b/webapp/channels/src/components/admin_console/ldap_wizard/ldap_button_setting.tsx
@@ -97,15 +97,15 @@ const LDAPButtonSetting = (props: Props) => {
const ldapButtonMessages = defineMessages({
testFiltersPartialFailure: {
id: 'admin.ldap.testFiltersPartialFailure',
- defaultMessage: '{failedCount, number} of {totalCount, number} filter test{totalCount, plural, one {} other {s}} failed. Check the highlighted fields for details.',
+ defaultMessage: '{failedCount, number} of {totalCount, number} filter {totalCount, plural, one {test} other {tests}} failed. Check the highlighted fields for details.',
},
testAttributesPartialFailure: {
id: 'admin.ldap.testAttributesPartialFailure',
- defaultMessage: '{failedCount, number} of {totalCount, number} attribute test{totalCount, plural, one {} other {s}} failed. Check the highlighted fields for details.',
+ defaultMessage: '{failedCount, number} of {totalCount, number} attribute {totalCount, plural, one {test} other {tests}} failed. Check the highlighted fields for details.',
},
testGroupAttributesPartialFailure: {
id: 'admin.ldap.testGroupAttributesPartialFailure',
- defaultMessage: '{failedCount, number} of {totalCount, number} group attribute test{totalCount, plural, one {} other {s}} failed. Check the highlighted fields for details.',
+ defaultMessage: '{failedCount, number} of {totalCount, number} group attribute {totalCount, plural, one {test} other {tests}} failed. Check the highlighted fields for details.',
},
});
diff --git a/webapp/channels/src/components/admin_console/ldap_wizard/ldap_text_setting.tsx b/webapp/channels/src/components/admin_console/ldap_wizard/ldap_text_setting.tsx
index e79541d996..5325c635e9 100644
--- a/webapp/channels/src/components/admin_console/ldap_wizard/ldap_text_setting.tsx
+++ b/webapp/channels/src/components/admin_console/ldap_wizard/ldap_text_setting.tsx
@@ -210,11 +210,11 @@ function isGroupAttributeTest(testResult: LdapDiagnosticResult | null) {
const ldapTestMessages = defineMessages({
filterTestSuccess: {
id: 'admin.ldap.filterTestSuccess',
- defaultMessage: 'Filter test successful: {countReturned, number} result{countReturned, plural, one {} other {s}} found{showTestValue, select, true {. Value used: {testValue}} other {}}',
+ defaultMessage: 'Filter test successful: {countReturned, number} {countReturned, plural, one {result} other {results}} found{showTestValue, select, true {. Value used: {testValue}} other {}}',
},
attributeTestSuccess: {
id: 'admin.ldap.attributeTestSuccess',
- defaultMessage: 'Attribute test successful: {countReturned, number} result{countReturned, plural, one {} other {s}} found out of {totalCount} user{totalCount, plural, one {} other {s}} returned by the user filter',
+ defaultMessage: 'Attribute test successful: {countReturned, number} {countReturned, plural, one {result} other {results}} found out of {totalCount} {totalCount, plural, one {user} other {users}} returned by the user filter',
},
filterTestWarning: {
id: 'admin.ldap.filterTestWarning',
@@ -222,7 +222,7 @@ const ldapTestMessages = defineMessages({
},
attributeTestWarning: {
id: 'admin.ldap.attributeTestWarning',
- defaultMessage: 'The attribute was not found in any of the {totalCount} user{totalCount, plural, one {} other {s}} returned by the user filter',
+ defaultMessage: 'The attribute was not found in any of the {totalCount} {totalCount, plural, one {user} other {users}} returned by the user filter',
},
filterTestFailed: {
id: 'admin.ldap.filterTestFailed',
@@ -234,11 +234,11 @@ const ldapTestMessages = defineMessages({
},
groupAttributeTestSuccess: {
id: 'admin.ldap.groupAttributeTestSuccess',
- defaultMessage: 'Group attribute test successful: {countReturned, number} result{countReturned, plural, one {} other {s}} found out of {totalCount} group{totalCount, plural, one {} other {s}} returned by the group filter',
+ defaultMessage: 'Group attribute test successful: {countReturned, number} {countReturned, plural, one {result} other {results}} found out of {totalCount} {totalCount, plural, one {group} other {groups}} returned by the group filter',
},
groupAttributeTestWarning: {
id: 'admin.ldap.groupAttributeTestWarning',
- defaultMessage: 'The group attribute was not found in any of the {totalCount} group{totalCount, plural, one {} other {s}} returned by the group filter',
+ defaultMessage: 'The group attribute was not found in any of the {totalCount} {totalCount, plural, one {group} other {groups}} returned by the group filter',
},
groupAttributeTestFailed: {
id: 'admin.ldap.groupAttributeTestFailed',
diff --git a/webapp/channels/src/components/admin_console/ldap_wizard/ldap_wizard.scss b/webapp/channels/src/components/admin_console/ldap_wizard/ldap_wizard.scss
index bf4eb1506d..c231c91386 100644
--- a/webapp/channels/src/components/admin_console/ldap_wizard/ldap_wizard.scss
+++ b/webapp/channels/src/components/admin_console/ldap_wizard/ldap_wizard.scss
@@ -12,7 +12,19 @@
margin-top: 32px;
.section-body {
+ // reminder: top | left and right | bottom
padding: 32px 48px 48px;
+
+ // Custom components are sometimes nested, but don't do their horizontal spacing again
+ .section-header {
+ // reminder: top | left and right | bottom
+ padding: 48px 0 0;
+ }
+ }
+
+ .custom-section-body {
+ // reminder: top | left and right | bottom
+ padding: 32px 0 0;
}
&:first-child {