Skip to content

Commit

Permalink
BUGFIX 🐛 Implement the disabled status
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeblauw committed Jan 28, 2025
1 parent e77f618 commit bc28262
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions resources/views/components/formelements/boolean.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
<div class="mt-1 sm:mt-0 sm:col-span-5">
<label>
<input type="hidden" name="{{$name}}" value="0">
<input type="checkbox" id="{{$id}}" name="{{$name}}" value="1"
class="focus:ring-indigo-500 h-4 w-4 text-blue-600 border-gray-300 rounded"
<input {{ ($disabled) ? 'disabled' : '' }}
type="checkbox" id="{{$id}}" name="{{$name}}" value="1"
class="focus:ring-indigo-500 h-4 w-4 text-blue-600 border-gray-300 rounded {{ ($disabled) ? '!text-blue-200' : '' }}"
@if(old($name,$value)) checked @endif >
{{ ($legend =='') ? 'Yes': $legend}}
<span class="{{ ($disabled) ? 'text-gray-400' : '' }}">{{ ($legend =='') ? 'Yes': $legend}}</span>
</label>
@include('BlueAdminFormelements::_errorandcomment')
</div>
Expand Down

0 comments on commit bc28262

Please sign in to comment.