mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
fix links for the 7 steps of creation
This commit is contained in:
parent
da42c9e64d
commit
a92db69cf6
@ -38,7 +38,7 @@ export class PollService implements Resolve<Poll> {
|
||||
public previousRouteName: string = '/administration';
|
||||
public nextRouteName: string = '/administration/step/2';
|
||||
public step_current: number = 1;
|
||||
public step_max: number = 5;
|
||||
public step_max: number = 7;
|
||||
public round: Function;
|
||||
public pass_hash: string;
|
||||
public admin_key: string;
|
||||
|
@ -1,13 +1,31 @@
|
||||
<app-stepper [step_current]="5" [step_max]="5"></app-stepper>
|
||||
<app-stepper [step_current]="5" [step_max]="pollService.step_max"></app-stepper>
|
||||
<app-errors-list [form]="pollService.form"></app-errors-list>
|
||||
<app-success [poll]="pollService.form.value"></app-success>
|
||||
<!--<app-success [poll]="pollService.form.value"></app-success>-->
|
||||
|
||||
<section class="supplement container">
|
||||
<fieldset class="advanced-config">
|
||||
<button
|
||||
class="button is-unchecked-info"
|
||||
[ngClass]="{ 'is-info': !advancedDisplayEnabled, 'is-primary': advancedDisplayEnabled }"
|
||||
(click)="advancedDisplayEnabled = !advancedDisplayEnabled"
|
||||
>
|
||||
<i class="fa fa-chevron-circle-down" *ngIf="!advancedDisplayEnabled"></i>
|
||||
<i class="fa fa-chevron-circle-up" *ngIf="advancedDisplayEnabled"></i>
|
||||
{{ 'creation.advanced' | translate }}
|
||||
</button>
|
||||
<fieldset class="complete well" *ngIf="advancedDisplayEnabled">
|
||||
<app-advanced-config [form]="pollService.form"></app-advanced-config>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<button class="button is-primary is-fullwidth" [routerLink]="['/administration/step/1']">
|
||||
<i class="fa fa-pencil"></i>
|
||||
modifier le sondage
|
||||
<button class="button is-default is-fullwidth" [routerLink]="['/administration/step/4']">
|
||||
Précédent
|
||||
</button>
|
||||
</div>
|
||||
<div class="column">
|
||||
<button class="button is-primary is-fullwidth" [routerLink]="['/administration/step/6']">
|
||||
Suivant
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -12,6 +12,7 @@ export class StepFiveComponent implements OnInit {
|
||||
@Input() step_max: any;
|
||||
@Input() public form: FormGroup;
|
||||
poll: any;
|
||||
advancedDisplayEnabled = true;
|
||||
constructor(public pollService: PollService) {
|
||||
this.pollService.step_current = 5;
|
||||
}
|
||||
|
@ -31,21 +31,6 @@
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
<fieldset class="advanced-config">
|
||||
<button
|
||||
class="button is-unchecked-info"
|
||||
[ngClass]="{ 'is-info': !advancedDisplayEnabled, 'is-primary': advancedDisplayEnabled }"
|
||||
(click)="advancedDisplayEnabled = !advancedDisplayEnabled"
|
||||
>
|
||||
<i class="fa fa-chevron-circle-down" *ngIf="!advancedDisplayEnabled"></i>
|
||||
<i class="fa fa-chevron-circle-up" *ngIf="advancedDisplayEnabled"></i>
|
||||
{{ 'creation.advanced' | translate }}
|
||||
</button>
|
||||
<fieldset class="complete well" *ngIf="advancedDisplayEnabled">
|
||||
<app-advanced-config [form]="pollService.form"></app-advanced-config>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<div class="columns">
|
||||
@ -60,7 +45,6 @@
|
||||
[routerLink]="['/administration/step/5']"
|
||||
[disabled]="!pollService.form.valid"
|
||||
>
|
||||
<i class="fa fa-save"></i>
|
||||
Suivant
|
||||
</button>
|
||||
</div>
|
||||
|
@ -18,7 +18,7 @@
|
||||
n'a pas été créé :(
|
||||
|
||||
<br />
|
||||
<button class="button is-primary" [routerLink]="['/administration/step/4']">
|
||||
<button class="button is-primary" [routerLink]="['/administration/step/7']">
|
||||
Revenir en arrière
|
||||
</button>
|
||||
</span>
|
||||
@ -33,7 +33,7 @@
|
||||
<div class="container padded">
|
||||
<div class=" ">
|
||||
<div class="main-block">
|
||||
<div class="columns">
|
||||
<div class="hopla">
|
||||
<div class="column">
|
||||
<div class="admin">
|
||||
<div class="no-admin-key padded has-background-danger" *ngIf="!pollService.admin_key">
|
||||
|
@ -11,7 +11,7 @@ export const environment = {
|
||||
frontDomain: 'http://127.0.0.1:4200',
|
||||
production: false,
|
||||
display_routes: false, // demo paths to test polls
|
||||
autofill_creation: false,
|
||||
autofill_creation: true,
|
||||
advanced_options_display: false,
|
||||
autofill_participation: false,
|
||||
showDemoWarning: false,
|
||||
|
Loading…
Reference in New Issue
Block a user