From 24182b3db937950af9b28f9bec60b20cd2917bd3 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Sat, 8 Dec 2018 17:37:51 -0600 Subject: [PATCH] Adding a booking module Signed-off-by: Jane Sandberg --- Open-ILS/src/eg2/src/app/staff/booking/booking.module.ts | 14 ++++++++++++++ .../staff/booking/current-reservations.component.html | 9 +++++++++ .../app/staff/booking/current-reservations.component.ts | 15 +++++++++++++++ Open-ILS/src/eg2/src/app/staff/booking/routing.module.ts | 16 ++++++++++++++++ Open-ILS/src/eg2/src/app/staff/routing.module.ts | 3 +++ 5 files changed, 57 insertions(+) create mode 100644 Open-ILS/src/eg2/src/app/staff/booking/booking.module.ts create mode 100644 Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/booking/current-reservations.component.ts create mode 100644 Open-ILS/src/eg2/src/app/staff/booking/routing.module.ts 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 }, { -- 2.11.0