|
31 | 31 | <div class="flex-fill layout-row-wrap gap-2percent responsive-column" [formGroupName]="i"> |
32 | 32 | <mat-form-field class="flex-fill flex-20"> |
33 | 33 | <mat-label>{{ 'labels.inputs.name' | translate }}</mat-label> |
34 | | - <input required matInput formControlName="name" /> |
| 34 | + <input required matInput formControlName="name" placeholder="{{ 'labels.inputs.name' | translate }}" /> |
35 | 35 | <mat-error *ngIf="codeValues.at(i).controls.name.hasError('required')"> |
36 | 36 | {{ 'labels.inputs.name' | translate }} {{ 'labels.commons.is' | translate }} |
37 | 37 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
40 | 40 |
|
41 | 41 | <mat-form-field class="flex-fill flex-22"> |
42 | 42 | <mat-label>{{ 'labels.inputs.Description' | translate }}</mat-label> |
43 | | - <input matInput formControlName="description" /> |
| 43 | + <input |
| 44 | + matInput |
| 45 | + formControlName="description" |
| 46 | + placeholder="{{ 'labels.inputs.Description' | translate }}" |
| 47 | + /> |
44 | 48 | </mat-form-field> |
45 | 49 |
|
46 | 50 | <mat-form-field class="flex-fill flex-18"> |
47 | 51 | <mat-label>{{ 'labels.inputs.Position' | translate }}</mat-label> |
48 | | - <input required matInput formControlName="position" type="number" /> |
| 52 | + <input |
| 53 | + required |
| 54 | + matInput |
| 55 | + formControlName="position" |
| 56 | + type="number" |
| 57 | + placeholder="{{ 'labels.inputs.Position' | translate }}" |
| 58 | + /> |
49 | 59 | <mat-error *ngIf="codeValues.at(i).controls.position.hasError('required')"> |
50 | 60 | {{ 'labels.inputs.name' | translate }} {{ 'labels.commons.is' | translate }} |
51 | 61 | <strong>{{ 'labels.commons.required' | translate }}</strong> |
|
63 | 73 | <button |
64 | 74 | mat-stroked-button |
65 | 75 | color="primary" |
66 | | - [disabled]="codeValues.at(i).pristine" |
| 76 | + type="button" |
| 77 | + [disabled]="!codeValues.at(i).valid || codeValues.at(i).pristine" |
67 | 78 | (click)="updateCodeValue(i)" |
68 | 79 | *mifosxHasPermission="'UPDATE_CODEVALUE'" |
69 | 80 | > |
70 | 81 | {{ 'labels.buttons.Submit' | translate }} |
71 | 82 | </button> |
72 | 83 | </span> |
73 | | - <button mat-button *ngIf="codeValueRowStatus[i] === 'edit'" (click)="disableRow(i)"> |
| 84 | + <button mat-button type="button" *ngIf="codeValueRowStatus[i] === 'edit'" (click)="disableRow(i)"> |
74 | 85 | {{ 'labels.buttons.Cancel' | translate }} |
75 | 86 | </button> |
76 | 87 | <button |
77 | 88 | mat-icon-button |
78 | 89 | color="primary" |
| 90 | + type="button" |
| 91 | + title="{{ 'tooltips.Add' | translate }}" |
79 | 92 | [disabled]="!codeValuesForm.get('codeValues').at(i).valid" |
80 | 93 | *ngIf="codeValueRowStatus[i] === 'new'" |
81 | 94 | matTooltip="{{ 'tooltips.Add' | translate }}" |
|
87 | 100 | <button |
88 | 101 | type="button" |
89 | 102 | color="primary" |
| 103 | + title="{{ 'tooltips.Edit' | translate }}" |
90 | 104 | *ngIf="codeValueRowStatus[i] === 'disabled'" |
91 | 105 | mat-icon-button |
92 | 106 | matTooltip="{{ 'tooltips.Edit' | translate }}" |
|
98 | 112 | <button |
99 | 113 | type="button" |
100 | 114 | color="warn" |
| 115 | + title="{{ 'tooltips.Delete' | translate }}" |
101 | 116 | mat-icon-button |
102 | 117 | matTooltip="{{ 'tooltips.Delete' | translate }}" |
103 | 118 | *mifosxHasPermission="'DELETE_CODEVALUE'" |
|
0 commit comments