diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 1df2a75..aab32fe 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -20,6 +20,14 @@ import { ProvidersComponent } from './pages/tables/providers/providers.component import { PersonComponent } from './pages/dataPages/person/person.component'; import { OrganisationComponent } from './pages/dataPages/organisation/organisation.component'; import { ProviderComponent } from './pages/dataPages/provider/provider.component'; +import { ParticipantComponent } from './pages/dataPages/participant/participant.component'; +import { WorkshopComponent } from './pages/dataPages/workshop/workshop.component'; +import { WorkshopsComponent } from './pages/tables/workshops/workshops.component'; +import { WorkshopTypesComponent } from './pages/tables/workshop-types/workshop-types.component'; +import { EngagementsComponent } from './pages/tables/engagements/engagements.component'; +import { BikeEventsComponent } from './pages/tables/bike-events/bike-events.component'; +import { BikeEventComponent } from './pages/dataPages/bike-event/bike-event.component'; +import { BikeEventTypesComponent } from './pages/tables/bike-event-types/bike-event-types.component'; const routes: Routes = [ { path: 'login', component: LoginComponent }, @@ -27,11 +35,15 @@ const routes: Routes = [ { path: 'profile', component: ProfileComponent, canActivate: [AuthGuard]}, { path: 'table/bikes', component: BikesComponent, canActivate: [AuthGuard] }, { path: 'bike/:id', component: BikeComponent, canActivate: [AuthGuard] }, + { path: 'table/bikeEvents', component: BikeEventsComponent, canActivate: [AuthGuard] }, + { path: 'bikeEvent/:id', component: BikeEventComponent, canActivate: [AuthGuard] }, + { path: 'table/bikeEventTypes', component: BikeEventTypesComponent, canActivate: [AuthGuard] }, { path: 'table/participants', component: ParticipantsComponent, canActivate: [AuthGuard] }, { path: 'table/lendingStations', component: LendingStationsComponent, canActivate: [AuthGuard] }, { path: 'table/equipmentTypes', component: EquipmentTypesComponent, canActivate: [AuthGuard] }, { path: 'table/engagementTypes', component: EngagementTypesComponent, canActivate: [AuthGuard] }, - { path: 'table/equipment', component: EquipmentComponent, canActivate: [AuthGuard] }, + { path: 'table/engagements', component: EngagementsComponent, canActivate: [AuthGuard] }, + { path: 'table/equipments', component: EquipmentComponent, canActivate: [AuthGuard] }, { path: 'table/timeFrames', component: TimeFramesComponent, canActivate: [AuthGuard] }, { path: 'table/persons', component: PersonsComponent, canActivate: [AuthGuard] }, { path: 'table/contactInformation', component: ContactInformationComponent, canActivate: [AuthGuard] }, @@ -41,6 +53,11 @@ const routes: Routes = [ { path: 'person/:id', component: PersonComponent, canActivate: [AuthGuard] }, { path: 'provider/:id', component: ProviderComponent, canActivate: [AuthGuard] }, { path: 'organisation/:id', component: OrganisationComponent, canActivate: [AuthGuard] }, + { path: 'participant/:id', component: ParticipantComponent, canActivate: [AuthGuard] }, + { path: 'participants', component: ParticipantsComponent, canActivate: [AuthGuard] }, + { path: 'workshop/:id', component: WorkshopComponent, canActivate: [AuthGuard] }, + { path: 'table/workshops', component: WorkshopsComponent, canActivate: [AuthGuard] }, + { path: 'table/workshopTypes', component: WorkshopTypesComponent, canActivate: [AuthGuard] }, { path: '', redirectTo: 'tableOverview', pathMatch: 'full' }, { path: 'table', redirectTo: 'tableOverview', pathMatch: 'full' }, { path: '**', redirectTo: 'tableOverview' }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 38572fd..62de6ae 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -6,7 +6,7 @@ import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; import { DragDropModule } from '@angular/cdk/drag-drop'; import { FlexLayoutModule } from '@angular/flex-layout'; -import { DatePipe } from '@angular/common' +import { DatePipe } from '@angular/common'; // Angular Material Components import { MatToolbarModule } from '@angular/material/toolbar'; @@ -32,6 +32,7 @@ import { MatDialogModule } from '@angular/material/dialog'; import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatDatepickerModule } from '@angular/material/datepicker'; import { MatNativeDateModule, MAT_DATE_LOCALE } from '@angular/material/core'; +import { MatChipsModule } from '@angular/material/chips'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; @@ -66,7 +67,10 @@ import { SelectObjectDialogComponent } from './components/select-object-dialog/s import { AutocompleteSelectComponent } from './components/autocomplete-select/autocomplete-select.component'; import { LendingStationComponent } from './pages/dataPages/lending-station/lending-station.component'; import { ProfileComponent } from './pages/profile/profile.component'; -import { ErrorSnackbarComponent, SnackbarDialog } from './helper/snackbar-ref.component'; +import { + ErrorSnackbarComponent, + SnackbarDialog, +} from './helper/snackbar-ref.component'; import { HttpLinkModule } from 'apollo-angular-link-http'; import { PersonsComponent } from './pages/tables/persons/persons.component'; import { ContactInformationComponent } from './pages/tables/contact-information/contact-information.component'; @@ -75,8 +79,13 @@ import { ProvidersComponent } from './pages/tables/providers/providers.component import { OrganisationComponent } from './pages/dataPages/organisation/organisation.component'; import { PersonComponent } from './pages/dataPages/person/person.component'; import { ProviderComponent } from './pages/dataPages/provider/provider.component'; - - +import { WorkshopComponent } from './pages/dataPages/workshop/workshop.component'; +import { BikeEventComponent } from './pages/dataPages/bike-event/bike-event.component'; +import { ParticipantComponent } from './pages/dataPages/participant/participant.component'; +import { EngagementsComponent } from './pages/tables/engagements/engagements.component'; +import { BikeEventsComponent } from './pages/tables/bike-events/bike-events.component'; +import { BikeEventTypesComponent } from './pages/tables/bike-event-types/bike-event-types.component'; +import { WorkshopTypesComponent } from './pages/tables/workshop-types/workshop-types.component'; @NgModule({ declarations: [ @@ -113,7 +122,14 @@ import { ProviderComponent } from './pages/dataPages/provider/provider.component ProvidersComponent, OrganisationComponent, PersonComponent, - ProviderComponent + ProviderComponent, + WorkshopComponent, + BikeEventComponent, + ParticipantComponent, + EngagementsComponent, + BikeEventsComponent, + BikeEventTypesComponent, + WorkshopTypesComponent, ], imports: [ BrowserModule, @@ -149,7 +165,8 @@ import { ProviderComponent } from './pages/dataPages/provider/provider.component MatDialogModule, MatAutocompleteModule, MatDatepickerModule, - MatNativeDateModule + MatNativeDateModule, + MatChipsModule, ], providers: [ NavService, @@ -157,8 +174,8 @@ import { ProviderComponent } from './pages/dataPages/provider/provider.component MatDatepickerModule, DatePipe, { provide: HTTP_INTERCEPTORS, useClass: TokenInterceptor, multi: true }, - - {provide: MAT_DATE_LOCALE, useValue: 'de-DE'}, + + { provide: MAT_DATE_LOCALE, useValue: 'de-DE' }, ], bootstrap: [AppComponent], diff --git a/src/app/components/table/table.component.html b/src/app/components/table/table.component.html index b164b8e..0031901 100644 --- a/src/app/components/table/table.component.html +++ b/src/app/components/table/table.component.html @@ -1,7 +1,7 @@