|
|
@@ -23,18 +23,31 @@
|
|
|
</mat-form-field>
|
|
|
<mat-form-field style="width: 200px; margin-left: 20px; margin-right: 20px; margin-top: 5px;">
|
|
|
<mat-label>Filtrar por:</mat-label>
|
|
|
- <mat-select (selectionChange)="option($event.value)">
|
|
|
+ <mat-select (selectionChange)="onFiltroChange($event.value)">
|
|
|
<mat-option value="FE">Fecha de entrega</mat-option>
|
|
|
- <mat-option value="FA">Fecha de asigación</mat-option>
|
|
|
+ <mat-option value="FA">Fecha de asignación</mat-option>
|
|
|
<mat-option value="MAT">Materia</mat-option>
|
|
|
</mat-select>
|
|
|
</mat-form-field>
|
|
|
- <mat-form-field class="input" style="width: 200px; margin-left: 20px; margin-right: 20px; margin-top: 5px;">
|
|
|
- <mat-label>Input disabled</mat-label>
|
|
|
- <input matInput [matDatepicker]="dp3" disabled>
|
|
|
- <mat-hint>MM/DD/YYYY</mat-hint>
|
|
|
- <mat-datepicker-toggle matIconSuffix [for]="dp3"></mat-datepicker-toggle>
|
|
|
- <mat-datepicker #dp3 disabled="false"></mat-datepicker>
|
|
|
+
|
|
|
+ <!-- Si se elige "Fecha de entrega" o "Fecha de asignación" -->
|
|
|
+ <mat-form-field *ngIf="filtroSeleccionado === 'FE' || filtroSeleccionado === 'FA'" class="input"
|
|
|
+ style="width: 200px; margin-left: 20px; margin-right: 20px; margin-top: 5px;">
|
|
|
+ <mat-label>Seleccionar fecha</mat-label>
|
|
|
+ <input matInput [matDatepicker]="picker" (dateChange)="onFechaSeleccionada($event)">
|
|
|
+ <mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
|
|
|
+ <mat-datepicker #picker></mat-datepicker>
|
|
|
+ </mat-form-field>
|
|
|
+
|
|
|
+ <!-- Si se elige "Materia" -->
|
|
|
+ <mat-form-field *ngIf="filtroSeleccionado === 'MAT'"
|
|
|
+ style="width: 200px; margin-left: 20px; margin-right: 20px; margin-top: 5px;">
|
|
|
+ <mat-label>Seleccionar materia</mat-label>
|
|
|
+ <mat-select (selectionChange)="onMateriaSeleccionada($event.value)">
|
|
|
+ <mat-option *ngFor="let materia of materias" [value]="materia.id">
|
|
|
+ {{ materia.nombre }}
|
|
|
+ </mat-option>
|
|
|
+ </mat-select>
|
|
|
</mat-form-field>
|
|
|
<button class="button-modal" [style.background-color]="color" (click)="openDialog()">
|
|
|
<mat-icon class="icon" [style.color]="textColor">add</mat-icon>
|