18 changed files with 217 additions and 58 deletions
@ -0,0 +1 @@
|
||||
<p>step-five works!</p> |
@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { StepFiveComponent } from './step-five.component'; |
||||
|
||||
describe('StepFiveComponent', () => { |
||||
let component: StepFiveComponent; |
||||
let fixture: ComponentFixture<StepFiveComponent>; |
||||
|
||||
beforeEach(async(() => { |
||||
TestBed.configureTestingModule({ |
||||
declarations: [StepFiveComponent], |
||||
}).compileComponents(); |
||||
})); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(StepFiveComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -0,0 +1,12 @@
|
||||
import { Component, OnInit } from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'app-step-five', |
||||
templateUrl: './step-five.component.html', |
||||
styleUrls: ['./step-five.component.scss'], |
||||
}) |
||||
export class StepFiveComponent implements OnInit { |
||||
constructor() {} |
||||
|
||||
ngOnInit(): void {} |
||||
} |
@ -0,0 +1 @@
|
||||
<p>step-four works!</p> |
@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { StepFourComponent } from './step-four.component'; |
||||
|
||||
describe('StepFourComponent', () => { |
||||
let component: StepFourComponent; |
||||
let fixture: ComponentFixture<StepFourComponent>; |
||||
|
||||
beforeEach(async(() => { |
||||
TestBed.configureTestingModule({ |
||||
declarations: [StepFourComponent], |
||||
}).compileComponents(); |
||||
})); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(StepFourComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -0,0 +1,12 @@
|
||||
import { Component, OnInit } from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'app-step-four', |
||||
templateUrl: './step-four.component.html', |
||||
styleUrls: ['./step-four.component.scss'], |
||||
}) |
||||
export class StepFourComponent implements OnInit { |
||||
constructor() {} |
||||
|
||||
ngOnInit(): void {} |
||||
} |
@ -1,3 +1,51 @@
|
||||
<div class="step"> |
||||
Nom de sondage |
||||
|
||||
<section class="poll-title"> |
||||
<span> |
||||
{{ 'creation.choose_title' | translate }} |
||||
</span> |
||||
<label class="hidden" for="title">Titre</label> |
||||
<input |
||||
#title |
||||
matInput |
||||
[placeholder]="'creation.choose_title_placeholder' | translate" |
||||
formControlName="title" |
||||
id="title" |
||||
autofocus="autofocus" |
||||
(change)="updateSlug()" |
||||
required |
||||
/> |
||||
<button mat-button *ngIf="title.value" matSuffix mat-icon-button aria-label="Clear" (click)="title.value = ''"> |
||||
<i class="fa fa-close"></i> |
||||
</button> |
||||
</section> |
||||
<div class="poll-description"> |
||||
<label for="descr">Description (optionnel)</label> |
||||
<span class="rich-text-toggle"> |
||||
mode de saisie avancée |
||||
<i class="fa fa-text"></i><input type="checkbox" formControlName="richTextMode" /> |
||||
</span> |
||||
<textarea |
||||
#description |
||||
matInput |
||||
id="descr" |
||||
placeholder="Description" |
||||
formControlName="description" |
||||
required |
||||
></textarea> |
||||
<div class="text-info"> |
||||
300 caractères maximum |
||||
</div> |
||||
<button |
||||
mat-button |
||||
*ngIf="description.value" |
||||
matSuffix |
||||
mat-icon-button |
||||
aria-label="Clear" |
||||
(click)="description.value = ''" |
||||
> |
||||
<i class="fa fa-close"></i> |
||||
</button> |
||||
</div> |
||||
</div> |
||||
|
@ -0,0 +1 @@
|
||||
<p>step-three works!</p> |
@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { StepThreeComponent } from './step-three.component'; |
||||
|
||||
describe('StepThreeComponent', () => { |
||||
let component: StepThreeComponent; |
||||
let fixture: ComponentFixture<StepThreeComponent>; |
||||
|
||||
beforeEach(async(() => { |
||||
TestBed.configureTestingModule({ |
||||
declarations: [StepThreeComponent], |
||||
}).compileComponents(); |
||||
})); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(StepThreeComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -0,0 +1,12 @@
|
||||
import { Component, OnInit } from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'app-step-three', |
||||
templateUrl: './step-three.component.html', |
||||
styleUrls: ['./step-three.component.scss'], |
||||
}) |
||||
export class StepThreeComponent implements OnInit { |
||||
constructor() {} |
||||
|
||||
ngOnInit(): void {} |
||||
} |
Loading…
Reference in new issue