user-settings.component.html 24 KB
Newer Older
1
<div class="flex justify-end pt-2rem">
2
    <div class="px-1">
3 4 5 6 7 8
        <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>
9 10 11 12
            </div>
        </div>
    </div>
    <div class="px-1">
13 14 15 16 17
        <button type="button" class="ti-btn ti-btn-soft-secondary h-45px m-0 shadow-md"
            data-hs-overlay="#user-settings-component-modal-add">
            <i class="ri-add-line"></i>
            Add
        </button>
18 19
    </div>
    <div class="px-1">
20 21 22 23
        <button href="javascript:void(0);" class="ti-btn ti-btn-soft-danger h-45px m-0 shadow-md">
            <i class="ri-delete-bin-6-line"></i>
            Delete
        </button>
24 25
    </div>
    <div class="px-1">
26 27 28
        <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
29 30 31 32
        </button>
    </div>
</div>

33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
<div class="page px-rem">
    <div class="border-b border-gray-200 dark:border-white/10" style="margin-left: 20px;">
        <nav class="flex space-x-2 rtl:space-x-reverse" style="margin-bottom: 10px;">
            <a class="custom-link justify-center rounded-t-sm hs-tab-active:!bg-primary hs-tab-active:border-primary hs-tab-active:!text-white -mb-px py-2 px-3 inline-flex items-center gap-2 text-md font-medium text-center border-2 text-gray-600 hover:text-gray-900 dark:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-gray-300 active"
                href="javascript:void(0);" id="card-type-item-1" data-hs-tab="#card-type-1" aria-controls="card-type-1">
                นำเข้าข้อมูล
            </a>
            <a class="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>
        </nav>
    </div>
    <div id="card-type-1" role="tabpanel" aria-labelledby="card-type-item-1">
        <div class="overflow-auto shadow-md">
48
            <table class="ti-custom-table ti-custom-table-head">
49 50
                <thead>
                    <tr>
51
                        <ng-container
52 53 54 55
                        *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>
56
                                <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!l&&!f&&!i">
57 58 59 60 61 62 63 64 65 66 67 68 69
                                    <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[
70 71 72 73 74 75 76
                    ['CC001', '620010','จรุณ','เทพมาศ','ใช้งาน'],
                    ['CC002', '592530','มานะ','มิณนา','ใช้งาน'],
                    ['CC003', '5812142','ชาญชัย','โพธิ์สุข','ใช้งาน'],
                    ['FC001', '6125365','อดิศร','สมสัย','ใช้งาน'],
                    ['FC002', '5211475','ธนศักดิ์','ตาศรี','ใช้งาน'],
                    ['KC001', '525258','สุทธิดา','สินประเสริฐ','ใช้งาน'],
                    ['KC002', '647589','ศรสุข','ยอดสิงฆ์','ใช้งาน']];let i = index">
77
                        <td style="font-size: 12px;" class="flex justify-center">
78 79
                            <input type="checkbox" style="margin-right: 20px; transform:scale(0.7)">
                            {{item[0]}}
80 81
                        </td>
                        <td style="text-align: center; font-size: 12px;">{{item[1]}}</td>
82 83 84
                        <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>
85 86 87
                        <td class="flex justify-center">
                            <i class="ti ti-edit cursor-pointer i-gray fs-l px-1" data-hs-overlay="#user-settings-component-modal-edit"></i>
                            <i class="ti ti-trash cursor-pointer i-gray fs-l px-1"></i>
88 89 90 91 92 93
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    <div class="body-content" style="margin-top: 20px; margin-left: 10px;">
        <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>
126
</div>
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151



<div id="user-settings-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">
                    <div class="button-help" >
                        <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>
                    <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger"
                        data-hs-overlay="#user-settings-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-body " style="margin-top: 60px;">
152
                <div class="checkbox-container text-primary" style="display: flex; justify-content: flex-end; gap: 3px; margin-bottom: 10px;">
153 154 155 156
                    <label style="display: flex; align-items: center; margin-right: 20px;">
                        <input type="checkbox" style="transform: scale(0.6); margin-right: 2px;">ใช้งาน
                    </label>
                    <label style="display: flex; align-items: center;">
157
                        <input type="checkbox" style="transform: scale(0.6); margin-right: 2px;">ไม่ใช้งาน
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
                    </label>
                </div>
                <form class="space-y-3">
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">ชื่อล็อคอิน</label>
                        <input type="email" class="col-span-9 ti-form-input w-1/2" placeholder="">
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">รหัสพนักงาน</label>
                        <div class="col-span-3 relative">
                            <div>
                                <div class="relative flex rounded-md">
                                  <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-none ltr:rounded-r-md rtl:rounded-l-md focus:z-10">
                                  <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-500 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="16" height="16" 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>
177
                            </div>
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
                        </div>
                        <div class="col-span-5">
                            <input type="password" class="ti-form-input" style="width: 300px; background-color: #B3B3B3;" disabled placeholder="">
                        </div>
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">บทบาท</label>
                        <div class="col-span-3 relative">
                            <div>
                                <div class="relative flex rounded-md">
                                  <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-none ltr:rounded-r-md rtl:rounded-l-md focus:z-10">
                                  <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-500 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="16" height="16" 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>
                        <div class="col-span-5">
                            <input type="password" class="ti-form-input" style="width: 300px; background-color: #B3B3B3;" disabled placeholder="">
                        </div>
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">ระดับ</label>
                        <div class="col-span-3 relative">
                            <div>
                                <div class="relative flex rounded-md">
                                  <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-none ltr:rounded-r-md rtl:rounded-l-md focus:z-10">
                                  <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-500 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="16" height="16" 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>
                        <div class="col-span-5">
                            <input type="password" class="ti-form-input" style="width: 300px; background-color: #B3B3B3;" disabled placeholder="">
                        </div>
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">สถานะรหัสผ่าน</label>
                        <div class="col-span-9">
                            <select class="ti-form-input w-1/2" >
                                <option value="1">รหัสผ่านถูกตั้งใหม่เเล้ว</option>
                            </select>
                        </div>
                    </div>
                </form>
                <div class="flex justify-end mt-2rem mb-1rem space-x-2" style="margin-top: 150px;">
                    <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="#user-settings-component-modal-add">
                        ย้อนกลับ
                    </button>
                    <a class="ti-btn ti-btn-success" href="javascript:void(0);">
                        บันทึกข้อมูล
                    </a>
                </div>
238 239
            </div>
        </div>
240
    </div>
241
</div>
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264

<div id="user-settings-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">
                    <div class="button-help">
                        <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>
                    <button type="button" class="hs-dropdown-toggle ti-modal-clode-btn text-danger"
                        data-hs-overlay="#user-settings-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-body " style="margin-top: 60px;">
265
                <div class="checkbox-container text-primary" style="display: flex; justify-content: flex-end; gap: 3px; margin-bottom: 10px;">
266 267 268 269
                    <label style="display: flex; align-items: center; margin-right: 20px;">
                        <input type="checkbox" style="transform: scale(0.6); margin-right: 2px;">ใช้งาน
                    </label>
                    <label style="display: flex; align-items: center;">
270
                        <input type="checkbox" style="transform: scale(0.6); margin-right: 2px;">ไม่ใช้งาน
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
                    </label>
                </div>
                <form class="space-y-3">
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">ชื่อล็อคอิน</label>
                        <input type="email" class="col-span-9 ti-form-input w-1/2" placeholder="">
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">รหัสพนักงาน</label>
                        <div class="col-span-3 relative">
                            <div>
                                <div class="relative flex rounded-md">
                                  <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-none ltr:rounded-r-md rtl:rounded-l-md focus:z-10">
                                  <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-500 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="16" height="16" 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>
                        <div class="col-span-5">
                            <input type="password" class="ti-form-input" style="width: 300px; background-color: #B3B3B3;" disabled placeholder="">
                        </div>
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">บทบาท</label>
                        <div class="col-span-3 relative">
                            <div>
                                <div class="relative flex rounded-md">
                                  <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-none ltr:rounded-r-md rtl:rounded-l-md focus:z-10">
                                  <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-500 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="16" height="16" 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>
                        <div class="col-span-5">
                            <input type="password" class="ti-form-input" style="width: 300px; background-color: #B3B3B3;" disabled placeholder="">
                        </div>
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">ระดับ</label>
                        <div class="col-span-3 relative">
                            <div>
                                <div class="relative flex rounded-md">
                                  <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-none ltr:rounded-r-md rtl:rounded-l-md focus:z-10">
                                  <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-500 dark:text-white/70" xmlns="http://www.w3.org/2000/svg" width="16" height="16" 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>
                        <div class="col-span-5">
                            <input type="password" class="ti-form-input" style="width: 300px; background-color: #B3B3B3;" disabled placeholder="">
                        </div>
                    </div>
                    <div class="sm:grid grid-cols-12 gap-x-6">
                        <label class="col-span-3 ti-form-label text-primary">สถานะรหัสผ่าน</label>
                        <div class="col-span-9">
                            <select class="ti-form-input w-1/2" >
                                <option value="1">รหัสผ่านถูกตั้งใหม่เเล้ว</option>
                            </select>
                        </div>
                    </div>
                </form>
                <div class="flex justify-end mt-2rem mb-1rem space-x-2" style="margin-top: 150px;">
                    <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="#user-settings-component-modal-add">
                        ย้อนกลับ
                    </button>
                    <a class="ti-btn ti-btn-success" href="javascript:void(0);">
                        บันทึกข้อมูล
                    </a>
                </div>
            </div>
        </div>
        
    </div>
</div>