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