<div class="header-title-type"> <div class="flex justify-between"> <div class="flex"> <!-- Content ของ div แรก --> <div class="flex gap-x-6"> <div class="flex items-center"> <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-checkbox-group-1"> <label for="hs-checkbox-group-1" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">0 Selected</label> </div> <div class="flex items-center"> <i (click)="toggleCheckbox()" [ngClass]="{'ri-checkbox-multiple-line': !isChecked, 'ri-checkbox-multiple-fill': isChecked}" class="ri-checkbox-multiple-line text-gray-500 dark:text-white/70"></i> <label for="hs-checkbox-group-2" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70" (click)="toggleCheckbox()">Select All</label> </div> </div> </div> <div class="flex justify-end"> <div class="px-1"> <div class="relative shadow-md"> <input type="text" id="hs-leading-icon" name="hs-leading-icon" class="ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 " placeholder="Search by No. or Name" style="height: 40px;"> <div class="absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"> <i class="ri-search-line text-gray"></i> </div> </div> </div> <div class="px-1"> <button type="button" class="ti-btn ti-btn bg-pink-500/10 text-pink-500 hover:text-white hover:bg-pink-500 ring-offset-white focus:ring-pink-500 dark:focus:ring-offset-white/10 h-10 m-0 shadow-md" data-hs-overlay="#competency-topic-modal-add"> <i class="ti ti-file-plus"></i> import </button> </div> <div class="px-1"> <button type="button" class="ti-btn ti-btn-soft-secondary h-10 m-0 shadow-md" data-hs-overlay="#competency-topic-modal-add"> <i class="ri-add-line"></i> Add </button> </div> <div class="px-1"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-danger h-10 m-0 shadow-md" data-hs-overlay="#competency-topic-alert-delete-modal"> <i class="ri-delete-bin-6-line"></i> Delete </button> </div> <div class="px-1"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-10 m-0 shadow-md"> <i class="ti ti-book fs-l"></i> Help </button> </div> </div> </div> </div> <div class="page px-rem"> <div class="overflow-auto table-bordered rounded-t-md"> <div id="card-type-1" role="tabpanel" aria-labelledby="card-type-item-1"> <div class="overflow-auto shadow-md"> <table class="ti-custom-table ti-custom-table-head ti-custom-table-hover"> <thead> <tr> <ng-container *ngFor="let item of ['รหัส','ชื่อหัวข้อ','ประเภท','Action']; let f = first; let l = last; let i = index"> <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary" [class.!text-center]="f||l"> <span class="text-sm">{{ item }}</span> <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==1"> <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="30" height="13" fill="currentColor" viewBox="0 0 16 16"> <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"> </path> </svg> </div> <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==2"> <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="30" height="13" fill="currentColor" viewBox="0 0 16 16"> <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"> </path> </svg> </div> </th> </ng-container> </tr> </thead> <tbody> <tr *ngFor="let item of[ ['CC-01', 'จิตสำนึกด้านความปลอดภัยและคุณภาพ (Safety & Quality)','CC'], ['CC-02', 'การทำงานเป็นทีมแบบ TAT (TAT Teamwork)','CC'], ['CC-03', 'ความรับผิดชอบในหน้าที่และโปร่งใส (Accountability & Ethics)','CC'], ['MC-01', 'การคิดเชิงกลยุทธิ์ (Strategic Thinking)','MC'], ['MC-02', 'การมีทัศนคติเชิงบวก (Mindset-Growth)','MC'], ['PC-01', 'ความรู้ด้านกฏหมายแรงงาน, กฏหมายแพ่งภาณิชย์, กฏหมายอาญา','PC']];let i = index"> <td class="flex justify-center" style="height: 40px; font-size: 12px; margin-right: 25px;"> <input type="checkbox" style="margin-right: 20px; transform: scale(0.7);"> <span style="display: inline-block; ">{{ item[0] }}</span> </td> <td style="font-size: 12px; width: 40%;">{{item[1]}}</td> <td style="font-size: 12px; width: 40%;">{{item[2]}}</td> <td class="flex justify-center"> <i class="ti ti-edit cursor-pointer i-gray fs-l px-1" data-hs-overlay="#competency-topic-modal-edit"></i> <i class="ti ti-trash cursor-pointer i-gray fs-l px-1" data-hs-overlay="#competency-topic-alert-delete-modal"></i> </td> </tr> </tbody> </table> </div> </div> </div> <div class="body-content" style="margin-top: 20px;"> <ul class="nav-tabs"> <div class="px-1 py-1 bg-white rounded-2 shadow justify-content-center align-items-center"> <div class="box-body"> <nav class="pagination-style-3 overflow-auto"> <ul class="ti-pagination"> <li> <a aria-label="anchor" class="page-link" href="javascript:void(0);"> <i class="ri-arrow-left-s-line align-middle rtl:rotate-180"></i> </a> </li> <li><a class="page-link active" href="javascript:void(0);" aria-current="page">1</a></li> <li><a class="page-link" href="javascript:void(0);">2</a></li> <li><a class="page-link" href="javascript:void(0);">3</a></li> <li><a class="page-link" href="javascript:void(0);">4</a></li> <li><a class="page-link" href="javascript:void(0);">5</a></li> <li><a class="page-link" href="javascript:void(0);">...</a></li> <li><a class="page-link" href="javascript:void(0);">31</a></li> <li> <a aria-label="anchor" class="page-link" href="javascript:void(0);"> <i class="ri-arrow-right-s-line align-middle rtl:rotate-180"></i> </a> </li> </ul> </nav> </div> </div> </ul> <ul class="nav-tabs mt-1"> <p>Show 1 to 10 of 50 items</p> </ul> </div> </div> <div id="competency-topic-modal-add" class="hs-overlay hidden ti-modal"> <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]"> <div class="max-h-full overflow-hidden ti-modal-content"> <div class="ti-modal-header"> <h3 class="text-xxl font-bold text-primary"> เพิ่มหัวข้อสมรรถนะ </h3> <div class="flex justify-end"> <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger" data-hs-overlay="#competency-topic-modal-add"> <span class="sr-only">Close</span> <i class="ti ti-circle-x fs-xxl"></i> </button> </div> </div> <div class="ti-modal-center"> <div class="flex justify-end" style="padding-right: 1rem;"> <div class="px-1"> <button type="button" class="ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"> <svg class="svg-indigo" width="16" height="16" viewBox="0 0 64.00 64.00" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#595BEA" stroke-width="3.84" transform="rotate(45)matrix(-1, 0, 0, 1, 0, 0)"> <g id="SVGRepo_bgCarrier" stroke-width="0"></g> <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g> <g id="SVGRepo_iconCarrier"> <path d="M15 49A24 24 0 0 1 32 8"></path> <path d="M49 15a24 24 0 0 1-17 41"></path> <polyline points="15.03 40 15.03 48.97 8 48.97"></polyline> <polyline points="48.97 24 48.97 15.03 56 15.03"></polyline> </g> </svg> Clear </button> </div> <div class="px-1"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md"> <i class="ti ti-book fs-l"></i> Help </button> </div> </div> </div> <div class="ti-modal-body mt-1"> <label for="input-label" class="ti-form-label">รหัส*</label> <input type="text" id="input-label" class="ti-form-input w-1/2" placeholder=""> <label for="detail_th" class="ti-form-label mt-2rem">ชื่อหัวข้อ (ไทย)</label> <input type="text" id="detail_th" class="ti-form-input h-10" placeholder=""> <label for="detail_eng" class="ti-form-label mt-2rem">ชื่อหัวข้อ (อังกฤษ)</label> <input type="text" id="detail_eng" class="ti-form-input h-10" placeholder=""> <label for="detail_eng" class="ti-form-label mt-2rem">นิยามสมรรถนะ</label> <textarea type="text" id="detail_eng" class="ti-form-input" rows="4" cols="50"> </textarea> <label class="ti-form-label mt-2rem">ประเภท Competency</label> <div class="flex"> <div class="relative flex rounded-md w-1/2"> <input type="text" id="hs-leading-button-add-on-with-icon-and-button" name="hs-leading-button-add-on-with-icon-and-button" class="ti-form-input rounded-md ltr:rounded-r-md rtl:rounded-l-md focus:z-10" style="padding-right: 2.5rem;"> <div class="absolute inset-y-0 ltr:right-0 rtl:left-0 flex items-center z-20 ltr:pr-4 rtl:pl-4 space-x-2"> <button type="button" class="flex items-center text-gray-500 dark:text-white/70" data-hs-overlay="#competency-topic-table-modal-select"> <i class="ri-search-line cursor-pointer text-gray"></i> </button> </div> </div> </div> <label class="ti-form-label mt-2rem">แนบไฟล์ข้อสอบ</label> <div> <div class="flex rounded-md"> <label for="file-input-medium" class="sr-only">อัปโหลดไฟล์</label> <input type="file" id="file-input-medium" name="file-input-medium" class="block w-full border border-gray-200 focus:shadow-sm dark:focus:shadow-white/10 ltr:rounded-l-md rtl:rounded-r-none text-sm focus:z-10 focus:outline-0 focus:border-gray-200 dark:focus:border-white/10 dark:border-white/10 dark:text-white/70 file:border-0 file:bg-gray-100 ltr:file:mr-4 rtl:file:ml-4 file:py-3 file:px-4 dark:file:bg-black/20 dark:file:text-white/70"> <span class="px-4 inline-flex items-center min-w-fit ltr:rounded-r-md rtl:rounded-l-none border ltr:border-l-0 rtl:border-r-0 border-gray-200 bg-gray-50 text-sm dark:bg-black/20 dark:border-white/10"> <button class="text-sm text-gray-500 dark:text-white/70" onclick="document.getElementById('file-input-medium').click();">Browse</button> </span> <div class="flex items-center ml-2"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-danger h-10px m-0 shadow-md rounded-md"> <i class="ri-delete-bin-6-line"></i> Delete </button> </div> </div> </div> <div class="flex justify-end mt-3rem mb-1rem space-x-4"> <button type="button" class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10" data-hs-overlay="#competency-topic-modal-add"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#competency-topic-alert-add-modal"> บันทึกข้อมูล </a> </div> </div> </div> </div> </div> <div id="competency-topic-modal-edit" class="hs-overlay hidden ti-modal"> <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]"> <div class="max-h-full overflow-hidden ti-modal-content"> <div class="ti-modal-header"> <h3 class="text-xxl font-bold text-primary"> แก้ไขหัวข้อสมรรถนะ </h3> <div class="flex justify-end"> <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger" data-hs-overlay="#competency-topic-modal-edit"> <span class="sr-only">Close</span> <i class="ti ti-circle-x fs-xxl"></i> </button> </div> </div> <div class="ti-modal-center"> <div class="flex justify-end" style="padding-right: 1rem;"> <div class="px-1"> <button type="button" class="ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"> <svg class="svg-indigo" width="16" height="16" viewBox="0 0 64.00 64.00" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#595BEA" stroke-width="3.84" transform="rotate(45)matrix(-1, 0, 0, 1, 0, 0)"> <g id="SVGRepo_bgCarrier" stroke-width="0"></g> <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g> <g id="SVGRepo_iconCarrier"> <path d="M15 49A24 24 0 0 1 32 8"></path> <path d="M49 15a24 24 0 0 1-17 41"></path> <polyline points="15.03 40 15.03 48.97 8 48.97"></polyline> <polyline points="48.97 24 48.97 15.03 56 15.03"></polyline> </g> </svg> Clear </button> </div> <div class="px-1"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md"> <i class="ti ti-book fs-l"></i> Help </button> </div> </div> </div> <div class="ti-modal-body mt-1"> <label for="input-label" class="ti-form-label">รหัส*</label> <input type="text" id="input-label" class="ti-form-input w-1/2 bg-input-readonly" readonly value="CC-01" > <label for="detail_th" class="ti-form-label mt-2rem">ชื่อหัวข้อ (ไทย)</label> <input type="text" id="detail_th" class="ti-form-input h-10" value="จิตสำนึกด้านความปลอดภัยและคุณภาพ (Safety & Quality)"> <label for="detail_eng" class="ti-form-label mt-2rem">ชื่อหัวข้อ (อังกฤษ)</label> <input type="text" id="detail_eng" class="ti-form-input h-10" value="จิตสำนึกด้านความปลอดภัยและคุณภาพ (Safety & Quality)"> <label for="detail_eng" class="ti-form-label mt-2rem">นิยามสมรรถนะ</label> <textarea type="text" id="detail_eng" class="ti-form-input" rows="4" cols="50">การส่งเสริมให้ทุกคนในองค์กรมีจิตสำนึกด้านความปลอดภัยและคุณภาพโดยให้ความสำคัญกับเรื่องความปลอดภัยเป็นอันดับแรก (Safety First) สวมใส่อุปกรณ์ป้องกันเพื่อความปลอดภัย ระวังสิ่งที่อาจจะเป็นสาเหตุของอุบัติเหตุรอบๆตัว รวมถึงการให้ความสำคัญกับคุณภาพของสินค้าและบริการที่ตนเองรับผิดชอบให้ได้มาตรฐาน(Quality Awareness) มีส่วนร่วมในการควบคุมปริมาณของเสีย (Defect) การแก้ไขงาน (Rework) หรือการหยุดรองาน (Delay) ให้น้อยที่สุดประสิทธิผลในการปฏิบัติานหรื่อเครื่องจักรสูงขึ้น (Effectiveness) </textarea> <label class="ti-form-label mt-2rem">ประเภท Competency</label> <div class="flex"> <div class="relative flex rounded-md w-1/2"> <input type="text" id="hs-leading-button-add-on-with-icon-and-button" name="hs-leading-button-add-on-with-icon-and-button" class="ti-form-input rounded-md ltr:rounded-r-md rtl:rounded-l-md focus:z-10" style="padding-right: 2.5rem;" value="CC"> <div class="absolute inset-y-0 ltr:right-0 rtl:left-0 flex items-center z-20 ltr:pr-4 rtl:pl-4 space-x-2"> <button type="button" class="flex items-center text-gray-500 dark:text-white/70" data-hs-overlay="#competency-topic-table-modal-edit"> <i class="ri-search-line cursor-pointer text-gray"></i> </button> </div> </div> </div> <label class="ti-form-label mt-2rem">แนบไฟล์ข้อสอบ</label> <div> <div class="flex rounded-md"> <label for="file-input-medium" class="sr-only">อัปโหลดไฟล์</label> <input type="file" id="file-input-medium" name="file-input-medium" class="block w-full border border-gray-200 focus:shadow-sm dark:focus:shadow-white/10 ltr:rounded-l-md rtl:rounded-r-none text-sm focus:z-10 focus:outline-0 focus:border-gray-200 dark:focus:border-white/10 dark:border-white/10 dark:text-white/70 file:border-0 file:bg-gray-100 ltr:file:mr-4 rtl:file:ml-4 file:py-3 file:px-4 dark:file:bg-black/20 dark:file:text-white/70"> <span class="px-4 inline-flex items-center min-w-fit ltr:rounded-r-md rtl:rounded-l-none border ltr:border-l-0 rtl:border-r-0 border-gray-200 bg-gray-50 text-sm dark:bg-black/20 dark:border-white/10"> <button class="text-sm text-gray-500 dark:text-white/70" onclick="document.getElementById('file-input-medium').click();">Browse</button> </span> <div class="flex items-center ml-2"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-danger h-10px m-0 shadow-md rounded-md"> <i class="ri-delete-bin-6-line"></i> Delete </button> </div> </div> </div> <div class="flex justify-end mt-3rem mb-1rem space-x-4"> <button type="button" class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10" data-hs-overlay="#competency-topic-modal-edit"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#competency-topic-alert-edit-modal"> บันทึกข้อมูล </a> </div> </div> </div> </div> </div> <div id="competency-topic-table-modal-select" class="hs-overlay hidden ti-modal"> <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out lg:!max-w-4xl lg:w-full m-3 lg:!mx-auto"> <div class="max-h-full overflow-hidden ti-modal-content"> <div class="ti-modal-header"> <h3 class="text-xxl font-bold text-primary"> ประเภทสมรรถนะ </h3> <div class="flex justify-end"> <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger" data-hs-overlay="#competency-topic-modal-add"> <span class="sr-only">Close</span> <i class="ti ti-circle-x fs-xxl"></i> </button> </div> </div> <div class="ti-modal-body"> <div class="flex justify-end pb-1rem"> <div class="px-1"> <div class="relative shadow-md"> <input type="text" id="hs-leading-icon" name="hs-leading-icon" class="ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 " placeholder="Search by No. or Name"> <div class="absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"> <i class="ri-search-line text-gray"></i> </div> </div> </div> <div class="px-1"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md"> <i class="ti ti-book fs-l"></i> Help </button> </div> </div> <div class="overflow-auto table-bordered" style="border-radius: 5px;"> <div class="overflow-auto border"> <table class="ti-custom-table ti-custom-table-head ti-custom-table-hover"> <thead> <tr> <ng-container *ngFor="let item of ['รหัส','ชื่อประเภท','ชื่อย่อ','Action']; let f = first; let l = last; let i = index"> <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary" [class.!text-center]="f||l"> <span class="text-sm">{{ item }}</span> <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==1"> <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="30" height="13" fill="currentColor" viewBox="0 0 16 16"> <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"> </path> </svg> </div> <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==2"> <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="30" height="13" fill="currentColor" viewBox="0 0 16 16"> <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"> </path> </svg> </div> </th> </ng-container> </tr> </thead> <tbody> <tr *ngFor="let item of[ ['01', 'Care Competency','CC'], ['02', 'Management Competency','MC'], ['03', 'Position Competency','PC'],];let i = index"> <td class="flex justify-center" style="font-size: 12px;">{{item[0]}}</td> <td style="font-size: 12px; width: 60%;">{{item[1]}}</td> <td style="font-size: 12px; width: 20%;">{{item[2]}}</td> <td class="flex justify-center"> <div class="px-1"> <button type="button" class="ti-btn ti-btn-soft-secondary h-20px m-0 shadow-md" data-hs-overlay="#competency-topic-modal-add"> <i class="ri-add-line"></i> Select </button> </div> </td> </tr> </tbody> </table> </div> </div> <div class="body-content" style="margin-top: 20px;"> <ul class="nav-tabs"> <div class="px-1 bg-white rounded-2 shadow justify-content-center align-items-center"> <div class="box-body"> <nav class="pagination-style-3 overflow-auto"> <ul class="ti-pagination"> <li> <a aria-label="anchor" class="page-link" href="javascript:void(0);"> <i class="ri-arrow-left-s-line align-middle rtl:rotate-180"></i> </a> </li> <li><a class="page-link active" href="javascript:void(0);" aria-current="page">1</a></li> <li><a class="page-link" href="javascript:void(0);">2</a></li> <li><a class="page-link" href="javascript:void(0);">3</a></li> <li><a class="page-link" href="javascript:void(0);">4</a></li> <li><a class="page-link" href="javascript:void(0);">5</a></li> <li><a class="page-link" href="javascript:void(0);">...</a></li> <li><a class="page-link" href="javascript:void(0);">31</a></li> <li> <a aria-label="anchor" class="page-link" href="javascript:void(0);"> <i class="ri-arrow-right-s-line align-middle rtl:rotate-180"></i> </a> </li> </ul> </nav> </div> </div> </ul> <ul class="nav-tabs mt-1"> <p>Show 1 to 10 of 50 items</p> </ul> </div> </div> </div> </div> </div> <div id="competency-topic-table-modal-edit" class="hs-overlay hidden ti-modal"> <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out lg:!max-w-4xl lg:w-full m-3 lg:!mx-auto"> <div class="max-h-full overflow-hidden ti-modal-content"> <div class="ti-modal-header"> <h3 class="text-xxl font-bold text-primary"> ประเภทสมรรถนะ </h3> <div class="flex justify-end"> <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger" data-hs-overlay="#competency-topic-modal-edit"> <span class="sr-only">Close</span> <i class="ti ti-circle-x fs-xxl"></i> </button> </div> </div> <div class="ti-modal-body"> <div class="flex justify-end pb-1rem"> <div class="px-1"> <div class="relative shadow-md"> <input type="text" id="hs-leading-icon" name="hs-leading-icon" class="ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 " placeholder="Search by No. or Name"> <div class="absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"> <i class="ri-search-line text-gray"></i> </div> </div> </div> <div class="px-1"> <button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md"> <i class="ti ti-book fs-l"></i> Help </button> </div> </div> <div class="overflow-auto table-bordered" style="border-radius: 5px;"> <div class="overflow-auto border"> <table class="ti-custom-table ti-custom-table-head"> <thead> <tr> <ng-container *ngFor="let item of ['รหัส','ชื่อประเภท','ชื่อย่อ','Action']; let f = first; let l = last; let i = index"> <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary" [class.!text-center]="f||l"> <span class="text-sm">{{ item }}</span> <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==1"> <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="30" height="13" fill="currentColor" viewBox="0 0 16 16"> <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"> </path> </svg> </div> <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!f && i==2"> <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="30" height="13" fill="currentColor" viewBox="0 0 16 16"> <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"> </path> </svg> </div> </th> </ng-container> </tr> </thead> <tbody> <tr *ngFor="let item of[ ['01', 'Care Competency','CC'], ['02', 'Management Competency','MC'], ['03', 'Position Competency','PC'],];let i = index"> <td class="flex justify-center" style="font-size: 12px;">{{item[0]}}</td> <td style="font-size: 12px; width: 60%;">{{item[1]}}</td> <td style="font-size: 12px; width: 20%;">{{item[2]}}</td> <td class="flex justify-center"> <div class="px-1"> <button type="button" class="ti-btn ti-btn-soft-secondary h-20px m-0 shadow-md" data-hs-overlay="#competency-topic-modal-edit"> <i class="ri-add-line"></i> Select </button> </div> </td> </tr> </tbody> </table> </div> </div> <div class="body-content" style="margin-top: 20px;"> <ul class="nav-tabs"> <div class="px-1 bg-white rounded-2 shadow justify-content-center align-items-center"> <div class="box-body"> <nav class="pagination-style-3 overflow-auto"> <ul class="ti-pagination"> <li> <a aria-label="anchor" class="page-link" href="javascript:void(0);"> <i class="ri-arrow-left-s-line align-middle rtl:rotate-180"></i> </a> </li> <li><a class="page-link active" href="javascript:void(0);" aria-current="page">1</a></li> <li><a class="page-link" href="javascript:void(0);">2</a></li> <li><a class="page-link" href="javascript:void(0);">3</a></li> <li><a class="page-link" href="javascript:void(0);">4</a></li> <li><a class="page-link" href="javascript:void(0);">5</a></li> <li><a class="page-link" href="javascript:void(0);">...</a></li> <li><a class="page-link" href="javascript:void(0);">31</a></li> <li> <a aria-label="anchor" class="page-link" href="javascript:void(0);"> <i class="ri-arrow-right-s-line align-middle rtl:rotate-180"></i> </a> </li> </ul> </nav> </div> </div> </ul> <ul class="nav-tabs mt-1"> <p>Show 1 to 10 of 50 items</p> </ul> </div> </div> </div> </div> </div> <div id="competency-topic-alert-add-modal" class="hs-overlay hidden ti-modal"> <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)] flex items-center"> <div class="max-h-full overflow-hidden ti-modal-content w-full"> <div class="ti-modal-header"> <h3 class="text-xxl font-bold text-primary"> แจ้งเตือน </h3> <div class="flex justify-end"> <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger" data-hs-overlay="#competency-topic-alert-add-modal"> <span class="sr-only">Close</span> <i class="ti ti-circle-x fs-xxl"></i> </button> </div> </div> <div class="ti-modal-body "> <p class="mt-1 text-gray-800 dark:text-white/70"> ยืนยันการบันทึกข้อมูลหรือไม่ </p> <div class="flex justify-end mt-2rem mb-1rem"> <button type="button" class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10" data-hs-overlay="#competency-topic-modal-add"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#competency-topic-alert-add-modal" (click)="addUser();showSuccess()"> บันทึกข้อมูล </a> </div> </div> </div> </div> </div> <div id="competency-topic-alert-edit-modal" class="hs-overlay hidden ti-modal"> <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)] flex items-center"> <div class="max-h-full overflow-hidden ti-modal-content w-full"> <div class="ti-modal-header"> <h3 class="text-xxl font-bold text-primary"> แจ้งเตือน </h3> <div class="flex justify-end"> <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger" data-hs-overlay="#competency-topic-alert-edit-modal"> <span class="sr-only">Close</span> <i class="ti ti-circle-x fs-xxl"></i> </button> </div> </div> <div class="ti-modal-body "> <p class="mt-1 text-gray-800 dark:text-white/70"> ยืนยันการเเก้ไขข้อมูลหรือไม่ </p> <div class="flex justify-end mt-2rem mb-1rem"> <button type="button" class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10" data-hs-overlay="#competency-topic-modal-edit"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#competency-topic-alert-edit-modal" (click)="addUser();showSuccessEdit()"> บันทึกข้อมูล </a> </div> </div> </div> </div> </div> <div id="competency-topic-alert-delete-modal" class="hs-overlay hidden ti-modal"> <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)] flex items-center"> <div class="max-h-full overflow-hidden ti-modal-content w-full"> <div class="ti-modal-header"> <h3 class="text-xxl font-bold text-primary"> แจ้งเตือน </h3> <div class="flex justify-end"> <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger" data-hs-overlay="#competency-topic-alert-delete-modal"> <span class="sr-only">Close</span> <i class="ti ti-circle-x fs-xxl"></i> </button> </div> </div> <div class="ti-modal-body "> <p class="mt-1 text-gray-800 dark:text-white/70"> ยืนยันการลบข้อมูลหรือไม่! </p> <div class="flex justify-end mt-2rem mb-1rem"> <button type="button" class="hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10" data-hs-overlay="#competency-topic-alert-delete-modal"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#competency-topic-alert-delete-modal" (click)="addUser();showSuccessDelete()"> ลบข้อมูล </a> </div> </div> </div> </div> </div>