-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(IN): motivo suspension indicacion
- Loading branch information
plammel
committed
Jun 13, 2022
1 parent
f3cf6f9
commit 2c81e2e
Showing
7 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...rup/mapa-camas/views/plan-indicaciones/motivo-suspension/motivo-suspension.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<form #formMotivoSuspension="ngForm"> | ||
<plex-title titulo="Suspender indicación" size="md"> | ||
<plex-button label="CANCELAR" type="danger" (click)="cancelarSuspension()"></plex-button> | ||
<plex-button [disabled]="!motivo" label="GUARDAR" type="success" (click)="guardarSuspension()"> | ||
</plex-button> | ||
</plex-title> | ||
<plex-text label="Ingrese motivo de suspensión" [(ngModel)]="motivo" name="motivo" grow="full" [required]="true" | ||
multiline="true"> | ||
</plex-text> | ||
</form> |
21 changes: 21 additions & 0 deletions
21
...s/rup/mapa-camas/views/plan-indicaciones/motivo-suspension/motivo-suspension.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Component, Input, Output, EventEmitter } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'suspension-indicacion', | ||
templateUrl: 'motivo-suspension.component.html' | ||
}) | ||
|
||
export class SuspensionIndicacionComponent { | ||
|
||
motivo; | ||
@Output() cancelar = new EventEmitter<boolean>(); | ||
@Output() guardar = new EventEmitter<any>(); | ||
|
||
guardarSuspension() { | ||
this.guardar.emit(this.motivo); | ||
} | ||
|
||
cancelarSuspension() { | ||
this.cancelar.emit(false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters