Update preview survey button position
This commit is contained in:
parent
2b1c62a013
commit
306a2a0aaf
|
@ -9,6 +9,7 @@
|
||||||
data-target="#verParametros"
|
data-target="#verParametros"
|
||||||
(click)="loadAplicationParameters()"
|
(click)="loadAplicationParameters()"
|
||||||
></fa-icon>
|
></fa-icon>
|
||||||
|
<fa-icon class="ds-info--icon" [icon]="faEye" (click)="openPreview()"></fa-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="ds-subtitle">Creada el día {{ encuesta!.fechaCreacion | formatShortDatetime | lowercase }}</p>
|
<p class="ds-subtitle">Creada el día {{ encuesta!.fechaCreacion | formatShortDatetime | lowercase }}</p>
|
||||||
|
@ -31,15 +32,6 @@
|
||||||
>
|
>
|
||||||
<fa-icon icon="sync" [icon]="faPlus"></fa-icon> <span>Crear pregunta</span>
|
<fa-icon icon="sync" [icon]="faPlus"></fa-icon> <span>Crear pregunta</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="ds-btn ds-btn--success" (click)="openPreview()" [disabled]="isLoading">
|
|
||||||
<fa-icon [icon]="faPollH"></fa-icon> <span>Ver vista previa</span>
|
|
||||||
</button>
|
|
||||||
<ng-container *ngIf="encuesta!.estado === 'DRAFT'">
|
|
||||||
<button type="button" class="ds-btn ds-btn--primary" (click)="publishSurvey()">Publicar encuesta</button>
|
|
||||||
</ng-container>
|
|
||||||
<ng-container *ngIf="encuesta!.estado === 'ACTIVE'">
|
|
||||||
<button type="button" class="ds-btn ds-btn--danger" (click)="finishSurvey()">Finalizar encuesta</button>
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import { IEPreguntaCerrada } from 'app/entities/e-pregunta-cerrada/e-pregunta-ce
|
||||||
import { EPreguntaCerradaService } from 'app/entities/e-pregunta-cerrada/service/e-pregunta-cerrada.service';
|
import { EPreguntaCerradaService } from 'app/entities/e-pregunta-cerrada/service/e-pregunta-cerrada.service';
|
||||||
import { EPreguntaCerradaDeleteDialogComponent } from 'app/entities/e-pregunta-cerrada/delete/e-pregunta-cerrada-delete-dialog.component';
|
import { EPreguntaCerradaDeleteDialogComponent } from 'app/entities/e-pregunta-cerrada/delete/e-pregunta-cerrada-delete-dialog.component';
|
||||||
|
|
||||||
import { faTimes, faPlus, faQuestion, faPollH } from '@fortawesome/free-solid-svg-icons';
|
import { faTimes, faPlus, faQuestion, faPollH, faEye } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { PreguntaCerradaTipo } from 'app/entities/enumerations/pregunta-cerrada-tipo.model';
|
import { PreguntaCerradaTipo } from 'app/entities/enumerations/pregunta-cerrada-tipo.model';
|
||||||
import { EncuestaDeleteQuestionDialogComponent } from '../encuesta-delete-question-dialog/encuesta-delete-question-dialog.component';
|
import { EncuestaDeleteQuestionDialogComponent } from '../encuesta-delete-question-dialog/encuesta-delete-question-dialog.component';
|
||||||
import { EncuestaDeleteOptionDialogComponent } from '../encuesta-delete-option-dialog/encuesta-delete-option-dialog.component';
|
import { EncuestaDeleteOptionDialogComponent } from '../encuesta-delete-option-dialog/encuesta-delete-option-dialog.component';
|
||||||
|
@ -43,6 +43,7 @@ export class EncuestaUpdateComponent implements OnInit, AfterViewChecked {
|
||||||
faPlus = faPlus;
|
faPlus = faPlus;
|
||||||
faPollH = faPollH;
|
faPollH = faPollH;
|
||||||
faQuestion = faQuestion;
|
faQuestion = faQuestion;
|
||||||
|
faEye = faEye;
|
||||||
|
|
||||||
isSaving = false;
|
isSaving = false;
|
||||||
isSavingQuestion = false;
|
isSavingQuestion = false;
|
||||||
|
|
Loading…
Reference in New Issue