comision-eva.component.html 2.65 KB
Newer Older
1
<div class="contenedorP" *ngIf="shouldShowDiv">
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  <div>
    <form [formGroup]="myForm" (ngSubmit)="onUpdate()">
      <mat-label><strong>Asignar la comisión de Evaluación</strong></mat-label>
      <mat-form-field class="form-field">
        <mat-label>Seleccione un Item</mat-label>
        <mat-select formControlName="comision">
          <mat-option *ngFor="let item of comisionA"
            [value]="item.uzytavcabcomca_id">
            {{ item. uzytavcabcomca_decsrip }}
          </mat-option>
        </mat-select>
      </mat-form-field>

      <mat-label><strong>Asignar Parametros de Evaluación</strong></mat-label>
      <mat-form-field class="form-field">
        <mat-label>Seleccione un Item</mat-label>
        <mat-select formControlName="preguntas">
          <mat-option *ngFor="let item of parametroA"
            [value]="item.uzytavconparaeva_id">
            {{ item. uzytavconparaeva_descrip }}
          </mat-option>
        </mat-select>
      </mat-form-field>

      <!--boton para agregar las fechas-->
      <div class="save-button">
        <button mat-raised-button color="primary"
29
          [disabled]="!myForm.valid">Asignar Comisión</button>
30 31 32 33 34 35 36
        <span class="separator"></span>
      </div>
      <div class="separator2"></div>
      <!--fecha de inicio-->
    </form>
  </div>
</div>
37 38

<div class="container">
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
  <div>
    <mat-card class="card">
      <table>
        <thead class="colorsito">
          <tr>
            <th class="colorsito"></th>
            <th class="colorsito">Comsión de Evaluación Asignada para la evalucaión</th>
          </tr>
        </thead>
        <tbody>
          <ng-container *ngFor="let parametro of datos; let i = index">
            <tr id="fila-{{ i }}">
              <td>
                <button (click)="parametro.uzytavcabcomca_id !== null && toggleDiv(i)">
                  <mat-icon>{{ mostrarDiv[i] ? 'keyboard_arrow_down' : 'keyboard_arrow_right' }}</mat-icon>
                </button>
              </td>
              <td>
                <ng-container *ngIf="parametro.uzytavcabcomca_id !== null; else noComision">
                  {{ getNombrePar(parametro.uzytavcabcomca_id) }}
                </ng-container>
                <ng-template #noComision>
                  No se ha asignado Comisión de Evaluación
                </ng-template>
              </td>
            </tr>
            <tr *ngIf="mostrarDiv[i]">
              <div></div>
              <td colspan="5">
                <vex-comision-asig [idProp]="this.parametro.uzytavcabcomca_id"></vex-comision-asig>
              </td>
            </tr>
          </ng-container>
        </tbody>
      </table>
    </mat-card>
75 76
  </div>
</div>