add-compromiso.component.html 3.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 36 37 38 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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
<div class="container">

  <form class="example-form" [formGroup]="myForm" (ngSubmit)="onSubmit()">
    <mat-card>
      <mat-card-header>
        <div class="save-button">
          <button mat-raised-button color="primary"
            [disabled]="myForm.invalid">Guardar</button>
        </div>
      </mat-card-header>

      <mat-card-content>

        <div class="form-row">
          <div class="form-column">
            <div>
              <mat-label><strong>TIPO DE ENTIDAD</strong></mat-label>
            </div>
            <div class="sepa">
              <mat-radio-group class="sube" formControlName="entidad">
                <mat-radio-button *ngFor="let entidad of entidad" [value]="entidad.uzytparametros_det_id">{{ entidad.uzytparametros_det_descripcion}} </mat-radio-button>
              </mat-radio-group>
            </div>

            <mat-label><strong>INSTITUCIÓN O COMUNIDAD</strong></mat-label>

            <mat-form-field>
              <mat-label>Nombre:</mat-label>
              <mat-select formControlName="nombreI"
                placeholder="Nombre del Proyecto" (selectionChange)="onInstitucionSelected($event.value)">
                <mat-option *ngFor="let item2 of institu" [value]="item2.uzytavinstituc_id">{{item2.uzytavinstituc_nombre}}</mat-option>
              </mat-select>
            </mat-form-field>

            <mat-form-field>
              <mat-label>Provincia:</mat-label>
              <input matInput formControlName="provinciaI">
            </mat-form-field>

            <mat-form-field>
              <mat-label>Dirección</mat-label>
              <input matInput formControlName="direccionI">
            </mat-form-field>

            <mat-form-field>
              <mat-label>Tipo de Organización</mat-label>
              <mat-select formControlName="organizacionI">
                <mat-option *ngFor="let item of orga" [value]="item.uzytparametros_det_id">{{item.uzytparametros_det_descripcion}}</mat-option>
              </mat-select>
            </mat-form-field>

          </div>

          <div class="form-column">

            <mat-label><strong>REPRESENTANTE LEGAL Y/O RESPONSABLE</strong></mat-label>

            <mat-form-field>
              <mat-label>Nombres</mat-label>
              <input matInput [disabled]="true" formControlName="nombreR">
            </mat-form-field>

            <mat-form-field>
              <mat-label>Apellido</mat-label>
              <input matInput [disabled]="true" formControlName="apellidoR">
            </mat-form-field>

            <mat-form-field>
              <mat-label>Cargo</mat-label>
              <input matInput [disabled]="true" formControlName="cargoR">
            </mat-form-field>

            <mat-form-field>
              <mat-label>Correo Electronico</mat-label>
              <input matInput placeholder="Correo Institucional"
                formControlName="correoR">
            </mat-form-field>

            <mat-form-field>
              <mat-label>Telefono</mat-label>
              <input matInput placeholder="Telefono Director"
                formControlName="telefonoR">
            </mat-form-field>

            <mat-form-field>
              <mat-label>Declaración</mat-label>
              <input matInput formControlName="declaracion">
            </mat-form-field>
          </div>

        </div>

      </mat-card-content>
    </mat-card>
  </form>
</div>