2022-11-03 09:28:07 -04:00
|
|
|
<div class="item-list-row flex-container-row items-center wrap">
|
|
|
|
<div class="flex py-s px-m min-width-s">
|
|
|
|
<strong>{{ $title }}</strong> <br>
|
2023-01-28 11:06:11 -05:00
|
|
|
<a href="#" refs="permissions-table@toggle-row" class="text-small text-link">{{ trans('common.toggle_all') }}</a>
|
2022-11-03 09:28:07 -04:00
|
|
|
</div>
|
|
|
|
<div class="flex py-s px-m min-width-xxs">
|
|
|
|
<small class="hide-over-m bold">{{ trans('common.create') }}<br></small>
|
|
|
|
@if($permissionPrefix === 'page' || $permissionPrefix === 'chapter')
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-create-own', 'label' => trans('settings.role_own')])
|
|
|
|
<br>
|
|
|
|
@endif
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-create-all', 'label' => trans('settings.role_all')])
|
|
|
|
</div>
|
|
|
|
<div class="flex py-s px-m min-width-xxs">
|
|
|
|
<small class="hide-over-m bold">{{ trans('common.view') }}<br></small>
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-view-own', 'label' => trans('settings.role_own')])
|
|
|
|
<br>
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-view-all', 'label' => trans('settings.role_all')])
|
|
|
|
</div>
|
|
|
|
<div class="flex py-s px-m min-width-xxs">
|
|
|
|
<small class="hide-over-m bold">{{ trans('common.edit') }}<br></small>
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-update-own', 'label' => trans('settings.role_own')])
|
|
|
|
<br>
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-update-all', 'label' => trans('settings.role_all')])
|
|
|
|
</div>
|
|
|
|
<div class="flex py-s px-m min-width-xxs">
|
|
|
|
<small class="hide-over-m bold">{{ trans('common.delete') }}<br></small>
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-delete-own', 'label' => trans('settings.role_own')])
|
|
|
|
<br>
|
|
|
|
@include('settings.roles.parts.checkbox', ['permission' => $permissionPrefix . '-delete-all', 'label' => trans('settings.role_all')])
|
|
|
|
</div>
|
|
|
|
</div>
|