Skip to content

Feature cfm150 autocomplete #167

merged 38 commits into from Mar 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1999c79
Autocomplete widget added for selecting a Group member (CFM-150) (#164)
arlen Mar 6, 2024
fc0fdc4
add primevue autocomplete library dependency
Ioannis Mar 10, 2024
b0068fe
Improve/cleanup backend block search functionality
Ioannis Mar 10, 2024
66839d8
Decloupe where clause construction from join clause construction
Ioannis Mar 10, 2024
2dbc1a2
Improve filtering.Dynamically construct where clause using QueryExpre…
Ioannis Mar 10, 2024
060dfe6
Introduce IndexQueryTrait
Ioannis Mar 10, 2024
aa73e23
fix broken mveaType query.Improve Changelog.
Ioannis Mar 10, 2024
1311315
first get request
Ioannis Mar 10, 2024
a8ba9c9
add CoSettings PeoplePicker Configuration
Ioannis Mar 11, 2024
c0305b9
fix condition
Ioannis Mar 12, 2024
8b061f1
Improve FieldHelper
Ioannis Mar 12, 2024
17f32c7
Properly align grouped html controls
Ioannis Mar 12, 2024
4a805f8
Add type to emails and identifiers
Ioannis Mar 12, 2024
72171d4
Add loader.Improve fetch response handling
Ioannis Mar 13, 2024
bf41aa5
Added loader. Fixed duplicates.
Ioannis Mar 13, 2024
0d06b3d
typo fix
Ioannis Mar 13, 2024
a18c993
add filtering with given and family name. Fetch only active users.
Ioannis Mar 13, 2024
0954ba4
refactor frontend error handling
Ioannis Mar 13, 2024
941ffd2
add subfield-col css rule
Ioannis Mar 13, 2024
86fe75b
Peoplepikcer enum
Ioannis Mar 14, 2024
c8a0104
Provide access to configurations locally and globally.Improve fetch i…
Ioannis Mar 15, 2024
238de1a
fix url string
Ioannis Mar 15, 2024
0b3dec0
fix provide/inject functionality
Ioannis Mar 15, 2024
4acb787
Add a subcomponent for item-with-type and style things for easier vis…
arlen Mar 15, 2024
567d656
highlight query string
Ioannis Mar 15, 2024
f4009bb
highlighting fix
Ioannis Mar 15, 2024
a0ab929
sort methods by name
Ioannis Mar 15, 2024
af96643
Add item-id to autocomplete label and update color file (CFM-150)
arlen Mar 15, 2024
f885ca9
Add pager link "show more" to autocomplete (CFM-150)
arlen Mar 15, 2024
f02eaee
Fix label id reference for autocomplete field (CFM-150)
arlen Mar 15, 2024
134c18f
Implement pagination
Ioannis Mar 15, 2024
04a8bb2
filter the active GroupMembers
Ioannis Mar 16, 2024
e5f710a
Refactor GroupMembersTable::isMember Query construction
Ioannis Mar 16, 2024
d8eae4f
Update Group Member listing to expose add / edit / view in a modal wi…
arlen Mar 19, 2024
a8c32b0
Move the person picker to the index of the Group Member list and laun…
arlen Mar 21, 2024
123702d
Add scrolling to the autocomplete people picker (CFM-150)
arlen Mar 21, 2024
2ee562c
removed trailing semi colon
Ioannis Mar 21, 2024
c1c0f69
Change default modal title (CFM-150)
arlen Mar 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Properly align grouped html controls
Ioannis committed Mar 13, 2024
commit 17f32c7e2d0b6703004d22a9323e8a20af5180ab
31 changes: 14 additions & 17 deletions app/src/View/Helper/FieldHelper.php
@@ -386,7 +386,10 @@ protected function formInfoDiv(string $content,
}

/**
* Generate a form info (control, value) box.
* Create grouped control elements. By default, the elements will be placed one after the other, inline,
* with a direction left to right. For that need to occupy the whole row we defined the 'singleRowItem'
* configuration property that will add an inline Bootstrap css rule. The rule will override the default
* behavior
*
* @param array $fields
* @param string $pseudoFieldName
@@ -397,24 +400,18 @@ protected function formInfoDiv(string $content,
* @since COmanage Registry v5.0.0
*/

public function formInfoWithMultipleControls(array $fields,
string $pseudoFieldName,
string $beforeField = '',
string $afterField = ''): string {
public function groupedControls(array $fields,
string $pseudoFieldName,
string $beforeField = '',
string $afterField = ''): string {
$content = '';
foreach ($fields as $fieldName => $fieldOptions) {
if(isset($fieldOptions['type'])
&& $fieldOptions['type'] == 'checkbox') {
$content .= '<div class="checkbox">' . PHP_EOL;
$content .= $this->formControl($fieldName) . PHP_EOL;
$content .= '</div>' . PHP_EOL;
} else {
$content .= '<div class="subfield subfield-cols">' . PHP_EOL;
$content .= '<div class="field-col">' . PHP_EOL;
$content .= $this->formControl($fieldName, $fieldOptions['options'] ?? []) . PHP_EOL;
$content .= '</div>' . PHP_EOL;
$content .= '</div>' . PHP_EOL;
}
$dblock = isset($fieldOptions['singleRowItem']) && $fieldOptions['singleRowItem'] ? 'd-block' : '';
$content .= "<div class='subfield subfield-cols {$dblock}'>" . PHP_EOL;
$content .= '<div class="field-col">' . PHP_EOL;
$content .= $this->formControl($fieldName, $fieldOptions['options'] ?? []) . PHP_EOL;
$content .= '</div>' . PHP_EOL;
$content .= '</div>' . PHP_EOL;
}
$mn = $this->modelName;

6 changes: 3 additions & 3 deletions app/templates/CoSettings/fields.inc
@@ -54,7 +54,7 @@ if($vv_action == 'edit') {

print $this->Field->control('search_global_limited_models');

print $this->Field->formInfoWithMultipleControls(
print $this->Field->groupedControls(
[
'person_picker_email_address_type_id' => [
'options' => [
@@ -69,8 +69,8 @@ if($vv_action == 'edit') {
],
],
'person_picker_display_types' => [
'type' => 'checkbox'
],
'singleRowItem' => true
]
],
'person_picker_display_fields'
);