mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-30 04:15:58 +08:00
Updated user and shelf views to new design
This commit is contained in:
@ -1,11 +1,15 @@
|
||||
|
||||
<label>
|
||||
<input value="true" id="{{$name}}" type="checkbox" name="{{$name}}"
|
||||
@if($errors->has($name)) class="neg" @endif
|
||||
@if(old($name) || (!old() && isset($model) && $model->$name)) checked="checked" @endif
|
||||
>
|
||||
{{ $label }}
|
||||
</label>
|
||||
{{--
|
||||
$name
|
||||
$label
|
||||
$errors?
|
||||
$model?
|
||||
--}}
|
||||
@include('components.custom-checkbox', [
|
||||
'name' => $name,
|
||||
'label' => $label,
|
||||
'value' => 'true',
|
||||
'checked' => old($name) || (!old() && isset($model) && $model->$name)
|
||||
])
|
||||
|
||||
@if($errors->has($name))
|
||||
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
||||
|
Reference in New Issue
Block a user