set-a-password.component.html 22.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<div class="header-title-type">
    <div class="flex justify-between">
     <div class="flex pr-2">
         <!-- Content ของ div แรก -->
            <div class="px-1">
                <button type="button" class="ti-btn ti-btn-soft-secondary h-20px m-0 shadow-md">
                    <i class="ri-add-line"></i>
                    นำเข้าข้อมูล
                </button>

                <a class="mx-2 justify-center  -mb-px  inline-flex items-center gap-2 text-sm font-medium text-center text-secondary border-secondary border-b-2 dark:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-gray-300 align-items-end"
                    href="javascript:void(0);">
                    ดาวโหลดตัวอย่างไฟล์
                </a>
15
            </div>
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
     </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-soft-secondary h-20px m-0 shadow-md"
                     data-hs-overlay="#set-a-password-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-20px m-0 shadow-md"
                 data-hs-overlay="#set-a-password-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-20px m-0 shadow-md">
                     <i class="ti ti-book fs-l"></i>
                     Help
                 </button>
             </div>
         </div>
     </div>
 </div>
51

52
<div class="page px-rem">
53 54 55
        <div class="overflow-auto table-bordered rounded-t-md">
            <div class="overflow-auto shadow-md rounded-t-md">
                <table class="ti-custom-table ti-custom-table-head ti-custom-table-hover">
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
                    <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" style="text-align: center;"
                                    [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 && l">
                                        <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[
                        ['CC01','620010','จรูญ', 'เทพทมาศ','ใช้งาน'],
                        ['CC02','592530','มานะ', 'มิณนา','ใช้งาน'],
                        ['CC03','5812142','ชาญชัย', 'โพธิ์สุข','ใช้งาน'],
                        ['FC01','6125365','อดิศร', 'สมสัย','ใช้งาน'],
                        ['FC02','5211475','ธนศักดิ์', 'ตาศรี','ใช้งาน'],
                        ['KC01','525258','สุทธิชา', 'สิบประเสริฐ','ใช้งาน'],
                        ['KC02','647589','ศรสุข', 'ยอดสิงห์','ใช้งาน']];let i = index">
84 85 86 87
                            <td class="flex justify-center items-center" style="height: 40px;">
                                <input type="checkbox"
                                    style="margin-right: 20px; transform: scale(0.7);">
                                <span style="display: inline-block; min-width: 60px;">{{ item[0]}}</span>
88 89 90 91 92
                            </td>
                            <td style="text-align: center; font-size: 12px;">{{item[1]}}</td>
                            <td style="text-align: center; font-size: 12px;">{{item[2]}}</td>
                            <td style="text-align: center; font-size: 12px;">{{item[3]}}</td>
                            <td style="text-align: center; font-size: 12px;">{{item[4]}}</td>
93

94 95 96 97 98 99 100 101
                            <td class="flex justify-center">
                                <i class="ti ti-edit cursor-pointer i-gray fs-l px-1" data-hs-overlay="#set-a-password-modal-edit"></i>
                                <i class="ti ti-trash cursor-pointer i-gray fs-l px-1" data-hs-overlay="#set-a-password-alert-delete-modal"></i>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
102
        </div>
103 104

    <div class="body-content" style="margin-top: 20px;">
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
        <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>
136
</div>
137 138 139 140 141




<div id="set-a-password-modal-add" class="hs-overlay hidden ti-modal">
142 143
    <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out md:!max-w-2xl md:w-full m-3 md:mx-auto h-[calc(100%-3.5rem)]  items-center">
        <div class="max-h-full overflow-hidden ti-modal-content-new">
144 145 146 147 148 149 150 151 152 153 154 155
            <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="#set-a-password-modal-add">
                        <span class="sr-only">Close</span>
                        <i class="ti ti-circle-x fs-xxl"></i>
                    </button>
                </div>
            </div>
156 157 158 159 160 161 162 163 164 165 166
            <div class="ti-modal-center">
                <div class="flex justify-end" style="padding-right: 1rem;">
                    <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-new">
167 168 169 170
                <form class="space-y-5">
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-12 sm:col-span-3 ti-form-label text-primary">ชื่อล็อคอิน</label>
                        <div class="col-span-6 sm:col-span-6 relative">
171
                            <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 ltr:pr-11 rtl:pl-11 rounded-sm ltr:rounded-r-sm rtl:rounded-l-sm focus:z-10">
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
                            <div class="absolute inset-y-0 ltr:right-0 rtl:left-0 flex items-center pointer-events-none z-20 ltr:pr-4 rtl:pl-4">
                                <svg class="h-4 w-4 text-gray-400 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">
                                <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
                                </svg>
                            </div>
                        </div>
                    </div>
            
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-12 sm:col-span-3 ti-form-label text-primary">รหัสผ่าน</label>
                        <input type="password" class="col-span-12 sm:col-span-6 ti-form-input" placeholder="" style="width: 330px;">
                    </div>
            
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-12 sm:col-span-3 ti-form-label text-primary">รหัสพนักงาน</label>
187
                        <input type="text" class="col-span-12 sm:col-span-4 ti-form-input" style="background-color: rgb(241, 245, 249);"  placeholder="" disabled>
188 189 190
                    </div>
                </form>
            </div>
191
            <div class="flex justify-end mt-4 sm:mt-2 mb-4 sm:mb-1 space-x-4" style="margin-right: 30px;">
192 193 194 195 196
                <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="#set-a-password-modal-add">
                    ย้อนกลับ
                </button>
197 198
                <a class="ti-btn ti-btn-success" href="javascript:void(0);"
                data-hs-overlay="#set-a-password-alert-add-modal">
199 200
                    บันทึกข้อมูล
                </a>
201 202
            </div>
        </div>
203
    </div>
204
</div>
205 206

<div id="set-a-password-modal-edit" class="hs-overlay hidden ti-modal">
207 208
    <div class="hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out md:!max-w-2xl md:w-full m-3 md:mx-auto h-[calc(100%-3.5rem)]  items-center">
        <div class="max-h-full overflow-hidden ti-modal-content-new">
209 210 211 212 213 214 215 216 217 218 219 220
            <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="#set-a-password-modal-edit">
                        <span class="sr-only">Close</span>
                        <i class="ti ti-circle-x fs-xxl"></i>
                    </button>
                </div>
            </div>
221 222 223 224 225 226 227 228 229 230 231
            <div class="ti-modal-center">
                <div class="flex justify-end" style="padding-right: 1rem;">
                    <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-new">
232 233 234 235
                <form class="space-y-5">
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-12 sm:col-span-3 ti-form-label text-primary">ชื่อล็อคอิน</label>
                        <div class="col-span-6 sm:col-span-6 relative">
236
                            <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 ltr:pr-11 rtl:pl-11 rounded-sm ltr:rounded-r-sm rtl:rounded-l-sm focus:z-10">
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
                            <div class="absolute inset-y-0 ltr:right-0 rtl:left-0 flex items-center pointer-events-none z-20 ltr:pr-4 rtl:pl-4">
                                <svg class="h-4 w-4 text-gray-400 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">
                                <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
                                </svg>
                            </div>
                        </div>
                    </div>
            
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-12 sm:col-span-3 ti-form-label text-primary">รหัสผ่าน</label>
                        <input type="password" class="col-span-12 sm:col-span-6 ti-form-input" placeholder="" style="width: 330px;">
                    </div>
            
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-12 sm:col-span-3 ti-form-label text-primary">รหัสพนักงาน</label>
252
                        <input type="text" class="col-span-12 sm:col-span-4 ti-form-input"style="background-color: rgb(241, 245, 249);" placeholder="" disabled>
253 254 255 256 257 258 259 260 261
                    </div>
                </form>
            </div>
            <div class="flex justify-end mt-4 sm:mt-2 mb-4 sm:mb-1 space-x-4" style="margin-right: 70px;">
                <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="#set-a-password-modal-edit">
                    ย้อนกลับ
                </button>
262 263
                <a class="ti-btn ti-btn-success" href="javascript:void(0);"
                data-hs-overlay="#set-a-password-alert-edit-modal">
264 265 266 267 268
                    บันทึกข้อมูล
                </a>
            </div>
        </div>
    </div>
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376
</div>

<div id="set-a-password-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="#set-a-password-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="#set-a-password-modal-add">
                        ย้อนกลับ
                    </button>
                    <a class="ti-btn ti-btn-success" href="javascript:void(0);"
                        data-hs-overlay="#set-a-password-alert-add-modal" (click)="showSuccessAdd()">
                        บันทึกข้อมูล
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="set-a-password-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="#set-a-password-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="#set-a-password-modal-edit">
                        ย้อนกลับ
                    </button>
                    <a class="ti-btn ti-btn-success" href="javascript:void(0);"
                        data-hs-overlay="#set-a-password-alert-edit-modal" (click)="showSuccessEdit()">
                        บันทึกข้อมูล
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="set-a-password-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="#set-a-password-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="#set-a-password-alert-delete-modal">
                        ย้อนกลับ
                    </button>
                    <a class="ti-btn ti-btn-success" href="javascript:void(0);"
                        data-hs-overlay="#set-a-password-alert-delete-modal" (click)="showSuccessDelete()">
                        ลบข้อมูล
                    </a>
                </div>
            </div>
        </div>
    </div>
377
</div>