]> BookStack Code Mirror - bookstack/blob - resources/views/form/restriction-form.blade.php
Finished migrated from icon-font to SVG
[bookstack] / resources / views / form / restriction-form.blade.php
1 <form action="{{ $model->getUrl('/permissions') }}" method="POST">
2     {!! csrf_field() !!}
3     <input type="hidden" name="_method" value="PUT">
4
5     <p>{{ trans('entities.permissions_intro') }}</p>
6
7     <div class="form-group">
8         @include('form/checkbox', ['name' => 'restricted', 'label' => trans('entities.permissions_enable')])
9     </div>
10
11
12     <table class="table">
13         <tr>
14             <th>{{ trans('common.role') }}</th>
15             <th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>{{ trans('common.actions') }}</th>
16         </tr>
17         @foreach($roles as $role)
18             <tr>
19                 <td>{{ $role->display_name }}</td>
20                 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.view'), 'action' => 'view'])</td>
21                 @if(!$model->isA('page'))
22                     <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.create'), 'action' => 'create'])</td>
23                 @endif
24                 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.update'), 'action' => 'update'])</td>
25                 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.delete'), 'action' => 'delete'])</td>
26             </tr>
27         @endforeach
28     </table>
29
30     <div class="text-right">
31         <a href="{{ $model->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
32         <button type="submit" class="button pos">{{ trans('entities.permissions_save') }}</button>
33     </div>
34 </form>