2016-08-14 13:29:35 +02:00
|
|
|
<form action="{{ $model->getUrl('/permissions') }}" method="POST">
|
2016-02-28 11:49:41 +01:00
|
|
|
{!! csrf_field() !!}
|
|
|
|
<input type="hidden" name="_method" value="PUT">
|
|
|
|
|
2016-12-03 14:31:54 +01:00
|
|
|
<p>{{ trans('entities.permissions_intro') }}</p>
|
2016-03-30 21:15:44 +02:00
|
|
|
|
2016-02-28 11:49:41 +01:00
|
|
|
<div class="form-group">
|
2016-12-03 14:31:54 +01:00
|
|
|
@include('form/checkbox', ['name' => 'restricted', 'label' => trans('entities.permissions_enable')])
|
2016-02-28 11:49:41 +01:00
|
|
|
</div>
|
|
|
|
|
2016-03-30 21:15:44 +02:00
|
|
|
|
2016-02-28 11:49:41 +01:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
2016-12-03 14:31:54 +01:00
|
|
|
<th>{{ trans('common.role') }}</th>
|
|
|
|
<th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>{{ trans('common.actions') }}</th>
|
2016-02-28 11:49:41 +01:00
|
|
|
</tr>
|
|
|
|
@foreach($roles as $role)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $role->display_name }}</td>
|
2016-12-03 14:31:54 +01:00
|
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.view'), 'action' => 'view'])</td>
|
2016-02-28 11:49:41 +01:00
|
|
|
@if(!$model->isA('page'))
|
2016-12-03 14:31:54 +01:00
|
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.create'), 'action' => 'create'])</td>
|
2016-02-28 11:49:41 +01:00
|
|
|
@endif
|
2016-12-03 14:31:54 +01:00
|
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.update'), 'action' => 'update'])</td>
|
|
|
|
<td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.delete'), 'action' => 'delete'])</td>
|
2016-02-28 11:49:41 +01:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
|
2016-12-03 14:31:54 +01:00
|
|
|
<a href="{{ $model->getUrl() }}" class="button muted">{{ trans('common.cancel') }}</a>
|
|
|
|
<button type="submit" class="button pos">{{ trans('entities.permissions_save') }}</button>
|
2016-02-28 11:49:41 +01:00
|
|
|
</form>
|