mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
popup cancel with correct text
This commit is contained in:
parent
34b97c55a6
commit
7888220aed
@ -18,7 +18,6 @@
|
|||||||
(blur)="pollService.updateSlug()"
|
(blur)="pollService.updateSlug()"
|
||||||
id="title"
|
id="title"
|
||||||
maxlength="140"
|
maxlength="140"
|
||||||
autofocus="autofocus"
|
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,6 +43,11 @@ export class StepOneComponent implements OnInit {
|
|||||||
if (event) {
|
if (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
const selector = '#title';
|
||||||
|
const firstField = this.document.querySelector(selector);
|
||||||
|
if (firstField) {
|
||||||
|
firstField.focus();
|
||||||
|
}
|
||||||
this.router.navigate(['/']);
|
this.router.navigate(['/']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
>7</a
|
>7</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="step-info">
|
<div class="step-info">
|
||||||
<div class="columns half-columns">
|
<div class="columns half-columns">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
@ -83,7 +84,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column has-text-right">
|
<div class="column has-text-right">
|
||||||
<app-language-selector class="nav-button"></app-language-selector>
|
<app-language-selector class="nav-button"></app-language-selector>
|
||||||
<button class="has-no-border nav-button cancel-button" (click)="showCancelDialog()">
|
<button
|
||||||
|
class="has-no-border nav-button cancel-button"
|
||||||
|
(click)="showCancelDialog()"
|
||||||
|
aria-haspopup="dialog"
|
||||||
|
>
|
||||||
{{ 'nav.leave' | translate }} <i class="fa fa-times"></i>
|
{{ 'nav.leave' | translate }} <i class="fa fa-times"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -94,28 +99,49 @@
|
|||||||
|
|
||||||
<!-- modale pour quitter la création-->
|
<!-- modale pour quitter la création-->
|
||||||
<p-dialog
|
<p-dialog
|
||||||
header="{{ 'nav.leave' | translate }}?"
|
|
||||||
[modal]="true"
|
[modal]="true"
|
||||||
[(visible)]="display_cancel_dialog"
|
[(visible)]="display_cancel_dialog"
|
||||||
[breakpoints]="{ '960px': '75vw' }"
|
[breakpoints]="{ '960px': '75vw' }"
|
||||||
[style]="{ width: '50vw' }"
|
[style]="{ width: '50vw' }"
|
||||||
[draggable]="false"
|
[draggable]="false"
|
||||||
|
[showHeader]="false"
|
||||||
[resizable]="false"
|
[resizable]="false"
|
||||||
>
|
>
|
||||||
<p>Souhaitez-vous vraiment quitter le sondage ? Toutes les informations seront effacées.</p>
|
<ng-template pTemplate="titlebar">
|
||||||
<ng-template pTemplate="footer">
|
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-half-mobile">
|
<div class="column">
|
||||||
<button class="button is-warning is-fullwidth cancel-button-confirm" (click)="goToHome()">
|
<h1 class="title is-2">
|
||||||
Quitter
|
{{ 'popup.cancel.title' | translate }}
|
||||||
</button>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-half-mobile">
|
<div class="column is-narrow">
|
||||||
<button
|
<button
|
||||||
|
id="close_dialog"
|
||||||
class="button is-primary is-fullwidth cancel-button-reject"
|
class="button is-primary is-fullwidth cancel-button-reject"
|
||||||
(click)="display_cancel_dialog = false"
|
(click)="display_cancel_dialog = false"
|
||||||
>
|
>
|
||||||
Rester
|
Fermer <i class="fa fa-times"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{{ 'popup.cancel.main' | translate }}
|
||||||
|
</p>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template pTemplate="footer">
|
||||||
|
<div class="columns">
|
||||||
|
<div class="column is-half-mobile">
|
||||||
|
<button
|
||||||
|
class="button is-fullwidth cancel-button-confirm is-outlined"
|
||||||
|
(click)="display_cancel_dialog = false"
|
||||||
|
>
|
||||||
|
Non
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="column is-half-mobile">
|
||||||
|
<button class="button is-primary is-fullwidth cancel-button-reject" (click)="goToHome()">
|
||||||
|
Oui, annuler sondage
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -106,7 +106,7 @@
|
|||||||
.cancel-button-confirm {
|
.cancel-button-confirm {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: white !important;
|
color: $secondary_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,12 @@
|
|||||||
"description": "et la description serait",
|
"description": "et la description serait",
|
||||||
"description_placeholder": "description"
|
"description_placeholder": "description"
|
||||||
},
|
},
|
||||||
|
"popup": {
|
||||||
|
"cancel" : {
|
||||||
|
"title": "Vous allez annuler votre sondage",
|
||||||
|
"main": "Si vous annulez votre sondage vous perdrez toutes les informations saisies jusqu'à maintenant.\nSouhaitez-vous vraiment annuler?"
|
||||||
|
}
|
||||||
|
},
|
||||||
"dates": {
|
"dates": {
|
||||||
"title": "Config spécialement pour les dates",
|
"title": "Config spécialement pour les dates",
|
||||||
"hours_different": "Je souhaite mettre des créneaux horaires",
|
"hours_different": "Je souhaite mettre des créneaux horaires",
|
||||||
|
Loading…
Reference in New Issue
Block a user