Skip to content

Commit 80dbe61

Browse files
committed
Merge branch 'johnpuddephatt-master'
2 parents 55ecff9 + fa113fc commit 80dbe61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/resources/views/crud/fields/checkbox.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
{{ $attribute }}="{{ $value }}"
1717
@endforeach
1818
@endif
19+
@if (!isset($field['attributes']['id']))
20+
id="{{ $field['name'] }}_checkbox"
21+
@endif
1922
>
20-
<label class="form-check-label font-weight-normal" for="{{ $field['name'] }}_checkbox">{!! $field['label'] !!}</label>
23+
<label class="form-check-label font-weight-normal" for="{{ $field['attributes']['id'] ?? $field['name'] . '_checkbox' }}">{!! $field['label'] !!}</label>
2124

2225
{{-- HINT --}}
2326
@if (isset($field['hint']))

0 commit comments

Comments
 (0)