Add survey template preview in edit survey template
This commit is contained in:
parent
a39ad439a5
commit
25e38f1945
|
@ -91,7 +91,7 @@
|
|||
<td>{{ plantilla.categoria?.nombre }}</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button
|
||||
<!-- <button
|
||||
type="submit"
|
||||
[routerLink]="['/plantilla', plantilla.id, 'view']"
|
||||
class="ds-btn ds-btn--secondary btn-sm"
|
||||
|
@ -99,7 +99,7 @@
|
|||
>
|
||||
<fa-icon icon="eye"></fa-icon>
|
||||
<span class="d-none d-md-inline">Vista previa</span>
|
||||
</button>
|
||||
</button> -->
|
||||
<button
|
||||
type="submit"
|
||||
[routerLink]="['/plantilla', plantilla.id, 'edit']"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<p class="ds-title ds-contenteditable" contenteditable="true" spellcheck="false" (blur)="updateTemplateName($event)">
|
||||
{{ plantilla!.nombre }}
|
||||
</p>
|
||||
<fa-icon class="ds-info--icon" [icon]="faEye" (click)="openPreview()"></fa-icon>
|
||||
</div>
|
||||
|
||||
<p class="ds-subtitle">Creada el día {{ plantilla!.fechaCreacion | formatShortDatetime | lowercase }}</p>
|
||||
|
|
|
@ -186,7 +186,7 @@ export class PlantillaUpdateComponent implements OnInit, AfterViewChecked {
|
|||
|
||||
openPreview() {
|
||||
const surveyId = this.plantilla?.id;
|
||||
this.router.navigate(['/plantilla', surveyId, 'preview']);
|
||||
this.router.navigate(['/plantilla', surveyId, 'view']);
|
||||
}
|
||||
|
||||
resetForm(event: any): void {
|
||||
|
|
Loading…
Reference in New Issue