Skip to content
Snippets Groups Projects
Commit 22c6f920 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: remove unused component

parent de5ae448
No related branches found
No related tags found
3 merge requests!418V2.1.0,!400V2.0,!230V2.0
Showing with 45 additions and 86 deletions
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { SharedModule } from '../../shared/shared.module';
import { FooterFormComponent } from '../footer-form/footer-form.component';
import { AccountCredentialsComponent } from './account-form/account-credentials/account-credentials.component';
import { AccountFormComponent } from './account-form/account-form.component';
import { AccountInfoComponent } from './account-form/account-info/account-info.component';
import { AccountNewsletterComponent } from './account-form/account-newsletter/account-newsletter.component';
import { FormViewRoutingModule } from './form-view-routing.module';
import { FormViewComponent } from './form-view.component';
import { ProgressBarComponent } from './global-components/progress-bar/progress-bar.component';
import { NavigationButtonsComponent } from './global-components/navigation-buttons/navigation-buttons.component';
import { StructureFormComponent } from './structure-form/structure-form.component';
import { ProfileFormComponent } from './profile-form/profile-form.component';
import { PersonalOfferGuard } from './guards/personalOffer.guard';
import { PersonalOfferAccompanimentComponent } from './personal-offer-form/personal-offer-accompaniment/personal-offer-accompaniment.component';
import { PersonalOfferFormComponent } from './personal-offer-form/personal-offer-form.component';
import { InformationStepComponent } from './global-components/information-step/information-step.component';
import { AccountFormComponent } from './account-form/account-form.component';
import { PersonalOfferOtherStructureChoiceComponent } from './personal-offer-form/personal-offer-other-structure-choice/personal-offer-other-structure-choice.component';
import { PersonalOfferTrainingTypeComponent } from './personal-offer-form/personal-offer-training-type/personal-offer-training-type.component';
import { ProfileEmployerSelectionComponent } from './profile-form/profile-employer-selection/profile-employer-selection.component';
import { ProfileFormComponent } from './profile-form/profile-form.component';
import { ProfileJobSelectionComponent } from './profile-form/profile-job-selection/profile-job-selection.component';
import { ProfileStructureChoiceComponent } from './profile-form/profile-structure-choice/profile-structure-choice.component';
import { PersonalOfferOtherStructureChoiceComponent } from './personal-offer-form/personal-offer-other-structure-choice/personal-offer-other-structure-choice.component';
import { StructureNameAndAddressComponent } from './structure-form/structure-name-and-address/structure-name-and-address.component';
import { StructureContactComponent } from './structure-form/structure-contact/structure-contact.component';
import { StructureAccessModalityComponent } from './structure-form/structure-access-modality/structure-access-modality.component';
import { StructureAccompanimentChoiceComponent } from './structure-form/structure-accompaniment-choice/structure-accompaniment-choice.component';
import { StructureChoiceCompletionComponent } from './structure-form/structure-choice-completion/structure-choice-completion.component';
import { StructureConsentComponent } from './structure-form/structure-consent/structure-consent.component';
import { StructureContactCompletionComponent } from './structure-form/structure-contact-completion/structure-contact-completion.component';
import { StructureAccessModalityComponent } from './structure-form/structure-access-modality/structure-access-modality.component';
import { StructureHoursComponent } from './structure-form/structure-hours/structure-hours.component';
import { StructurePmrComponent } from './structure-form/structure-pmr/structure-pmr.component';
import { StructureWebAndSocialNetworkComponent } from './structure-form/structure-web-and-social-network/structure-web-and-social-network.component';
import { StructurePublicTargetComponent } from './structure-form/structure-public-target/structure-public-target.component';
import { StructureContactComponent } from './structure-form/structure-contact/structure-contact.component';
import { StructureCovidInfoComponent } from './structure-form/structure-covid-info/structure-covid-info.component';
import { StructureDescriptionComponent } from './structure-form/structure-description/structure-description.component';
import { StructureDigitalHelpingAccompanimentComponent } from './structure-form/structure-digital-helping-accompaniment/structure-digital-helping-accompaniment.component';
import { StructureTrainingPriceComponent } from './structure-form/structure-training-price/structure-training-price.component';
import { StructureWifiComponent } from './structure-form/structure-wifi/structure-wifi.component';
import { StructureEquipmentsComponent } from './structure-form/structure-equipments/structure-equipments.component';
import { StructureFormComponent } from './structure-form/structure-form.component';
import { StructureHoursComponent } from './structure-form/structure-hours/structure-hours.component';
import { StructureLabelsComponent } from './structure-form/structure-labels/structure-labels.component';
import { StructureNameAndAddressComponent } from './structure-form/structure-name-and-address/structure-name-and-address.component';
import { StructureOtherServicesComponent } from './structure-form/structure-other-services/structure-other-services.component';
import { StructureDescriptionComponent } from './structure-form/structure-description/structure-description.component';
import { StructureCovidInfoComponent } from './structure-form/structure-covid-info/structure-covid-info.component';
import { StructureConsentComponent } from './structure-form/structure-consent/structure-consent.component';
import { AccountInfoComponent } from './account-form/account-info/account-info.component';
import { AccountCredentialsComponent } from './account-form/account-credentials/account-credentials.component';
import { SharedModule } from '../../shared/shared.module';
import { FormViewRoutingModule } from './form-view-routing.module';
import { FooterFormComponent } from '../footer-form/footer-form.component';
import { StructureTypeComponent } from './structure-form/structure-type/structure-type.component';
import { PersonalOfferAccompanimentComponent } from './personal-offer-form/personal-offer-accompaniment/personal-offer-accompaniment.component';
import { PersonalOfferTrainingTypeComponent } from './personal-offer-form/personal-offer-training-type/personal-offer-training-type.component';
import { AccountNewsletterComponent } from './account-form/account-newsletter/account-newsletter.component';
import { StructurePmrComponent } from './structure-form/structure-pmr/structure-pmr.component';
import { StructurePublicTargetComponent } from './structure-form/structure-public-target/structure-public-target.component';
import { StructureTrainingPriceComponent } from './structure-form/structure-training-price/structure-training-price.component';
import { StructureTrainingTypeComponent } from './structure-form/structure-training-type/structure-training-type.component';
import { PersonalOfferGuard } from './guards/personalOffer.guard';
import { StructureTypeComponent } from './structure-form/structure-type/structure-type.component';
import { StructureWebAndSocialNetworkComponent } from './structure-form/structure-web-and-social-network/structure-web-and-social-network.component';
import { StructureWifiComponent } from './structure-form/structure-wifi/structure-wifi.component';
@NgModule({
declarations: [
FormViewComponent,
ProgressBarComponent,
NavigationButtonsComponent,
StructureFormComponent,
ProfileFormComponent,
PersonalOfferFormComponent,
......
......@@ -18,7 +18,10 @@
<svg aria-hidden="true">
<use [attr.xlink:href]="'assets/form/sprite.svg#profileSkip'"></use>
</svg>
<app-navigation-buttons (goNext)="nextPage()"></app-navigation-buttons>
<div class="footerForm" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="center center">
<app-button (action)="goToHome()" [text]="'Plus tard'"></app-button>
<app-button (action)="goToNextPage()" [text]="'C`est parti !'" [style]="buttonTypeEnum.Primary"></app-button>
</div>
</div>
</ng-container>
<ng-container *ngIf="formType === formTypeEnum.structure && step === structureFormStepEnum.mailSentInfo">
......
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Router } from '@angular/router';
import { ButtonType } from '../../../../shared/components/button/buttonType.enum';
import { accountFormStep } from '../../account-form/accountFormStep.enum';
import { formType } from '../../formType.enum';
......@@ -24,8 +25,17 @@ export class InformationStepComponent {
public structureFormStepEnum = structureFormStep;
public personalOfferFormStep = personalOfferFormStep;
public buttonTypeEnum = ButtonType;
constructor(private router: Router) {}
public nextPage(): void {
this.goNext.emit();
}
public goToHome(): void {
this.router.navigateByUrl('news');
}
public goToNextPage(): void {
this.goNext.emit();
}
}
<div class="footerForm" fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="center center">
<ng-container *ngIf="buttonStyle === 0">
<app-button (action)="goToHome()" [text]="'Plus tard'"></app-button>
<app-button (action)="goToNextPage()" [text]="'C`est parti !'" [style]="buttonTypeEnum.Primary"></app-button>
</ng-container>
</div>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NavigationButtonsComponent } from './navigation-buttons.component';
describe('NavigationButtonsComponent', () => {
let component: NavigationButtonsComponent;
let fixture: ComponentFixture<NavigationButtonsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ NavigationButtonsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(NavigationButtonsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Router } from '@angular/router';
import { ButtonType } from '../../../../shared/components/button/buttonType.enum';
@Component({
selector: 'app-navigation-buttons',
templateUrl: './navigation-buttons.component.html',
styleUrls: ['./navigation-buttons.component.scss'],
})
export class NavigationButtonsComponent {
@Input() buttonStyle = 0;
@Output() goNext = new EventEmitter<any>();
public buttonTypeEnum = ButtonType;
constructor(private router: Router) {}
public goToHome(): void {
this.router.navigateByUrl('news');
}
public goToNextPage(): void {
this.goNext.emit();
}
}
......@@ -25,7 +25,10 @@
background-color: $grey-6;
border-radius: 7px;
}
&::-webkit-progress-value,
&::-webkit-progress-value {
background-color: $primary-color;
border-radius: 12px;
}
&::-moz-progress-bar {
background-color: $primary-color;
border-radius: 12px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment