Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BookingMyHrManagement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chanachai
BookingMyHrManagement
Commits
e2a958fc
Commit
e2a958fc
authored
Nov 24, 2021
by
Chanachai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่มหน้ารายการอุปกรณ์
parent
c8fd8ecd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
97 additions
and
2 deletions
+97
-2
app.module.ts
src/app/app.module.ts
+3
-2
sidebar.component.ts
src/app/components/sidebar/sidebar.component.ts
+7
-0
admin-layout.routing.ts
src/app/layouts/admin-layout/admin-layout.routing.ts
+2
-0
equipment.component.html
src/app/pages/equipment/equipment.component.html
+45
-0
equipment.component.scss
src/app/pages/equipment/equipment.component.scss
+0
-0
equipment.component.spec.ts
src/app/pages/equipment/equipment.component.spec.ts
+25
-0
equipment.component.ts
src/app/pages/equipment/equipment.component.ts
+15
-0
mo.jpg
src/assets/img/mo.jpg
+0
-0
No files found.
src/app/app.module.ts
View file @
e2a958fc
...
...
@@ -16,7 +16,8 @@ import { ComponentsModule } from "./components/components.module";
import
{
HomePageComponent
}
from
'./pages/home-page/home-page.component'
;
import
{
FullCalendarModule
}
from
"@fullcalendar/angular"
;
import
dayGridPlugin
from
'@fullcalendar/daygrid'
;
// a plugin!
import
interactionPlugin
from
'@fullcalendar/interaction'
;
// a plugin!
import
interactionPlugin
from
'@fullcalendar/interaction'
;
import
{
EquipmentComponent
}
from
'./pages/equipment/equipment.component'
;
// a plugin!
FullCalendarModule
.
registerPlugins
([
// register FullCalendar plugins
dayGridPlugin
,
...
...
@@ -35,7 +36,7 @@ FullCalendarModule.registerPlugins([ // register FullCalendar plugins
ToastrModule
.
forRoot
(),
FullCalendarModule
],
declarations
:
[
AppComponent
,
AdminLayoutComponent
,
AuthLayoutComponent
,
HomePageComponent
],
declarations
:
[
AppComponent
,
AdminLayoutComponent
,
AuthLayoutComponent
,
HomePageComponent
,
EquipmentComponent
],
providers
:
[],
bootstrap
:
[
AppComponent
]
})
...
...
src/app/components/sidebar/sidebar.component.ts
View file @
e2a958fc
...
...
@@ -16,6 +16,13 @@ export const ROUTES: RouteInfo[] = [
class
:
""
},
{
path
:
"/equipment"
,
title
:
"รายการอุปกรณ์"
,
rtlTitle
:
""
,
icon
:
"icon-cart"
,
class
:
""
},
{
path
:
"/dashboard"
,
title
:
"Dashboard"
,
rtlTitle
:
""
,
...
...
src/app/layouts/admin-layout/admin-layout.routing.ts
View file @
e2a958fc
...
...
@@ -8,10 +8,12 @@ import { UserComponent } from "../../pages/user/user.component";
import
{
TablesComponent
}
from
"../../pages/tables/tables.component"
;
import
{
TypographyComponent
}
from
"../../pages/typography/typography.component"
;
import
{
HomePageComponent
}
from
"src/app/pages/home-page/home-page.component"
;
import
{
EquipmentComponent
}
from
"src/app/pages/equipment/equipment.component"
;
// import { RtlComponent } from "../../pages/rtl/rtl.component";
export
const
AdminLayoutRoutes
:
Routes
=
[
{
path
:
"home-page"
,
component
:
HomePageComponent
},
{
path
:
"equipment"
,
component
:
EquipmentComponent
},
{
path
:
"dashboard"
,
component
:
DashboardComponent
},
{
path
:
"icons"
,
component
:
IconsComponent
},
{
path
:
"maps"
,
component
:
MapComponent
},
...
...
src/app/pages/equipment/equipment.component.html
0 → 100644
View file @
e2a958fc
<div
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div>
<h4
class=
"card-title "
>
รายการอุปกรณ์ที่ยืมได้
</h4>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div>
<h4
class=
"card-title"
>
รูปภาพอุปกรณ์
</h4>
</div>
<div
class=
"card mb-3"
style=
"max-width: 540px;"
>
<div
class=
"row g-0"
>
<div
class=
"col-md-4"
>
<img
src=
"assets\img\mo.jpg"
class=
"img-fluid rounded-start"
alt=
"..."
>
</div>
<div
class=
"col-md-8"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
จอคอมพิวเตอร์
</h5>
<p
class=
"card-text"
>
รหัสอุปกรณ์ : 0001
</p>
<p
class=
"card-text"
>
ชื่อรุ่นอุปกรณ์ : MSI
</p>
<p
class=
"card-text"
>
จำนวนที่เหลือ
</p>
</div>
<div
class=
"d-grid gap-2 d-md-flex justify-content-md-end"
>
<button
class=
"btn btn-primary me-md-2"
type=
"button"
>
ยืนยัน
</button>
<button
class=
"btn btn-primary"
type=
"button"
>
ยกเลิก
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/pages/equipment/equipment.component.scss
0 → 100644
View file @
e2a958fc
src/app/pages/equipment/equipment.component.spec.ts
0 → 100644
View file @
e2a958fc
import
{
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
EquipmentComponent
}
from
'./equipment.component'
;
describe
(
'EquipmentComponent'
,
()
=>
{
let
component
:
EquipmentComponent
;
let
fixture
:
ComponentFixture
<
EquipmentComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
declarations
:
[
EquipmentComponent
]
})
.
compileComponents
();
});
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
EquipmentComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/pages/equipment/equipment.component.ts
0 → 100644
View file @
e2a958fc
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-equipment'
,
templateUrl
:
'./equipment.component.html'
,
styleUrls
:
[
'./equipment.component.scss'
]
})
export
class
EquipmentComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
}
src/assets/img/mo.jpg
0 → 100644
View file @
e2a958fc
7.55 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment