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
c68cef85
Commit
c68cef85
authored
Mar 16, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
project
parent
9b06365e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
113 deletions
+67
-113
company-manage.component.html
...p/DPU/common/company-manage/company-manage.component.html
+67
-113
No files found.
Web-Manage/src/app/DPU/common/company-manage/company-manage.component.html
View file @
c68cef85
...
@@ -47,127 +47,80 @@
...
@@ -47,127 +47,80 @@
</ul> -->
</ul> -->
</div>
</div>
</div>
</div>
<div
class=
"box-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table whitespace-nowrap min-w-full ti-custom-table-hover"
>
<thead>
<tr
class=
"border-b border-defaultborder"
>
<th
scope=
"col"
class=
"!text-start"
>
<input
class=
"form-check-input check-all"
type=
"checkbox"
id=
"all-products"
(
change
)="
toggleAll
($
event
)"
[
checked
]="
allSelected
"
aria-label=
"..."
>
</th>
<th
scope=
"col"
class=
"text-start"
>
โครงการ
</th>
<!-- <th scope="col" class="text-start">รหัสย่อโครงการ</th> -->
<th
scope=
"col"
class=
"text-start"
>
รายละเอียดโครงการ
</th>
<!-- <th scope="col" class="text-start">{{"Status" | translate}}</th>
<th scope="col" class="text-start">{{"Update Date" | translate}}</th> -->
<th
scope=
"col"
class=
"text-start"
></th>
</tr>
</thead>
<tbody>
@for(item of filterList;track filterList){
<tr
class=
"border border-defaultborder dark:border-defaultborder/10"
>
<td
class=
"product-checkbox"
><input
class=
"form-check-input"
type=
"checkbox"
[
checked
]="
selectedItems
.
get
(
item
.
projectId
!)"
(
change
)="
onCheckboxChange
(
item
.
projectId
!)"
aria-label=
"..."
value=
""
>
</td>
<td>
<div
class=
"flex items-center"
>
<span
class=
"avatar avatar-sm p-1 me-1 bg-light !rounded-full"
>
<img
[
src
]="
item
.
getPicture
()"
alt=
""
id=
"profile-img"
>
</span>
<div
class=
"ms-2"
>
<p
class=
"font-semibold mb-0 flex items-center text-primary"
><a
routerLink=
"/company/home/{{item.projectId}}"
routerLinkActive=
"active"
>
{{item.project_name}}
</a></p>
<p
class=
"text-[0.75rem] text-muted mb-0"
>
{{item.projectId}}
</p>
</div>
</div>
</td>
<!-- <td>
<div class="flex">
<div class="ms-2">
<p class="font-semibold mb-0 flex items-center text-primary"><a routerLink="/company/home/{{item.projectId}}" routerLinkActive="active">
{{item.project_name}}</a></p>
<p class="text-[0.75rem] text-muted mb-0">{{item.projectId}}</p>
</div>
</div>
</td> -->
<!-- <td> {{item.companyCode}}</td> -->
<td>
<div>
<span
class=
"block mb-1"
><i
class=
"ri-home-line me-2 align-middle text-[.875rem] text-[#8c9097] dark:text-white/50 inline-flex"
></i>
{{item.project_desc}}
</span>
</div>
</td>
<!-- <td> <span
class="badge bg-{{ item.status == 1 ? 'primary' : 'danger'}} text-white">{{item.getStatus()}}</span>
</td> -->
<!-- <td><span class="badge bg-info/10 text-primary"><i class="bi bi-clock me-1"></i>{{item.updatedAt | date
: 'medium'}}</span></td>
<td> -->
<td>
</div>
<div
class=
"flex flex-row items-center !gap-2 "
>
</div>
<a
aria-label=
"anchor"
(
click
)="
view
(
item
)"
data-hs-overlay=
"#modal-detail"
</div>
class=
"ti-btn ti-btn-wave !gap-0 !m-0 bg-info/10 text-info hover:bg-info hover:text-white hover:border-info"
><i
class=
"ri-pencil-line"
></i></a>
<a
aria-label=
"anchor"
href=
"javascript:void(0);"
(
click
)="
delete
(
item
)"
class=
"ti-btn ti-btn-wave product-btn !gap-0 !m-0 bg-danger/10 text-danger hover:bg-danger hover:text-white hover:border-danger"
><i
class=
"ri-delete-bin-line"
></i></a>
</div>
</td>
</tr>
}
</tbody>
<div
class=
"grid grid-cols-12 gap-x-6"
>
</table>
@for(item of filterList;track filterList){
<div
class=
"xxl:col-span-3 xl:col-span-4 md:col-span-6 col-span-12"
>
<div
class=
"box custom-box"
>
<div
class=
"box-header items-center !justify-start flex-wrap !flex"
>
<div
class=
"me-2"
>
<span
class=
"avatar avatar-rounded p-1 bg-danger/10 text-danger"
>
<img
src=
"{{item.getPicture()}}"
alt=
""
>
</span>
</div>
<div
class=
"flex-grow"
>
<a
href=
"javascript:void(0);"
class=
"font-semibold text-[.875rem] block text-truncate project-list-title"
>
{{item.project_name}}
</a>
<span
class=
"text-[#8c9097] dark:text-white/50 block text-[0.75rem]"
>
{{item.project_code}}
</span>
</div>
<div
class=
"hs-dropdown ti-dropdown"
>
<a
aria-label=
"anchor"
href=
"javascript:void(0);"
class=
"ti-btn ti-btn-sm ti-btn-light !mb-0"
aria-expanded=
"false"
>
<i
class=
"fe fe-more-vertical"
></i>
</a>
<ul
class=
"hs-dropdown-menu ti-dropdown-menu hidden"
>
<li><a
class=
"ti-dropdown-item"
><i
class=
"ri-eye-line align-middle me-1 inline-flex"
></i>
View
</a></li>
<li><a
class=
"ti-dropdown-item"
(
click
)="
view
(
item
)"
data-hs-overlay=
"#modal-detail"
><i
class=
"ri-edit-line align-middle me-1 inline-flex"
></i>
Edit
</a></li>
<li><a
class=
"ti-dropdown-item"
(
click
)="
delete
(
item
)"
><i
class=
"ri-delete-bin-line me-1 align-middle inline-flex"
></i>
Delete
</a></li>
</ul>
</div>
</div>
</div>
</div>
<div
class=
"box-footer"
>
<div
class=
"box-body"
>
<div
class=
"flex items-center flex-wrap overflow-auto"
*
ngIf=
"filterList.length > 0"
>
<div
class=
"mb-2 sm:mb-0"
>
<div>
{{'Showing' | translate}} {{filterList.length}} {{'entries'
| translate}}
<i
class=
"bi bi-arrow-right ms-2 font-semibold"
></i>
</div>
</div>
<div
class=
"ms-auto"
>
<nav
aria-label=
"Page navigation"
>
<ul
class=
"ti-pagination mb-0"
>
<li
*
ngIf=
"pageIndex>0"
class=
"page-item {{pageIndex==0 ? 'disabled' : ''}}"
><a
class=
"page-link px-3 py-[0.375rem]"
(
click
)="
pageIndex =
pageIndex-1;updatePagedItems()"
>
{{'Previous' | translate}}
</a></li>
<li
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
*
ngIf=
"pageIndex-1>0"
(
click
)="
pageIndex =
pageIndex-2;updatePagedItems()"
>
{{pageIndex-1}}
</a></li>
<li
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
*
ngIf=
"pageIndex>0 && ((pageIndex-1)*10 < (searchTerm == '' ? itemsList.length : filterList.length))"
(
click
)="
pageIndex =
pageIndex-1;updatePagedItems()"
>
{{pageIndex}}
</a></li>
<li
class=
"page-item"
><a
class=
"page-link active px-3 py-[0.375rem]"
<div
class=
"font-semibold mb-1"
>
รายละเอียดโครงการ :
</div>
href=
"javascript:void(0);"
>
{{pageIndex +1}}
</a>
<p
class=
"text-[#8c9097] dark:text-white/50 mb-3"
>
{{item.project_desc}}
</p>
</li>
<div
class=
"flex items-center justify-between mb-3"
>
<li
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
<div>
*
ngIf=
"(pageIndex+1)*10 < (searchTerm == '' ? itemsList.length : filterList.length)"
<div
class=
"font-semibold mb-1"
>
ผู้รับผิดชอบ :
</div>
(
click
)="
pageIndex =
pageIndex+1;updatePagedItems()"
>
{{pageIndex +2}}
</a></li>
<span
class=
"badge bg-success/10 text-success"
>
{{item.responsible}}
</span>
<li
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
</div>
*
ngIf=
"(pageIndex+2)*10 < (searchTerm == '' ? itemsList.length : filterList.length)"
<div
class=
"text-end"
>
(
click
)="
pageIndex =
pageIndex+2;updatePagedItems()"
>
{{pageIndex +3}}
</a></li>
<div
class=
"font-semibold mb-1"
>
ติดต่อ :
</div>
<li
*
ngIf=
"(pageIndex+1)*10 < (searchTerm == '' ? itemsList.length : filterList.length)"
<span
class=
"badge bg-success/10 text-success"
>
{{item.contact}}
</span>
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
(
click
)="
pageIndex =
pageIndex+1;updatePagedItems()"
>
{{'Next' |
translate}}
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="box-footer flex items-center justify-between">
<div>
<span class="text-[#8c9097] dark:text-white/50 text-[0.6875rem] block">ผู้รับผิดชอบ :</span>
<span class="font-semibold block">{{item.responsible}}</span>
</div>
<div class="text-end">
<span class="text-[#8c9097] dark:text-white/50 text-[0.6875rem] block">การติดต่อ :</span>
<span class="font-semibold block">{{item.contact}}</span>
</div>
</div> -->
</div>
</div>
</div>
</div>
}
</div>
</div>
<nav
aria-label=
"Page navigation"
>
<ul
class=
"ti-pagination ltr:float-right rtl:float-left mb-4"
>
<li
class=
"page-item disabled"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
>
Previous
</a></li>
<li
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
>
1
</a></li>
<li
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
>
2
</a></li>
<li
class=
"page-item"
><a
class=
"page-link px-3 py-[0.375rem]"
href=
"javascript:void(0);"
>
Next
</a></li>
</ul>
</nav>
...
@@ -176,7 +129,8 @@
...
@@ -176,7 +129,8 @@
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out"
>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out"
>
<div
class=
"ti-modal-content"
>
<div
class=
"ti-modal-content"
>
<div
class=
"ti-modal-header"
>
<div
class=
"ti-modal-header"
>
<h6
class=
"modal-title text-[1rem] font-semibold text-defaulttextcolor"
id=
"mail-ComposeLabel"
>
{{ 'รายละเอียดโครงการ' }}
<h6
class=
"modal-title text-[1rem] font-semibold text-defaulttextcolor"
id=
"mail-ComposeLabel"
>
{{
'รายละเอียดโครงการ' }}
</h6>
</h6>
<button
type=
"button"
class=
"hs-dropdown-toggle !text-[1rem] !font-semibold !text-defaulttextcolor"
<button
type=
"button"
class=
"hs-dropdown-toggle !text-[1rem] !font-semibold !text-defaulttextcolor"
data-hs-overlay=
"#modal-detail"
#
closeModal
>
data-hs-overlay=
"#modal-detail"
#
closeModal
>
...
@@ -226,13 +180,13 @@
...
@@ -226,13 +180,13 @@
<div
class=
"xl:col-span-12 col-span-12"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{'การติดต่อ' | translate}}
</label>
<label
for=
"deal-title"
class=
"form-label"
>
{{'การติดต่อ' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
selectModel
.
contact
"
>
[(
ngModel
)]="
selectModel
.
contact
"
>
</div>
</div>
<div
class=
"xl:col-span-12 col-span-12"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{'รายละเอียดโครงการ' | translate}}
</label>
<label
for=
"deal-title"
class=
"form-label"
>
{{'รายละเอียดโครงการ' | translate}}
</label>
<textarea
class=
"form-control"
id=
"job-description"
[(
ngModel
)]="
selectModel
.
project_desc
"
rows=
"4"
></textarea>
<textarea
class=
"form-control"
id=
"job-description"
[(
ngModel
)]="
selectModel
.
project_desc
"
rows=
"4"
></textarea>
<!-- <input type="text" class="form-control" id="deal-title" placeholder=""
<!-- <input type="text" class="form-control" id="deal-title" placeholder=""
[(ngModel)]="selectModel.project_desc">
[(ngModel)]="selectModel.project_desc">
<div class="text-danger" *ngIf="!selectModel.project_desc">
<div class="text-danger" *ngIf="!selectModel.project_desc">
...
...
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