<div class="header-title-type"> <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="#edit-group-indicators-modal-add"> <i class="ti ti-file-plus"></i> import </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 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="!l&&!f"> <svg class="head-table-icon" xmlns="http://www.w3.org/2000/svg" width="50" height="16" 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[ ['0102', 'พนักงานระดับ 01-02'], ['0304', 'พนักงานระดับ 03-04'], ['S1S2', 'พนักงานระดับ S1-S2'], ['S3S4', 'พนักงานระดับ S3-S4'], ['M1M2', 'พนักงานระดับ M1-M2'], ['M3M4', 'พนักงานระดับ M3-M4'], ['E1E2', 'พนักงานระดับ E1-E2'], ['E3E4', 'พนักงานระดับ E3-E4']];let i = index"> <td style="font-size: 12px; padding-left: 4rem;">{{item[0]}}</td> <td style="font-size: 12px; padding-left: 1.5rem; width: 600px;">{{item[1]}}</td> <td class="flex justify-center"> <i class="ti ti-edit cursor-pointer i-gray fs-l px-1" (click)="onEdit()"></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"> <p>Show 1 to 10 of 50 items</p> </ul> </div> </div> <div id="evaluation-grouping-component-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="#evaluation-grouping-component-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" style="padding-top: 0px;"> <label for="input-label" class="ti-form-label mt-1rem">รหัส *</label> <input type="text" id="input-label" class="ti-form-input w-1/2"> <label for="detail_th" class="ti-form-label mt-1rem">ชื่อเครื่องมือประเมิน (ไทย)*</label> <input type="text" id="detail_th" class="ti-form-input w-full"> <label for="detail_eng" class="ti-form-label mt-1rem">ชื่อเครื่องมือประเมิน (อังกฤษ)</label> <input type="text" id="detail_eng" class="ti-form-input w-full"> <label for="detail_eng" class="ti-form-label mt-1rem">ชื่อที่ใช้เเสดง *</label> <input type="text" id="showname" class="ti-form-input w-full"> <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="#evaluation-grouping-component-modal-add"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#evaluation-grouping-component-alert-modal"> บันทึกข้อมูล </a> </div> </div> </div> </div> </div> <div id="evaluation-grouping-component-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="#evaluation-grouping-component-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" style="padding-top: 0px;"> <label for="input-label" class="ti-form-label mt-1rem">รหัส *</label> <input type="text" id="input-label" class="ti-form-input w-1/2 bg-input-readonly" readonly value="01"> <label for="detail_th" class="ti-form-label mt-1rem">ชื่อเครื่องมือประเมิน (ไทย)*</label> <input type="text" id="detail_th" class="ti-form-input w-full" value="แบบสังเกต"> <label for="detail_eng" class="ti-form-label mt-1rem">ชื่อเครื่องมือประเมิน (อังกฤษ)</label> <input type="text" id="detail_eng" class="ti-form-input w-full" value="แบบสังเกต"> <label for="detail_eng" class="ti-form-label mt-1rem">ชื่อที่ใช้เเสดง *</label> <input type="text" id="showname" class="ti-form-input w-full" value="O"> <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="#evaluation-grouping-component-modal-edit"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#evaluation-grouping-component-alert-edit-modal"> บันทึกข้อมูล </a> </div> </div> </div> </div> </div> <div id="evaluation-grouping-component-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-alert 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="#evaluation-grouping-component-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="#evaluation-grouping-component-alert-delete-modal"> ย้อนกลับ </button> <a class="ti-btn ti-btn-success" href="javascript:void(0);" data-hs-overlay="#evaluation-grouping-component-alert-delete-modal" (click)="addUser();showSuccessDelete()"> ลบข้อมูล </a> </div> </div> </div> </div> </div>