Updated user and shelf views to new design

This commit is contained in:
Dan Brown
2019-02-03 13:45:45 +00:00
parent 880d4f35da
commit 138f5d5c4f
44 changed files with 719 additions and 597 deletions

View File

@ -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>