Skip to content

Commit 273c277

Browse files
authored
Merge pull request #4014 from lakuapik/patch
Add number_columns option to checklist field
2 parents 370531d + dca47ae commit 273c277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<div class="row">
3333
@foreach ($field['options'] as $key => $option)
34-
<div class="col-sm-4">
34+
<div class="col-sm-{{ isset($field['number_of_columns']) ? intval(12/$field['number_of_columns']) : '4'}}">
3535
<div class="checkbox">
3636
<label class="font-weight-normal">
3737
<input type="checkbox" value="{{ $key }}"> {{ $option }}

0 commit comments

Comments
 (0)