1 <form action="{{ $model->getUrl() }}/restrict" method="POST">
3 <input type="hidden" name="_method" value="PUT">
5 <div class="form-group">
6 @include('form/checkbox', ['name' => 'restricted', 'label' => 'Restrict this ' . $model->getClassName()])
12 <th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>Actions</th>
14 @foreach($roles as $role)
16 <td>{{ $role->display_name }}</td>
17 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'View', 'action' => 'view'])</td>
18 @if(!$model->isA('page'))
19 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Create', 'action' => 'create'])</td>
21 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Update', 'action' => 'update'])</td>
22 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Delete', 'action' => 'delete'])</td>
27 <a href="{{ $model->getUrl() }}" class="button muted">Cancel</a>
28 <button type="submit" class="button pos">Save Restrictions</button>