1 <form action="{{ $model->getUrl('/permissions') }}" method="POST" entity-permissions-editor>
3 <input type="hidden" name="_method" value="PUT">
5 <p class="mb-none">{{ trans('entities.permissions_intro') }}</p>
7 <div class="form-group">
8 @include('form.checkbox', [
9 'name' => 'restricted',
10 'label' => trans('entities.permissions_enable'),
14 <table permissions-table class="table permissions-table toggle-switch-list" style="{{ !$model->restricted ? 'display: none' : '' }}">
16 <th>{{ trans('common.role') }}</th>
17 <th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>
18 {{ trans('common.actions') }}
19 <a href="#" permissions-table-toggle-all class="text-small ml-m text-primary">{{ trans('common.toggle_all') }}</a>
22 @foreach($roles as $role)
24 <td width="33%" class="pt-m">
25 {{ $role->display_name }}
26 <a href="#" permissions-table-toggle-all-in-row class="text-small float right ml-m text-primary">{{ trans('common.toggle_all') }}</a>
28 <td>@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.view'), 'action' => 'view'])</td>
29 @if(!$model->isA('page'))
30 <td>@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.create'), 'action' => 'create'])</td>
32 <td>@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.update'), 'action' => 'update'])</td>
33 <td>@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.delete'), 'action' => 'delete'])</td>
38 <div class="text-right">
39 <a href="{{ $model->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
40 <button type="submit" class="button primary">{{ trans('entities.permissions_save') }}</button>