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

FEAT #14004 TIME 0:20 Display received date for distributed AR reception

parent 06353070
No related branches found
No related tags found
No related merge requests found
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
<form style="display: contents;" [formGroup]="adminFormGroup"> <form style="display: contents;" [formGroup]="adminFormGroup">
<div> <div>
<mat-form-field> <mat-form-field>
<mat-select [(ngModel)]="type" (ngModelChange)="focusRegisteredMailNumber()" placeholder="{{'lang.returnType' | translate}}" formControlName="type"> <mat-select [(ngModel)]="type" (ngModelChange)="focusRegisteredMailNumber();receivedDate = today" placeholder="{{'lang.returnType' | translate}}" formControlName="type">
<mat-option [value]="'distributed'">{{'lang.registeredMailDistributed' | translate}}</mat-option> <mat-option [value]="'distributed'">{{'lang.registeredMailDistributed' | translate}}</mat-option>
<mat-option [value]="'notDistributed'">{{'lang.registeredMailNotDistributed' | translate}}</mat-option> <mat-option [value]="'notDistributed'">{{'lang.registeredMailNotDistributed' | translate}}</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field *ngIf="type === 'notDistributed'" (click)="picker.open()" appearance="outline" style="cursor:pointer;margin-top: 10px;"> <mat-form-field *ngIf="type === 'notDistributed' || type === 'distributed'" (click)="picker.open()" appearance="outline" style="cursor:pointer;margin-top: 10px;">
<mat-label>{{'lang.registeredMailReceivedDate' | translate}}</mat-label> <mat-label>{{'lang.registeredMailReceivedDate' | translate}}</mat-label>
<input matInput [(ngModel)]="receivedDate" [matDatepicker]="picker" <input matInput [(ngModel)]="receivedDate" [matDatepicker]="picker" [disabled]="type === 'distributed'"
[placeholder]="this.translate.instant('lang.chooseDate')" [max]="today" readonly style="cursor:pointer;" formControlName="receivedDate" required> [placeholder]="this.translate.instant('lang.chooseDate')" [max]="today" readonly style="cursor:pointer;" formControlName="receivedDate" required>
<mat-datepicker-toggle matSuffix [for]="picker" *ngIf="!receivedDate"> <mat-datepicker-toggle matSuffix [for]="picker" *ngIf="!receivedDate">
</mat-datepicker-toggle> </mat-datepicker-toggle>
......
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