Merge pull request #66 in TEA/dafa-web-monorepo from feature/TV-406 to develop
Squashed commit of the following: commit e6d9ed4bb24901433a126981d949e4085719a275 Author: fueno <nicolas.fuentes-maturana@arbetsformedlingen.se> Date: Tue Aug 24 16:53:06 2021 +0200 TV-406 updated spec file, deleted inline style commit dfd9ec31950a7f06ca8935452ff7d022da2685c1 Author: fueno <nicolas.fuentes-maturana@arbetsformedlingen.se> Date: Tue Aug 24 16:06:52 2021 +0200 TV-406 some html commit 84e3e05b79c33209d04107c79df3a2600665cc0a Author: fueno <nicolas.fuentes-maturana@arbetsformedlingen.se> Date: Tue Aug 24 15:21:03 2021 +0200 TV-406 DeltagareReportComponent, routing created
This commit is contained in:
@@ -9,12 +9,16 @@ const routes: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':deltagareId',
|
path: ':deltagareId',
|
||||||
loadChildren: () => import('./pages/deltagare-card/deltagare-card.module').then(m => m.DeltagareCardModule),
|
loadChildren: () => import('./pages/deltagare-card/deltagare-card.module').then(m => m.DeltagareCardModule)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'rapportera/:deltagareId',
|
||||||
|
loadChildren: () => import('./pages/deltagare-report/deltagare-report.module').then(m => m.DeltagareReportModule)
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild(routes)],
|
imports: [RouterModule.forChild(routes)],
|
||||||
exports: [RouterModule],
|
exports: [RouterModule],
|
||||||
})
|
})
|
||||||
export class DeltagareRoutingModule {}
|
export class DeltagareRoutingModule { }
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<msfa-layout>
|
||||||
|
<section class="deltagare-report">
|
||||||
|
<digi-typography>
|
||||||
|
<h1>Avvikelserapport</h1>
|
||||||
|
<p>Här ska det komma en förklarande text om avvikelserapporter.</p>
|
||||||
|
<h2>Skapa rapport</h2>
|
||||||
|
<div class="deltagare-report__deltagare">
|
||||||
|
<p><strong>Deltagare:</strong> Göran Ekman</p>
|
||||||
|
<p><strong>Personnummer:</strong> 999999</p>
|
||||||
|
</div>
|
||||||
|
</digi-typography>
|
||||||
|
</section>
|
||||||
|
</msfa-layout>
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||||
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
|
import { LayoutComponent } from '@msfa-shared/components/layout/layout.component';
|
||||||
|
|
||||||
|
import { DeltagareReportComponent } from './deltagare-report.component';
|
||||||
|
|
||||||
|
describe('DeltagareReportComponent', () => {
|
||||||
|
let component: DeltagareReportComponent;
|
||||||
|
let fixture: ComponentFixture<DeltagareReportComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
|
declarations: [DeltagareReportComponent, LayoutComponent],
|
||||||
|
imports: [RouterTestingModule, HttpClientTestingModule]
|
||||||
|
}).compileComponents();
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(DeltagareReportComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'msfa-deltagare-report',
|
||||||
|
templateUrl: './deltagare-report.component.html',
|
||||||
|
styleUrls: ['./deltagare-report.component.scss'],
|
||||||
|
changeDetection: ChangeDetectionStrategy.OnPush
|
||||||
|
})
|
||||||
|
export class DeltagareReportComponent {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
|
||||||
|
import { DeltagareReportComponent } from './deltagare-report.component';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
|
declarations: [DeltagareReportComponent],
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
RouterModule.forChild([{ path: '', component: DeltagareReportComponent }]),
|
||||||
|
LayoutModule
|
||||||
|
],
|
||||||
|
exports: [DeltagareReportComponent]
|
||||||
|
})
|
||||||
|
export class DeltagareReportModule { }
|
||||||
Reference in New Issue
Block a user