form-checkbox.component.html 16.9 KB
Newer Older
Ooh-Ao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 51 52 53 54 55 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 84 85 86 87 88 89 90 91 92 93 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 126 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 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 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 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292

<app-page-header title="Form Checkbox" title1="Form Checkbox" activeitem="Forms"></app-page-header>

<!-- Start::row-1 -->
 <div class="grid grid-cols-12 gap-x-6">
  <div class="col-span-12 md:col-span-6 xl:!col-span-4">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Default Checkbox</h5>
          </div>
          <div class="box-body">
              <div class="space-y-2">
                  <div class="flex">
                    <input type="checkbox" class="ti-form-checkbox mt-0.5 pointer-events-none" id="hs-default-checkbox">
                    <label for="hs-default-checkbox" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Default checkbox</label>
                  </div>

                  <div class="flex">
                    <input type="checkbox" class="ti-form-checkbox mt-0.5 pointer-events-none" id="hs-checked-checkbox" checked>
                    <label for="hs-checked-checkbox" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Checked checkbox</label>
                  </div>
              </div>
          </div>
      </div>
  </div>
  <div class="col-span-12 md:col-span-6 xl:!col-span-4">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Disabled Checkbox</h5>
          </div>
          <div class="box-body">
              <div class="space-y-2">
                  <div class="flex opacity-40">
                      <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-disabled-checkbox" disabled>
                      <label for="hs-disabled-checkbox" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Disabled checkbox</label>
                  </div>

                  <div class="flex opacity-40">
                      <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-disabled-checked-checkbox" checked disabled>
                      <label for="hs-disabled-checked-checkbox" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Disabled checked checkbox</label>
                  </div>
              </div>
          </div>
      </div>
  </div>
  <div class="col-span-12 xl:col-span-4">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Checkbox group</h5>
          </div>
          <div class="box-body">
              <div class="space-y-2">
                  <div class="flex gap-x-6">
                      <div class="flex">
                        <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">Apple</label>
                      </div>

                      <div class="flex">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-checkbox-group-2">
                        <label for="hs-checkbox-group-2" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Pear</label>
                      </div>

                      <div class="flex">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-checkbox-group-3">
                        <label for="hs-checkbox-group-3" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Orange</label>
                      </div>
                  </div>

                  <div class="flex gap-x-6">
                      <div class="flex">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-checkbox-group-4" checked>
                        <label for="hs-checkbox-group-4" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Apple</label>
                      </div>

                      <div class="flex">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-checkbox-group-5" checked>
                        <label for="hs-checkbox-group-5" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Pear</label>
                      </div>

                      <div class="flex">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5" id="hs-checkbox-group-6" checked>
                        <label for="hs-checkbox-group-6" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Orange</label>
                      </div>
                  </div>

                  <div class="flex gap-x-6">
                      <div class="flex opacity-40">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5 pointer-events-none" id="hs-checkbox-group-7" checked disabled>
                        <label for="hs-checkbox-group-7" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Apple</label>
                      </div>

                      <div class="flex opacity-40">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5 pointer-events-none" id="hs-checkbox-group-8" disabled>
                        <label for="hs-checkbox-group-8" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Pear</label>
                      </div>

                      <div class="flex opacity-40">
                        <input type="checkbox" class="ti-form-checkbox mt-0.5 pointer-events-none" id="hs-checkbox-group-9" disabled>
                        <label for="hs-checkbox-group-9" class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Orange</label>
                      </div>
                  </div>
              </div>
          </div>
      </div>
  </div>
</div>
<!-- End::row-1 -->

<!-- Start::row-2 -->
<div class="grid grid-cols-12 gap-x-6">
  <div class="col-span-12 lg:col-span-6">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Checkbox Within Form Input</h5>
          </div>
          <div class="box-body">
              <div class="grid sm:grid-cols-2 gap-2">
                  <label class="p-3 flex w-full bg-white border border-gray-200 rounded-md text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70">
                    <input type="checkbox" class="ti-form-checkbox mt-0.5 pointer-events-none" id="hs-checkbox-in-form">
                    <span class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Default checkbox</span>
                  </label>

                  <label class="p-3 flex w-full bg-white border border-gray-200 rounded-md text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70">
                    <input type="checkbox" class="ti-form-checkbox mt-0.5 pointer-events-none" id="hs-checkbox-checked-in-form" checked>
                    <span class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Checked checkbox</span>
                  </label>
              </div>
          </div>
      </div>
  </div>
  <div class="col-span-12 lg:col-span-6">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Checkbox With List Group On Right</h5>
          </div>
          <div class="box-body">
            <div class="grid sm:grid-cols-2 gap-2">
              <label class="flex p-3 w-full bg-white border border-gray-200 rounded-md text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70">
                <span class="text-sm text-gray-500 dark:text-white/70">Default checkbox</span>
                <input type="checkbox" class="ti-form-checkbox ltr:ml-auto rtl:mr-auto mt-0.5 pointer-events-none" id="hs-checkbox-on-right">
              </label>

              <label class="flex p-3 w-full bg-white border border-gray-200 rounded-md text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70">
                <span class="text-sm text-gray-500 dark:text-white/70">Checked checkbox</span>
                <input type="checkbox" class="ti-form-checkbox ltr:ml-auto rtl:mr-auto mt-0.5 pointer-events-none" id="hs-checkbox-checkbox-on-right" checked>
              </label>
            </div>
          </div>
      </div>
  </div>
  <div class="col-span-12 lg:col-span-6">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Checkbox Within Vertical Form Input</h5>
          </div>
          <div class="box-body">
              <div class="grid space-y-2">
                  <label class="max-w-xs flex p-3 w-full bg-white border border-gray-200 rounded-md text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70">
                    <input type="checkbox" class="shrink-0 mt-0.5 border-gray-200 rounded text-primary pointer-events-none focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:checked:bg-primary dark:checked:border-primary dark:focus:ring-offset-white/10" id="hs-vertical-checkbox-in-form">
                    <span class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Default checkbox</span>
                  </label>

                  <label class="max-w-xs flex p-3 w-full bg-white border border-gray-200 rounded-md text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70">
                    <input type="checkbox" class="shrink-0 mt-0.5 border-gray-200 rounded text-primary pointer-events-none focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:checked:bg-primary dark:checked:border-primary dark:focus:ring-offset-white/10" id="vertical-checkbox-checked-in-form" checked>
                    <span class="text-sm text-gray-500 ltr:ml-2 rtl:mr-2 dark:text-white/70">Checked checkbox</span>
                  </label>
              </div>
          </div>
      </div>
  </div>
  <div class="col-span-12 lg:col-span-6">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">List with Description</h5>
          </div>
          <div class="box-body">
              <div class="grid space-y-3">
                  <div class="relative flex items-start">
                      <div class="flex items-center h-5 mt-1">
                      <input id="hs-checkbox-delete" name="hs-checkbox-delete" type="checkbox" class="ti-form-checkbox" aria-describedby="hs-checkbox-delete-description" checked>
                      </div>
                      <label for="hs-checkbox-delete" class="ltr:ml-2 rtl:mr-2">
                      <span class="block text-sm font-semibold text-gray-800 dark:text-white">Delete</span>
                      <span id="hs-checkbox-delete-description" class="block text-sm text-gray-600 dark:text-white/70">Notify me when this action happens.</span>
                      </label>
                  </div>

                  <div class="relative flex items-start">
                      <div class="flex items-center h-5 mt-1">
                      <input id="hs-checkbox-archive" name="hs-checkbox-archive" type="checkbox" class="ti-form-checkbox" aria-describedby="hs-checkbox-archive-description">
                      </div>
                      <label for="hs-checkbox-archive" class="ltr:ml-2 rtl:mr-2">
                      <span class="block text-sm font-semibold text-gray-800 dark:text-white">Archive</span>
                      <span id="hs-checkbox-archive-description" class="block text-sm text-gray-600 dark:text-white/70">Notify me when this action happens.</span>
                      </label>
                  </div>
              </div>
          </div>
      </div>
  </div>
  <div class="col-span-12 lg:col-span-6">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Chexbox With List Group</h5>
          </div>
          <div class="box-body">
              <ul class="max-w-sm flex flex-col">
                  <li class="ti-list-group bg-white text-gray-800 dark:bg-bgdark dark:border-white/10 dark:text-white">
                    <div class="relative flex items-start w-full">
                      <div class="flex items-center h-5">
                        <input id="hs-list-group-item-checkbox-1" name="hs-list-group-item-checkbox-1" type="checkbox" class="ti-form-checkbox" checked>
                      </div>
                      <label for="hs-list-group-item-checkbox-1" class="ltr:ml-2.5 rtl:mr-2.5 block w-full text-sm text-gray-600 dark:text-white/70">
                        Chris Lynch
                      </label>
                    </div>
                  </li>

                  <li class="ti-list-group bg-white text-gray-800 dark:bg-bgdark dark:border-white/10 dark:text-white">
                    <div class="relative flex items-start w-full">
                      <div class="flex items-center h-5">
                        <input id="hs-list-group-item-checkbox-2" name="hs-list-group-item-checkbox-2" type="checkbox" class="ti-form-checkbox">
                      </div>
                      <label for="hs-list-group-item-checkbox-2" class="ltr:ml-2.5 rtl:mr-2.5 block w-full text-sm text-gray-600 dark:text-white/70">
                        Maria Guan
                      </label>
                    </div>
                  </li>

                  <li class="ti-list-group bg-white text-gray-800 dark:bg-bgdark dark:border-white/10 dark:text-white">
                    <div class="relative flex items-start w-full">
                      <div class="flex items-center h-5">
                        <input id="hs-list-group-item-checkbox-3" name="hs-list-group-item-checkbox-3" type="checkbox" class="ti-form-checkbox">
                      </div>
                      <label for="hs-list-group-item-checkbox-3" class="ltr:ml-2.5 rtl:mr-2.5 block w-full text-sm text-gray-600 dark:text-white/70">
                        Bob Arum
                      </label>
                    </div>
                  </li>
                </ul>
          </div>
      </div>
  </div>
  <div class="col-span-12 lg:col-span-6">
      <div class="box">
          <div class="box-header">
              <h5 class="box-title">Chexbox With Horizontal List Group</h5>
          </div>
          <div class="box-body">
            <ul class="flex flex-col sm:flex-row">
              <li class="ti-list-group gap-x-2.5 bg-white border text-gray-800 ltr:sm:-ml-px rtl:sm:-mr-px sm:mt-0 ltr:sm:first:rounded-tr-none rtl:sm:first:rounded-tl-none ltr:sm:first:rounded-bl-lg rtl:sm:first:rounded-br-lg ltr:sm:last:rounded-bl-none rtl:sm:last-rounded-br-none ltr:sm:last:rounded-tr-lg rtl:sm:last:rounded-tl-lg dark:bg-bgdark dark:border-white/10 dark:text-white">
                <div class="relative flex items-start w-full">
                  <div class="flex items-center h-5">
                    <input id="hs-horizontal-list-group-item-checkbox-1" name="hs-horizontal-list-group-item-checkbox-1" type="checkbox" class="ti-form-checkbox" checked>
                  </div>
                  <label for="hs-horizontal-list-group-item-checkbox-1" class="ltr:ml-2.5 rtl:mr-2.5 block w-full text-sm text-gray-600 dark:text-white/70">
                    Chris Lynch
                  </label>
                </div>
              </li>

              <li class="ti-list-group gap-x-2.5 bg-white border text-gray-800 ltr:sm:-ml-px rtl:sm:-mr-px sm:mt-0 ltr:sm:first:rounded-tr-none rtl:sm:first:rounded-tl-none ltr:sm:first:rounded-bl-lg rtl:sm:first:rounded-br-lg ltr:sm:last:rounded-bl-none rtl:sm:last-rounded-br-none ltr:sm:last:rounded-tr-lg rtl:sm:last:rounded-tl-lg dark:bg-bgdark dark:border-white/10 dark:text-white">
                <div class="relative flex items-start w-full">
                  <div class="flex items-center h-5">
                    <input id="hs-horizontal-list-group-item-checkbox-2" name="hs-horizontal-list-group-item-checkbox-2" type="checkbox" class="ti-form-checkbox">
                  </div>
                  <label for="hs-horizontal-list-group-item-checkbox-2" class="ltr:ml-2.5 rtl:mr-2.5 block w-full text-sm text-gray-600 dark:text-white/70">
                    Maria Guan
                  </label>
                </div>
              </li>

              <li class="ti-list-group gap-x-2.5 bg-white border text-gray-800 ltr:sm:-ml-px rtl:sm:-mr-px sm:mt-0 ltr:sm:first:rounded-tr-none rtl:sm:first:rounded-tl-none ltr:sm:first:rounded-bl-lg rtl:sm:first:rounded-br-lg ltr:sm:last:rounded-bl-none rtl:sm:last-rounded-br-none ltr:sm:last:rounded-tr-lg rtl:sm:last:rounded-tl-lg dark:bg-bgdark dark:border-white/10 dark:text-white">
                <div class="relative flex items-start w-full">
                  <div class="flex items-center h-5">
                    <input id="hs-horizontal-list-group-item-checkbox-3" name="hs-horizontal-list-group-item-checkbox-3" type="checkbox" class="ti-form-checkbox">
                  </div>
                  <label for="hs-horizontal-list-group-item-checkbox-3" class="ltr:ml-2.5 rtl:mr-2.5 block w-full text-sm text-gray-600 dark:text-white/70">
                    Bob Arum
                  </label>
                </div>
              </li>
            </ul>
          </div>
      </div>
  </div>
</div>
<!-- End::row-2 -->