mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
kind selection fix colors, and fix double popup
This commit is contained in:
parent
6a9e85d66a
commit
307fd75615
@ -43,10 +43,12 @@
|
|||||||
></textarea>
|
></textarea>
|
||||||
<div
|
<div
|
||||||
class="text-info padded"
|
class="text-info padded"
|
||||||
*ngIf="pollService.form.value.description.length"
|
|
||||||
[ngClass]="{ 'has-background-warning': pollService.form.value.description.length === 300 }"
|
[ngClass]="{ 'has-background-warning': pollService.form.value.description.length === 300 }"
|
||||||
>
|
>
|
||||||
{{ pollService.form.value.description.length }} / 300 caractères maximum
|
<span class="counter-current" *ngIf="pollService.form.value.description.length">
|
||||||
|
{{ pollService.form.value.description.length }} /
|
||||||
|
</span>
|
||||||
|
300 caractères maximum
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -72,13 +74,8 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
</p-confirmDialog>
|
</p-confirmDialog>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
|
<div class="column"></div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<button class="button is-warning is-fullwidth" (click)="cancelCreationDialog()">
|
|
||||||
{{ 'SENTENCES.Cancel' | translate }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="column">
|
|
||||||
<!-- [disabled]="form.invalid"-->
|
|
||||||
<button class="button is-primary is-fullwidth" [routerLink]="['/administration/step/2']">
|
<button class="button is-primary is-fullwidth" [routerLink]="['/administration/step/2']">
|
||||||
Suivant
|
Suivant
|
||||||
</button>
|
</button>
|
||||||
|
@ -34,16 +34,6 @@ export class StepOneComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cancelCreationDialog() {
|
|
||||||
this.confirmationService.confirm({
|
|
||||||
message: 'Quitter la création de sondage?',
|
|
||||||
accept: this.leave,
|
|
||||||
reject: (event: any) => {
|
|
||||||
console.log('event', event);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
leave(event: any) {
|
leave(event: any) {
|
||||||
console.log('event', event);
|
console.log('event', event);
|
||||||
if (event) {
|
if (event) {
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
<div
|
<div
|
||||||
class="button input-radio is-fullwidth"
|
class="button input-radio is-fullwidth"
|
||||||
[ngClass]="{
|
[ngClass]="{
|
||||||
'is-selected has-background-primary has-text-white':
|
'is-selected': pollService.form.controls.isAboutDate.value
|
||||||
pollService.form.controls.isAboutDate.value
|
|
||||||
}"
|
}"
|
||||||
(click)="pollService.form.controls.isAboutDate.setValue(true)"
|
(click)="pollService.form.controls.isAboutDate.setValue(true)"
|
||||||
>
|
>
|
||||||
@ -28,8 +27,7 @@
|
|||||||
<div
|
<div
|
||||||
class="button input-radio is-fullwidth"
|
class="button input-radio is-fullwidth"
|
||||||
[ngClass]="{
|
[ngClass]="{
|
||||||
'is-selected has-background-primary has-text-white': !pollService.form.controls
|
'is-selected': !pollService.form.controls.isAboutDate.value
|
||||||
.isAboutDate.value
|
|
||||||
}"
|
}"
|
||||||
(click)="pollService.form.controls.isAboutDate.setValue(false)"
|
(click)="pollService.form.controls.isAboutDate.setValue(false)"
|
||||||
>
|
>
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
<h3 class="step-counter-text">Étape {{ step_current }} sur {{ step_max }}</h3>
|
<h3 class="step-counter-text">Étape {{ step_current }} sur {{ step_max }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-narrow has-text-right">
|
<div class="column is-narrow has-text-right">
|
||||||
<a class="cancel-button" (click)="cancelDialog()"> Annuler <i class="fa fa-times"></i> </a>
|
<a class="cancel-button" (click)="showCancelDialog()"> Annuler <i class="fa fa-times"></i> </a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -81,7 +81,7 @@
|
|||||||
pButton
|
pButton
|
||||||
icon="pi pi-times"
|
icon="pi pi-times"
|
||||||
[label]="'dialogs.no' | translate"
|
[label]="'dialogs.no' | translate"
|
||||||
(click)="stepperConfirm.reject()"
|
(click)="stepperConfirm.close()"
|
||||||
></button>
|
></button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@ -92,5 +92,4 @@
|
|||||||
></button>
|
></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</p-confirmDialog>
|
</p-confirmDialog>
|
||||||
<a href="#creation_stepper" (click)="cancelDialog()"></a>
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -22,9 +22,11 @@ export class StepperComponent {
|
|||||||
private router: Router
|
private router: Router
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
cancelDialog() {
|
showCancelDialog() {
|
||||||
this.confirmationService.confirm({
|
this.confirmationService.confirm({
|
||||||
message: 'Quitter la création de sondage?',
|
message: 'Quitter la création de sondage?',
|
||||||
|
header: "Retour à l' accueil",
|
||||||
|
reject: () => {},
|
||||||
accept: () => {
|
accept: () => {
|
||||||
this.router.navigate(['/']);
|
this.router.navigate(['/']);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user