Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myAppraisal
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
angular
myAppraisal
Commits
56efd22d
Commit
56efd22d
authored
Nov 21, 2024
by
LAPTOP-CV4JFSHE\kantavee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV' of
https://mygit.myhr.co.th/angular/myAppraisal
into DEV
parents
70965686
c4db3a6a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
89 additions
and
2 deletions
+89
-2
account-settings.component.html
...mponents/account-settings/account-settings.component.html
+8
-1
set-a-password.component.html
...unt-settings/set-a-password/set-a-password.component.html
+0
-0
set-a-password.component.scss
...unt-settings/set-a-password/set-a-password.component.scss
+60
-0
set-a-password.component.ts
...count-settings/set-a-password/set-a-password.component.ts
+18
-0
dashboard.module.ts
src/app/components/dashboard/dashboard.module.ts
+2
-0
style.css
src/assets/css/style.css
+1
-1
No files found.
src/app/components/account-settings/account-settings.component.html
View file @
56efd22d
...
...
@@ -9,7 +9,7 @@
<ul
class=
"nav-tabs"
>
<li
class=
"nav-item"
*
ngFor=
"let item of [{id:'tab1',text:'สร้างชื่อผู้ใช้งาน'},
{id:'tab2',text:'กำหนดรหัสผ่าน'},
{id:'tab3',text:'จัดการผู้ใช้งาน
(PL)
'}]"
(
click
)="
changeTab
(
item
)"
>
{id:'tab3',text:'จัดการผู้ใช้งาน'}]"
(
click
)="
changeTab
(
item
)"
>
<a
[
class
.
active
]="
activeTab =
==
item
.
id
"
class=
"nav-link"
>
{{item.text}}
</a>
</li>
</ul>
...
...
@@ -20,6 +20,12 @@
(
sendPathTitle
)="
pathTitle=
$event"
></app-user-settings>
</div>
</div>
<div
*
ngIf=
"activeTab === 'tab2'"
class=
"tab-pane"
>
<div
class=
"mt-5"
>
<app-set-a-password
[
pathTitle
]="
pathTitle
"
(
sendPathTitle
)="
pathTitle=
$event"
></app-set-a-password>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/components/account-settings/set-a-password/set-a-password.component.html
0 → 100644
View file @
56efd22d
This diff is collapsed.
Click to expand it.
src/app/components/account-settings/set-a-password/set-a-password.component.scss
0 → 100644
View file @
56efd22d
/* สไตล์ของแถบเมนู */
.nav-tabs
{
display
:
flex
;
width
:
100%
;
cursor
:
pointer
;
margin-bottom
:
10px
;
}
.nav-item
{
list-style
:
none
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link
{
text-decoration
:
none
;
padding
:
10px
20px
;
display
:
inline-block
;
font-size
:
large
;
border-width
:
2px
2px
0px
2px
;
border-style
:
solid
;
border-color
:
#ccc
;
border-radius
:
5px
5px
0px
0px
;
}
.nav-link
:hover
{
background-color
:
#f0f0f0
;
/* เปลี่ยนสีเมื่อ hover */
}
.nav-link.active
{
color
:
#ffffff
;
/* สีตัวอักษรในสถานะ active */
font-size
:
large
;
border-bottom
:
3
.5px
solid
rgb
(
var
(
--
color-primary
));
/* เส้นใต้ */
background-color
:
rgb
(
var
(
--
color-primary
));
border-width
:
2px
2px
0px
2px
;
border-style
:
solid
;
border-color
:
rgb
(
var
(
--
color-primary
));
border-radius
:
5px
5px
0px
0px
;
}
.tab-content
{
margin-top
:
20px
;
}
.tab-pane.active
{
display
:
block
;
}
.nav-item-text
{
list-style
:
none
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link-text
{
text-decoration
:
none
;
display
:
inline-block
;
font-size
:
large
;
color
:
#569bf5
;
border-bottom
:
2px
solid
#569bf5
;
line-height
:
0
.8
;
}
\ No newline at end of file
src/app/components/account-settings/set-a-password/set-a-password.component.ts
0 → 100644
View file @
56efd22d
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-set-a-password'
,
templateUrl
:
'./set-a-password.component.html'
,
styleUrls
:
[
'./set-a-password.component.scss'
]
})
export
class
SetAPasswordComponent
{
@
Input
()
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'ตั้งค่าผู้ใช้งาน'
,
'สร้างรหัสผู้ใช้งาน'
]
@
Output
()
sendPathTitle
:
EventEmitter
<
string
[]
>
=
new
EventEmitter
<
string
[]
>
();
activeTab
:
string
=
'tab1'
;
// กำหนด tab เริ่มต้น
// ฟังก์ชันในการเปลี่ยนแท็บ
changeTab
(
tab
:
{
id
:
string
,
text
:
string
})
{
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ตั้งค่าผู้ใช้งาน'
,
tab
.
text
])
this
.
activeTab
=
tab
.
id
;
}
}
src/app/components/dashboard/dashboard.module.ts
View file @
56efd22d
...
...
@@ -36,6 +36,7 @@ import { EmployeeCategories } from '../job-description/employee-categories/emplo
import
{
AccountSettingsComponent
}
from
'../account-settings/account-settings.component'
;
import
{
UserSettingsComponent
}
from
'../account-settings/user-settings/user-settings.component'
;
import
{
EmployeeLevel
}
from
'../job-description/employee-level/employee-level.component'
;
import
{
SetAPasswordComponent
}
from
'../account-settings/set-a-password/set-a-password.component'
;
@
NgModule
({
declarations
:
[
...
...
@@ -69,6 +70,7 @@ import { EmployeeLevel } from '../job-description/employee-level/employee-level.
AccountSettingsComponent
,
UserSettingsComponent
,
EmployeeLevel
,
SetAPasswordComponent
],
imports
:
[
CommonModule
,
...
...
src/assets/css/style.css
View file @
56efd22d
...
...
@@ -1604,7 +1604,7 @@ select option:active,
color
:
rgb
(
255
255
255
/
var
(
--tw-text-opacity
));
}
.box-body
{
padding
:
1.5
rem
;
padding
:
0
rem
;
}
.box-footer
{
border-bottom-right-radius
:
0.25rem
;
...
...
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