import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {SharedModule} from '../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { UploadStudentRouter } from './router/router';
import { UploadStudentContainer } from './container/upload-student/upload-student.container';
import { ListComponent } from './presenter/list/list.component';
import { SearchComponent } from './presenter/search/search/search.component';
import { TestingInfoContainer } from './container/testing-info/testing-info.container';
import { TestingInfoSearchComponent } from './presenter/testing-info-search/testing-info-search.component';
import { TestingInfoListComponent } from './presenter/testing-info-list/testing-info-list.component';
import { UploadDialogComponent } from './presenter/upload-dialog/upload-dialog.component';
import { TemplateDialogComponent } from './presenter/template-dialog/template-dialog.component';

const routes: Routes = [
    {
        path: '',
        component: UploadStudentRouter,
        children: [
            {
                path: '',
                component: TestingInfoContainer
            },
            {
                path: 'view/:id',
                component: UploadStudentContainer
            },

        ]
    }
];

@NgModule({
    declarations: [
        UploadStudentContainer,
        UploadStudentRouter,
        ListComponent,
        SearchComponent,
        TestingInfoContainer,
        TestingInfoSearchComponent,
        TestingInfoListComponent,
        UploadDialogComponent,
        TemplateDialogComponent
    ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes),
    ]
})
export class UploadStudentModule { }
