BookStack/resources/views/form/entity-permissions.blade.php

31 lines
1.2 KiB
PHP
Raw Normal View History

<form action="{{ $model->getUrl('/permissions') }}" method="POST">
{!! 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>
</div>
2020-12-31 18:25:20 +01:00
<div>
<div class="form-group">
<label for="owner">{{ trans('entities.permissions_owner') }}</label>
@include('form.user-select', ['user' => $model->ownedBy, 'name' => 'owned_by'])
2020-12-31 18:25:20 +01:00
</div>
</div>
</div>
@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">
@foreach(\BookStack\Auth\Role::restrictable() as $role)
2022-10-02 14:17:28 +02:00
@include('form.entity-permissions-row', ['role' => $role, 'model' => $model])
@endforeach
2022-10-02 14:17:28 +02:00
</div>
<div class="text-right">
<a href="{{ $model->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
<button type="submit" class="button">{{ trans('entities.permissions_save') }}</button>
</div>
</form>