2022-10-02 14:57:32 +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">
|
|
|
|
|
2020-12-31 18:25:20 +01:00
|
|
|
<div class="grid half left-focus v-center">
|
|
|
|
<div>
|
|
|
|
<p class="mb-none mt-m">{{ trans('entities.permissions_intro') }}</p>
|
2020-12-31 16:27:25 +01:00
|
|
|
</div>
|
2020-12-31 18:25:20 +01:00
|
|
|
<div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="owner">{{ trans('entities.permissions_owner') }}</label>
|
2022-05-14 17:05:29 +02:00
|
|
|
@include('form.user-select', ['user' => $model->ownedBy, 'name' => 'owned_by'])
|
2020-12-31 18:25:20 +01:00
|
|
|
</div>
|
2020-12-31 16:27:25 +01:00
|
|
|
</div>
|
2016-02-28 11:49:41 +01:00
|
|
|
</div>
|
|
|
|
|
2021-08-28 16:44:44 +02:00
|
|
|
@if($model instanceof \BookStack\Entities\Models\Bookshelf)
|
|
|
|
<p class="text-warn">{{ trans('entities.shelves_permissions_cascade_warning') }}</p>
|
|
|
|
@endif
|
|
|
|
|
2022-10-02 14:17:28 +02:00
|
|
|
<div class="content-permissions mt-m mb-xl">
|
2019-10-05 13:55:01 +02:00
|
|
|
@foreach(\BookStack\Auth\Role::restrictable() as $role)
|
2022-10-02 14:17:28 +02:00
|
|
|
@include('form.entity-permissions-row', ['role' => $role, 'model' => $model])
|
2016-02-28 11:49:41 +01:00
|
|
|
@endforeach
|
2022-10-02 14:17:28 +02:00
|
|
|
</div>
|
2016-02-28 11:49:41 +01:00
|
|
|
|
2017-08-26 14:24:55 +02:00
|
|
|
<div class="text-right">
|
|
|
|
<a href="{{ $model->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
|
2019-08-25 13:40:04 +02:00
|
|
|
<button type="submit" class="button">{{ trans('entities.permissions_save') }}</button>
|
2017-08-26 14:24:55 +02:00
|
|
|
</div>
|
2016-02-28 11:49:41 +01:00
|
|
|
</form>
|