mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
097d9c9f3c
Also changed wording from 'Restrictions' to 'Permissions' to keep things more familiar and to better reflect what they do. Referenced in issue #89.
32 lines
1.4 KiB
PHP
32 lines
1.4 KiB
PHP
<form action="{{ $model->getUrl() }}/permissions" method="POST">
|
|
{!! csrf_field() !!}
|
|
<input type="hidden" name="_method" value="PUT">
|
|
|
|
<p>Once enabled, These permissions will take priority over any set role permissions.</p>
|
|
|
|
<div class="form-group">
|
|
@include('form/checkbox', ['name' => 'restricted', 'label' => 'Enable custom permissions'])
|
|
</div>
|
|
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>Role</th>
|
|
<th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>Actions</th>
|
|
</tr>
|
|
@foreach($roles as $role)
|
|
<tr>
|
|
<td>{{ $role->display_name }}</td>
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'View', 'action' => 'view'])</td>
|
|
@if(!$model->isA('page'))
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Create', 'action' => 'create'])</td>
|
|
@endif
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Update', 'action' => 'update'])</td>
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Delete', 'action' => 'delete'])</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
|
|
<a href="{{ $model->getUrl() }}" class="button muted">Cancel</a>
|
|
<button type="submit" class="button pos">Save Permissions</button>
|
|
</form> |