Skip to content

Commit ba7b056

Browse files
committed
fixes #2452
2 parents 5fcd468 + 3a8807e commit ba7b056

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All Notable changes to `Backpack CRUD` will be documented in this file.
1212

1313
### Fixed
1414
- merged #2450 - video field now has customizable youtube api key;
15+
- merged #2453 - radio field can have attributes even if inline;
1516

1617

1718
## 4.0.40 - 2020-02-10

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ class="form-check-input"
3838
@else
3939

4040
<div class="form-check">
41-
<input class="form-check-input" type="radio" id="{{$field['name']}}_{{$optionPointer}}" name="{{$field['name']}}" value="{{$value}}" {{$optionValue == $value ? ' checked': ''}}>
41+
<input type="radio"
42+
class="form-check-input"
43+
id="{{$field['name']}}_{{$optionPointer}}"
44+
name="{{$field['name']}}"
45+
value="{{$value}}"
46+
@include('crud::inc.field_attributes')
47+
{{$optionValue == $value ? ' checked': ''}}>
4248
<label class="form-check-label font-weight-normal" for="{{$field['name']}}_{{$optionPointer}}">{!! $label !!}</label>
4349
</div>
4450

0 commit comments

Comments
 (0)