Skip to content
Snippets Groups Projects
Verified Commit dbf04478 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12070 TIME 0:30 object object in list custom field

parent d47cf634
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
"author": "Maarch",
"license": "GPL-3.0",
"dependencies": {
"@fortawesome/fontawesome-free": "^5.10.2",
"@fortawesome/fontawesome-free": "^5.11.2",
"bootstrap": "^3.4.1",
"chart.js": "1.1.1",
"chosen-js": "^1.8.7",
......
......@@ -49,41 +49,6 @@ export class IndexingModelAdministrationComponent implements OnInit {
creationMode: boolean = true;
availableFields: any[] = [
{
identifier: 'priority',
label: this.lang.priority,
type: 'select',
values: []
},
{
identifier: 'confidential',
label: this.lang.confidential,
type: 'radio',
values: [{'id': 'true', 'label': 'Oui'}, {'id': 'false', 'label': 'Non'}]
},
{
identifier: 'initiator',
label: this.lang.initiator,
type: 'select',
values: []
},
{
identifier: 'processLimitDate',
label: this.lang.processLimitDate,
type: 'date',
values: []
},
{
identifier: 'arrivalDate',
label: this.lang.arrivalDate,
type: 'date',
values: []
}
];
availableCustomFields: any[] = [];
categoriesList: any [];
constructor(
......
......@@ -48,7 +48,7 @@
</ng-container>
<ng-container *ngIf="field.type === 'checkbox'">
<div class="input-form checkbox-form">
<mat-selection-list #checkboxElement class="div-list" disabled>
<mat-selection-list #checkboxCustomElement class="div-list" disabled>
<mat-list-option *ngFor="let value of field.values" [value]="value.id"
checkboxPosition="before">
{{value.label}}
......@@ -56,7 +56,7 @@
</mat-selection-list>
</div>
<mat-chip-list class="checkbox-selected-list">
<mat-chip *ngFor="let chip of checkboxElement.selectedOptions.selected" selected>
<mat-chip *ngFor="let chip of checkboxCustomElement.selectedOptions.selected" selected>
{{lang.selectedValue}}
</mat-chip>
</mat-chip-list>
......@@ -111,22 +111,22 @@
</ng-container>
<ng-container *ngIf="field.type === 'radio'">
<mat-radio-group class="radio-form" color="primary" disabled>
<mat-radio-button *ngFor="let value of field.values" [value]="value">
{{value}}
<mat-radio-button *ngFor="let value of field.values" [value]="value.id">
{{value.label}}
</mat-radio-button>
</mat-radio-group>
</ng-container>
<ng-container *ngIf="field.type === 'checkbox'">
<div class="input-form checkbox-form">
<mat-selection-list #shoes class="div-list" disabled>
<mat-list-option *ngFor="let value of field.values" [value]="value"
<mat-selection-list #checkboxElement class="div-list" disabled>
<mat-list-option *ngFor="let value of field.values" [value]="value.id"
checkboxPosition="before">
{{value}}
{{value.label}}
</mat-list-option>
</mat-selection-list>
</div>
<mat-chip-list class="checkbox-selected-list">
<mat-chip *ngFor="let chip of shoes.selectedOptions.selected" selected>
<mat-chip *ngFor="let chip of checkboxElement.selectedOptions.selected" selected>
{{lang.selectedValue}}
</mat-chip>
</mat-chip-list>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment