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
031079de
Commit
031079de
authored
Dec 23, 2021
by
Chanachai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update show calendar pop up
parent
880636d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
13 deletions
+56
-13
home-page-calendar.component.html
src/app/pages/home-page/home-page-calendar.component.html
+35
-6
home-page.component.scss
src/app/pages/home-page/home-page.component.scss
+1
-2
home-page.component.ts
src/app/pages/home-page/home-page.component.ts
+20
-5
No files found.
src/app/pages/home-page/home-page-calendar.component.html
View file @
031079de
<div
class=
"modal-header"
>
<h4
class=
"modal-title"
>
Hi there!
</h4>
<h4
class=
"modal-title"
>
รายละเอียดการจอง
</h4>
<button
type=
"button"
class=
"close"
aria-label=
"Close"
(
click
)="
activeModal
.
dismiss
('
Cross
click
')"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<p>
Hello, {{name}}!
</p>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-outline-dark"
(
click
)="
activeModal
.
close
('
Close
click
')"
>
Close
</button>
<div
class=
" modal-body"
>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
ชื่อผู้จอง
</label>
<input
readonly
class=
" form-control"
placeholder=
""
type=
"text"
value=
{{name}}
/>
</div>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
เบอร์โทร
</label>
<input
readonly
class=
" form-control"
placeholder=
""
type=
"text"
value=
{{telephone}}
/>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-12 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
ชื่อห้อง
</label>
<input
readonly
class=
"form-control"
type=
"text"
value=
{{rName}}
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
เวลาที่เริ่มต้น
</label>
<input
readonly
class=
"form-control"
type=
"time"
value=
{{sTime}}
>
</div>
<div
class=
"col-6 mb-1"
>
<label
readonly
for=
"exampleFormControlSelect1"
>
เวลาที่สิ้นสุด
</label>
<input
readonly
class=
"form-control"
type=
"time"
value=
{{eTime}}
>
</div>
</div>
</div>
\ No newline at end of file
src/app/pages/home-page/home-page.component.scss
View file @
031079de
...
...
@@ -10,4 +10,4 @@
::ng-deep
.fc-direction-ltr
.fc-daygrid-event.fc-event-end
,
.fc-direction-rtl
.fc-daygrid-event.fc-event-start
{
margin-right
:
2px
;
background-color
:
blueviolet
;
}
\ No newline at end of file
}
src/app/pages/home-page/home-page.component.ts
View file @
031079de
...
...
@@ -9,14 +9,19 @@ import { MyRoom } from 'src/app/models/rooms.model';
import
{
EquirmentService
}
from
'src/app/service/equirment.service'
;
import
{
RoomService
}
from
'src/app/service/room.service'
;
import
{
RoomDetail
}
from
'src/app/models/RoomDetail.model'
;
import
{
FormControl
,
FormGroup
}
from
'@angular/forms'
;
@
Component
({
selector
:
'ngbd-modal-content'
,
templateUrl
:
'./home-page-calendar.component.html'
templateUrl
:
'./home-page-calendar.component.html'
,
})
export
class
NgbdModalContent
{
@
Input
()
name
;
telephone
;
rName
;
sTime
;
eTime
;
constructor
(
public
activeModal
:
NgbActiveModal
)
{
}
}
...
...
@@ -85,6 +90,10 @@ export class HomePageComponent implements OnInit {
closeResult
=
''
;
myFormRoom
:
FormGroup
;
myFormEquir
:
FormGroup
;
calendarRoom
:
CalendarOptions
=
{
initialView
:
'dayGridMonth'
,
dateClick
:
this
.
handleDateClick
.
bind
(
this
),
// bind is important!
...
...
@@ -239,7 +248,14 @@ export class HomePageComponent implements OnInit {
eventShow
()
{
this
.
listRoomDetail
=
this
.
RoomDetailService
.
getListRoomDetail
();
const
modalRef
=
this
.
modalService
.
open
(
NgbdModalContent
);
modalRef
.
componentInstance
.
name
=
''
;
modalRef
.
componentInstance
.
rName
=
'World'
;
modalRef
.
componentInstance
.
name
=
this
.
selectedRoomDetail
.
userName
;
modalRef
.
componentInstance
.
telephone
=
this
.
selectedRoomDetail
.
rTelephone
;
modalRef
.
componentInstance
.
rName
=
this
.
selectedRoomDetail
.
room
.
rName
;
modalRef
.
componentInstance
.
sTime
=
this
.
selectedRoomDetail
.
sTime
;
modalRef
.
componentInstance
.
eTime
=
this
.
selectedRoomDetail
.
eTime
;
}
}
\ No newline at end of file
}
function
content
(
content
:
any
,
arg1
:
{
ariaLabelledBy
:
string
;
})
{
throw
new
Error
(
'Function not implemented.'
);
}
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