From: Jane Sandberg Date: Sat, 8 Dec 2018 23:37:51 +0000 (-0600) Subject: Adding a booking module X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8b9943094180fa82b25c99c173bdd7908cead3f0;p=working%2FEvergreen.git Adding a booking module Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/eg2/src/app/staff/booking/booking.module.ts b/Open-ILS/src/eg2/src/app/staff/booking/booking.module.ts new file mode 100644 index 0000000000..baddf75da1 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/booking/booking.module.ts @@ -0,0 +1,14 @@ +import {NgModule} from '@angular/core'; +import {StaffCommonModule} from '@eg/staff/common.module'; +import {BookingRoutingModule} from './routing.module'; +import {CurrentReservationsComponent} from './current-reservations.component'; + +@NgModule({ + imports: [ + StaffCommonModule, + BookingRoutingModule, + ], + declarations: [CurrentReservationsComponent] +}) +export class BookingModule { } + diff --git a/Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.html b/Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.html new file mode 100644 index 0000000000..10f745367f --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.html @@ -0,0 +1,9 @@ +

+ current-reservations works! +

+ + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.ts new file mode 100644 index 0000000000..488124c3ff --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'eg-current-reservations', + templateUrl: './current-reservations.component.html', + styleUrls: ['./current-reservations.component.css'] +}) +export class CurrentReservationsComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/Open-ILS/src/eg2/src/app/staff/booking/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/booking/routing.module.ts new file mode 100644 index 0000000000..b778137712 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/booking/routing.module.ts @@ -0,0 +1,16 @@ +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; +import { CurrentReservationsComponent } from './current-reservations.component'; + +const routes: Routes = [{ + path: 'current_reservations', + component: CurrentReservationsComponent +}]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], + providers: [] +}) + +export class BookingRoutingModule {} diff --git a/Open-ILS/src/eg2/src/app/staff/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/routing.module.ts index b515f389af..aa41915467 100644 --- a/Open-ILS/src/eg2/src/app/staff/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/routing.module.ts @@ -19,6 +19,9 @@ const routes: Routes = [{ redirectTo: 'splash', pathMatch: 'full', }, { + path: 'booking', + loadChildren : '@eg/staff/booking/booking.module#BookingModule' + }, { path: 'about', component: AboutComponent }, {