X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/880d4f35dab43378c8b3b8ec6e7bb8e30ea7f07e..refs/pull/2023/head:/resources/views/form/restriction-checkbox.blade.php diff --git a/resources/views/form/restriction-checkbox.blade.php b/resources/views/form/restriction-checkbox.blade.php index aab5a0729..65a94239e 100644 --- a/resources/views/form/restriction-checkbox.blade.php +++ b/resources/views/form/restriction-checkbox.blade.php @@ -1,6 +1,13 @@ -{{--TODO - Make custom--}} - \ No newline at end of file +{{-- +$name +$label +$role +$action +$model? +--}} +@include('components.custom-checkbox', [ + 'name' => $name . '[' . $role->id . '][' . $action . ']', + 'label' => $label, + 'value' => 'true', + 'checked' => isset($model) && $model->hasRestriction($role->id, $action) +]) \ No newline at end of file