1 <div component="permissions-table" class="content-permissions-row flex-container-row justify-space-between wrap">
2 <div class="gap-x-m flex-container-row items-center px-l py-m flex">
3 <div class="text-large" title="{{ $role->id === 0 ? 'Everyone Else' : trans('common.role') }}">
4 @icon($role->id === 0 ? 'groups' : 'role')
7 <strong>{{ $role->display_name }}</strong> <br>
8 <small class="text-muted">{{ $role->description }}</small>
12 class="ml-auto flex-none text-small text-primary text-button hover-underline content-permissions-row-toggle-all hide-under-s"
13 refs="permissions-table@toggle-all"
14 ><strong>{{ trans('common.toggle_all') }}</strong></button>
18 $inheriting = ($role->id === 0 && !$model->restricted);
21 <div class="px-l flex-container-row items-center" refs="entity-permissions@everyoneInherit">
22 @include('form.custom-checkbox', [
23 'name' => 'entity-permissions-inherit',
24 'label' => 'Inherit defaults',
26 'checked' => $inheriting
30 <div class="flex-container-row justify-space-between gap-x-xl wrap items-center">
32 @include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.view'), 'action' => 'view', 'disabled' => $inheriting])
35 @if(!$model instanceof \BookStack\Entities\Models\Page)
36 @include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.create'), 'action' => 'create', 'disabled' => $inheriting])
40 @include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.update'), 'action' => 'update', 'disabled' => $inheriting])
43 @include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.delete'), 'action' => 'delete', 'disabled' => $inheriting])