add-objetivos-plnbv.component.html 1.34 KB
Newer Older
1 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 29 30 31 32 33 34 35
<div class="container">
  <div class="contenedor-dos">
    <div class="form-container">
      <form [formGroup]="myForm" (ngSubmit)="onSubmit()">
        <div class="save-button">
          <button mat-raised-button color="primary" [disabled]="myForm.invalid">Guardar</button>

        </div>
        <mat-label><strong>Seleccione el Objetivo del Plan Nacional del Buen
            Vivir</strong></mat-label>
        <mat-form-field class="form-field">
          <mat-label>Seleccione un Item</mat-label>
          <mat-select formControlName="objetivo"
            (selectionChange)="obtenerHijos($event.value)">
            <mat-option *ngFor="let item of obj"
              [value]="item.uzytavobjetivo_b_vivir_id">
              {{ item.uzytavobjetivo_b_vivirdescripcion }}
            </mat-option>
          </mat-select>
        </mat-form-field>

        <mat-label><strong>Seleccione la Política a Agregar</strong></mat-label>
        <mat-form-field class="form-field">
          <mat-label>Seleccione un Item</mat-label>
          <mat-select formControlName="politica">
            <mat-option *ngFor="let item of politicas"
              [value]="item.uzytavobjetivo_b_vivir_id">
              {{ item.uzytavobjetivo_b_vivirdescripcion }}
            </mat-option>
          </mat-select>
        </mat-form-field>
      </form>
    </div>
  </div>
</div>