From fce41b20d8843ca245d2e7863de2e728c8e487f8 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Mon, 23 Sep 2019 19:21:29 +0200
Subject: [PATCH] FIX #11269 TIME 0:10 disable input field list

---
 .../field-list/field-list.component.html      | 24 +++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/frontend/app/indexation/field-list/field-list.component.html b/src/frontend/app/indexation/field-list/field-list.component.html
index 2de1338e88c..3e826f8eb60 100644
--- a/src/frontend/app/indexation/field-list/field-list.component.html
+++ b/src/frontend/app/indexation/field-list/field-list.component.html
@@ -13,17 +13,17 @@
                 <ng-container *ngIf="field.type === 'string'">
                     <mat-form-field class="input-form" floatLabel="never">
                         <textarea matInput [placeholder]="lang[field.type + 'Input']" matTextareaAutosize
-                            matAutosizeMinRows="1" cdkAutosizeMaxRows="6"></textarea>
+                            matAutosizeMinRows="1" cdkAutosizeMaxRows="6" disabled></textarea>
                     </mat-form-field>
                 </ng-container>
                 <ng-container *ngIf="field.type === 'integer'">
                     <mat-form-field class="input-form" floatLabel="never">
-                        <input type="number" matInput [placeholder]="lang[field.type + 'Input']">
+                        <input type="number" matInput [placeholder]="lang[field.type + 'Input']" disabled>
                     </mat-form-field>
                 </ng-container>
                 <ng-container *ngIf="field.type === 'select'">
                     <mat-form-field class="input-form" floatLabel="never">
-                        <mat-select [placeholder]="lang[field.type + 'Input']">
+                        <mat-select [placeholder]="lang[field.type + 'Input']" disabled>
                             <mat-option *ngFor="let value of field.values" [value]="value">
                                 {{value}}
                             </mat-option>
@@ -33,14 +33,14 @@
                 <ng-container *ngIf="field.type === 'date'">
                     <mat-form-field class="input-form" floatLabel="never">
                         <input matInput [matDatepicker]="picker" [placeholder]="lang[field.type + 'Input']"
-                            (click)="picker.open()">
+                            (click)="picker.open()" disabled>
                         <mat-datepicker-toggle matSuffix [for]="picker">
                         </mat-datepicker-toggle>
                         <mat-datepicker #picker></mat-datepicker>
                     </mat-form-field>
                 </ng-container>
                 <ng-container *ngIf="field.type === 'radio'">
-                    <mat-radio-group class="radio-form" color="primary">
+                    <mat-radio-group class="radio-form" color="primary" disabled>
                         <mat-radio-button *ngFor="let value of field.values" [value]="value">
                             {{value}}
                         </mat-radio-button>
@@ -48,7 +48,7 @@
                 </ng-container>
                 <ng-container *ngIf="field.type === 'checkbox'">
                     <div class="input-form checkbox-form">
-                        <mat-selection-list #shoes class="div-list">
+                        <mat-selection-list #shoes class="div-list" disabled>
                             <mat-list-option *ngFor="let value of field.values" [value]="value"
                                 checkboxPosition="before">
                                 {{value}}
@@ -83,17 +83,17 @@
                 <ng-container *ngIf="field.type === 'string'">
                     <mat-form-field class="input-form" floatLabel="never">
                         <textarea matInput [placeholder]="lang[field.type + 'Input']" matTextareaAutosize
-                            matAutosizeMinRows="1" cdkAutosizeMaxRows="6"></textarea>
+                            matAutosizeMinRows="1" cdkAutosizeMaxRows="6" disabled></textarea>
                     </mat-form-field>
                 </ng-container>
                 <ng-container *ngIf="field.type === 'integer'">
                     <mat-form-field class="input-form" floatLabel="never">
-                        <input type="number" matInput [placeholder]="lang[field.type + 'Input']">
+                        <input type="number" matInput [placeholder]="lang[field.type + 'Input']" disabled>
                     </mat-form-field>
                 </ng-container>
                 <ng-container *ngIf="field.type === 'select'">
                     <mat-form-field class="input-form" floatLabel="never">
-                        <mat-select [placeholder]="lang[field.type + 'Input']">
+                        <mat-select [placeholder]="lang[field.type + 'Input']" disabled>
                             <mat-option *ngFor="let value of field.values" [value]="value">
                                 {{value}}
                             </mat-option>
@@ -103,14 +103,14 @@
                 <ng-container *ngIf="field.type === 'date'">
                     <mat-form-field class="input-form" floatLabel="never">
                         <input matInput [matDatepicker]="picker" [placeholder]="lang[field.type + 'Input']"
-                            (click)="picker.open()">
+                            (click)="picker.open()" disabled>
                         <mat-datepicker-toggle matSuffix [for]="picker">
                         </mat-datepicker-toggle>
                         <mat-datepicker #picker></mat-datepicker>
                     </mat-form-field>
                 </ng-container>
                 <ng-container *ngIf="field.type === 'radio'">
-                    <mat-radio-group class="radio-form" color="primary">
+                    <mat-radio-group class="radio-form" color="primary" disabled>
                         <mat-radio-button *ngFor="let value of field.values" [value]="value">
                             {{value}}
                         </mat-radio-button>
@@ -118,7 +118,7 @@
                 </ng-container>
                 <ng-container *ngIf="field.type === 'checkbox'">
                     <div class="input-form checkbox-form">
-                        <mat-selection-list #shoes class="div-list">
+                        <mat-selection-list #shoes class="div-list" disabled>
                             <mat-list-option *ngFor="let value of field.values" [value]="value"
                                 checkboxPosition="before">
                                 {{value}}
-- 
GitLab