Previews

No matching results.

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
<fieldset class="form-field-wrapper" disabled="disabled">
<legend class="block font-medium text-gray-700 mb-2 text-sm">
Permissions (Disabled)
</legend>
<div class="flex flex-col gap-2.5">
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="permissions_0" name="permissions[]" value="read" checked="checked" disabled="disabled" class="appearance-none shrink-0 rounded border 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-gray-100 cursor-not-allowed opacity-60" />
<label for="permissions_0" class="select-none text-gray-400 cursor-not-allowed text-sm">
Read
</label>
</div>
</div>
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="permissions_1" name="permissions[]" value="write" disabled="disabled" class="appearance-none shrink-0 rounded border 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-gray-100 cursor-not-allowed opacity-60" />
<label for="permissions_1" class="select-none text-gray-400 cursor-not-allowed text-sm">
Write
</label>
</div>
</div>
<div class="form-field-wrapper">
<div class="flex items-start flex-row gap-2.5">
<input type="checkbox" id="permissions_2" name="permissions[]" value="delete" disabled="disabled" class="appearance-none shrink-0 rounded border 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-gray-100 cursor-not-allowed opacity-60" />
<label for="permissions_2" class="select-none text-gray-400 cursor-not-allowed text-sm">
Delete
</label>
</div>
</div>
</div>
</fieldset>
1
2
3
4
5
6
7
8
9
10
11
render BetterUi::Forms::CheckboxGroupComponent.new(
name: "permissions",
collection: [
[ "Read", "read" ],
[ "Write", "write" ],
[ "Delete", "delete" ]
],
selected: [ "read" ],
legend: "Permissions (Disabled)",
disabled: true
)