Skip to content

Commit 1ccf74d

Browse files
Bugfix: Fixes population of LDAP group dialog
1 parent 54dabd4 commit 1ccf74d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

structr-base/src/main/resources/structr/js/entities.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,9 +2619,9 @@ let _Entities = {
26192619
let filterInput = $('input#ldap-group-filter');
26202620
let scopeInput = $('input#ldap-group-scope');
26212621

2622+
_Entities.generalTab.populateInputFields(el, entity);
26222623
_Entities.generalTab.registerSimpleInputChangeHandlers(el, entity);
26232624

2624-
// dialog logic here..
26252625
$('.clear-ldap-group-dn', el).on('click', () => { _Entities.generalTab.setNull(entity.id, 'distinguishedName', dnInput); });
26262626
$('.clear-ldap-group-path', el).on('click', () => { _Entities.generalTab.setNull(entity.id, 'path', pathInput); });
26272627
$('.clear-ldap-group-filter', el).on('click', () => { _Entities.generalTab.setNull(entity.id, 'filter', filterInput); });
@@ -3198,32 +3198,32 @@ let _Entities = {
31983198
</div>
31993199
`,
32003200
ldapGroup: config => `
3201-
<div id="ldap-group-config">
3201+
<div id="ldap-group-config" class="flex flex-col gap-3">
32023202
<h3>Synchronize this group using distinguished name (prioritized if set)</h3>
32033203
3204-
<div class="mb-3">
3205-
<input type="text" size="80" id="ldap-group-dn" placeholder="Distinguished Name" name="distinguishedName">
3206-
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-dn', 'icon-lightgrey', 'cursor-pointer']), 'Clear value')}
3204+
<div class="w-full flex items-center gap-2">
3205+
<input type="text" id="ldap-group-dn" placeholder="Distinguished Name" name="distinguishedName">
3206+
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-dn', 'icon-lightgrey', 'cursor-pointer', 'flex-shrink-0']), 'Clear value')}
32073207
</div>
32083208
32093209
<h3>Synchronize this group using path, filter and scope (if distinguished name not set above)</h3>
32103210
3211-
<div class="mb-3">
3212-
<input type="text" size="80" id="ldap-group-path" placeholder="Path" name="path">
3213-
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-path', 'icon-lightgrey', 'cursor-pointer']), 'Clear value')}
3211+
<div class="w-full flex items-center gap-2">
3212+
<input type="text" id="ldap-group-path" placeholder="Path" name="path">
3213+
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-path', 'icon-lightgrey', 'cursor-pointer', 'flex-shrink-0']), 'Clear value')}
32143214
</div>
32153215
3216-
<div class="mb-3">
3217-
<input type="text" size="80" id="ldap-group-filter" placeholder="Filter" name="filter">
3218-
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-filter', 'icon-lightgrey', 'cursor-pointer']), 'Clear value')}
3216+
<div class="w-full flex items-center gap-2">
3217+
<input type="text" id="ldap-group-filter" placeholder="Filter" name="filter">
3218+
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-filter', 'icon-lightgrey', 'cursor-pointer', 'flex-shrink-0']), 'Clear value')}
32193219
</div>
32203220
3221-
<div class="mb-3">
3222-
<input type="text" size="80" id="ldap-group-scope" placeholder="Scope" name="scope">
3223-
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-scope', 'icon-lightgrey', 'cursor-pointer']), 'Clear value')}
3221+
<div class="w-full flex items-center gap-2">
3222+
<input type="text" id="ldap-group-scope" placeholder="Scope" name="scope">
3223+
${_Icons.getSvgIcon(_Icons.iconCrossIcon, 10, 10, _Icons.getSvgIconClassesForColoredIcon(['clear-ldap-group-scope', 'icon-lightgrey', 'cursor-pointer', 'flex-shrink-0']), 'Clear value')}
32243224
</div>
32253225
3226-
<div class="mb-3">
3226+
<div>
32273227
<button type="button" class="action" id="ldap-sync-button">Synchronize now</button>
32283228
</div>
32293229

0 commit comments

Comments
 (0)