diff publishable/resources/views/components/form/checkbox.blade.php @ 4:84c75d9d90be

Changing usage to be bootstrap 5, not everything is reviewed but it's been started
author luka
date Tue, 19 Aug 2025 20:33:35 -0400
parents b44434aaa767
children
line wrap: on
line diff
--- a/publishable/resources/views/components/form/checkbox.blade.php	Mon Jun 23 20:20:31 2025 -0400
+++ b/publishable/resources/views/components/form/checkbox.blade.php	Tue Aug 19 20:33:35 2025 -0400
@@ -1,11 +1,11 @@
 @props(['name', 'label', 'checked' => false])
 
-<div class="mb-4 flex items-center">
+<div class="mb-3 form-check">
     <input type="checkbox" id="{{ $name }}" name="{{ $name }}" value="1"
         {{ old($name, $checked) ? 'checked' : '' }}
-        class="rounded border-gray-300 text-blue-600 shadow-sm focus:ring-blue-200">
-    <label for="{{ $name }}" class="ml-2 text-gray-700">{{ $label }}</label>
+        class="form-check-input">
+    <label for="{{ $name }}" class="form-check-label">{{ $label }}</label>
     @error($name)
-        <span class="text-red-600 text-sm">{{ $message }}</span>
+        <div class="text-danger small">{{ $message }}</div>
     @enderror
 </div>