x
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
<fieldset class="form-field-wrapper"> <legend class="block font-medium text-gray-700 mb-2 text-sm"> Available Days </legend> <div class="flex flex-row flex-wrap gap-x-6 gap-y-2.5"> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="days_0" name="days[]" value="Mon" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="days_0" class="select-none cursor-pointer text-gray-700 text-sm"> Mon </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="days_1" name="days[]" value="Tue" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="days_1" class="select-none cursor-pointer text-gray-700 text-sm"> Tue </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="days_2" name="days[]" value="Wed" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="days_2" class="select-none cursor-pointer text-gray-700 text-sm"> Wed </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="days_3" name="days[]" value="Thu" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="days_3" class="select-none cursor-pointer text-gray-700 text-sm"> Thu </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="days_4" name="days[]" value="Fri" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="days_4" class="select-none cursor-pointer text-gray-700 text-sm"> Fri </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="days_5" name="days[]" value="Sat" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="days_5" class="select-none cursor-pointer text-gray-700 text-sm"> Sat </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="days_6" name="days[]" value="Sun" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="days_6" class="select-none cursor-pointer text-gray-700 text-sm"> Sun </label> </div> </div> </div></fieldset>1
2
3
4
5
6
render BetterUi::Forms::CheckboxGroupComponent.new( name: "days", collection: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" ], orientation: :horizontal, legend: "Available Days")No notes provided.
No params configured.