estra-e.component.html 1.62 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<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" *ngIf="!cambio"
            (click)="cambiar()">Editar</button>
          <button mat-raised-button color="primary" *ngIf="cambio"
            (click)="onSubmit()">Guardar</button>
          <span class="separator"></span>
          <button mat-raised-button color="warn" *ngIf="cambio"
            (click)="cancelado()">Cancelar</button>
        </div>
      </mat-card-header>
      <mat-card-content>

        <div>
          <label class="label-negrita"> Metas del Programa:</label>
19 20 21 22 23 24 25
            <ckeditor formControlName="metas" class="custom-ckeditor"
            [disabled]="!isEditorEnabled" [style.height]="editorHeight"
            [editor]="Editor"></ckeditor>
          <div *ngIf="myForm.get('metas').hasError('maxlength')"
            class="error-message">
            El contenido no puede exceder los 3000 caracteres.
          </div>
26 27 28 29
        </div>

        <div>
          <label class="label-negrita"> Políticas del Programa para la ejecución de Proyectos:</label>
30 31 32 33 34 35 36
            <ckeditor formControlName="politica" class="custom-ckeditor"
            [disabled]="!isEditorEnabled" [style.height]="editorHeight"
            [editor]="Editor"></ckeditor>
          <div *ngIf="myForm.get('politica').hasError('maxlength')"
            class="error-message">
            El contenido no puede exceder los 3000 caracteres.
          </div>
37 38 39 40 41 42
        </div>

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