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
9849c018
Commit
9849c018
authored
Dec 21, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updae contact-admin
parent
4fdd3fa9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
sidebar.component.ts
src/app/components/sidebar/sidebar.component.ts
+3
-4
contact-admin.component.html
src/app/pages/contact-admin/contact-admin.component.html
+4
-4
contact-admin.component.ts
src/app/pages/contact-admin/contact-admin.component.ts
+6
-6
contact.service.ts
src/app/service/contact.service.ts
+1
-1
No files found.
src/app/components/sidebar/sidebar.component.ts
View file @
9849c018
...
...
@@ -33,7 +33,7 @@ export const ROUTES: RouteInfo[] = [
path
:
"/pending"
,
title
:
"รายการทั้งหมด"
,
rtlTitle
:
""
,
icon
:
"icon-
notes
"
,
icon
:
"icon-
paper
"
,
class
:
""
},
{
...
...
@@ -43,14 +43,13 @@ export const ROUTES: RouteInfo[] = [
icon
:
"icon-bag-16"
,
class
:
""
},
{
path
:
"/contact-admin"
,
title
:
"ติดต่อแอดมิน"
,
rtlTitle
:
""
,
icon
:
"icon-
bag-16
"
,
icon
:
"icon-
settings
"
,
class
:
""
}
,
}
];
@
Component
({
...
...
src/app/pages/contact-admin/contact-admin.component.html
View file @
9849c018
...
...
@@ -5,11 +5,11 @@
<div
class=
"row"
>
<div
class=
"col-6 md-1"
>
<label>
ชื่อผู้แจ้ง Bug:
</label>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
formControlName=
"ctName"
/>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
formControlName=
"ctName"
[(
ngModel
)]="
modelContact
.
ctName
"
/>
</div>
<div
class=
"col-6 md-1"
>
<label
for=
"typeahead-focus"
>
หัวข้อการแจ้ง Bug:
</label>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
formControlName=
"ctHead"
/>
<input
input
class=
" form-control"
placeholder=
""
type=
"text"
formControlName=
"ctHead"
[(
ngModel
)]="
modelContact
.
ctHead
"
/>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -21,7 +21,7 @@
</div>
<div
class=
"col-6 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
วันที่เริ่มต้น
</label>
<input
type=
"date"
class=
"form-control"
value=
""
formControlName=
"sDate"
>
<input
type=
"date"
class=
"form-control"
value=
""
formControlName=
"sDate"
[(
ngModel
)]="
modelContact
.
sDate
"
>
</div>
</div>
<div
class=
" row"
>
...
...
@@ -29,7 +29,7 @@
<div
class=
" form-group"
>
<label>
หมายเหตุ
</label>
<textarea
class=
"form-control"
id=
"exampleFormControlTextarea1"
rows=
"3"
placeholder=
"......"
formControlName=
"ctDesc"
></textarea>
placeholder=
"......"
formControlName=
"ctDesc"
[(
ngModel
)]="
modelContact
.
ctDesc
"
></textarea>
</div>
</div>
</div>
...
...
src/app/pages/contact-admin/contact-admin.component.ts
View file @
9849c018
...
...
@@ -106,12 +106,12 @@ export class ContactAdminComponent implements OnInit {
saveStatusContact
()
{
this
.
modelContact
.
ctName
=
this
.
myFormContact
.
value
.
ctName
this
.
modelContact
.
ctDesc
=
this
.
myFormContact
.
value
.
ctDesc
this
.
modelContact
.
ctTab
=
this
.
myFormContact
.
value
.
ctTab
this
.
modelContact
.
ctHead
=
this
.
myFormContact
.
value
.
ctHead
this
.
modelContact
.
ctStatus
=
this
.
myFormContact
.
value
.
ctStatus
this
.
modelContact
.
sDate
=
this
.
myFormContact
.
value
.
sDate
this
.
modelContact
.
ctName
=
new
this
.
myFormContact
.
value
.
ctName
this
.
modelContact
.
ctDesc
=
new
this
.
myFormContact
.
value
.
ctDesc
this
.
modelContact
.
ctTab
=
new
this
.
myFormContact
.
value
.
ctTab
this
.
modelContact
.
ctHead
=
new
this
.
myFormContact
.
value
.
ctHead
this
.
modelContact
.
ctStatus
=
new
this
.
myFormContact
.
value
.
ctStatus
this
.
modelContact
.
sDate
=
new
this
.
myFormContact
.
value
.
sDate
this
.
ContactService
.
updateContact
(
this
.
modelContact
)
this
.
modalService
.
dismissAll
();
this
.
ngOnInit
();
...
...
src/app/service/contact.service.ts
View file @
9849c018
...
...
@@ -15,7 +15,7 @@ export class ContactService {
ctTab
:
'รายการอุปกรณ์'
,
ctHead
:
'กดจองไม่ได้'
,
ctStatus
:
0
,
sDate
:
'2021
/12/
17'
sDate
:
'2021
-12-
17'
},
]
...
...
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