X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/803934d020711ee7dd01ad154cd7324806c1a098..refs/pull/5725/head:/resources/views/form/entity-permissions-row.blade.php diff --git a/resources/views/form/entity-permissions-row.blade.php b/resources/views/form/entity-permissions-row.blade.php index 2bf19db64..a47027d79 100644 --- a/resources/views/form/entity-permissions-row.blade.php +++ b/resources/views/form/entity-permissions-row.blade.php @@ -2,11 +2,12 @@ $role - The Role to display this row for. $entityType - String identifier for type of entity having permissions applied. $permission - The entity permission containing the permissions. +$inheriting - Boolean if the current row should be marked as inheriting default permissions. Used for "Everyone Else" role. --}} -
+
-
+
@icon($role->id === 0 ? 'groups' : 'role')
@@ -15,27 +16,25 @@ $permission - The entity permission containing the permissions. @if($role->id !== 0) @endif
- @php - // TODO - $inheriting = ($role->id === 0); - @endphp @if($role->id === 0) -
+
@include('form.custom-checkbox', [ 'name' => 'entity-permissions-inherit', - 'label' => 'Inherit defaults', + 'label' => trans('entities.permissions_inherit_defaults'), 'value' => 'true', 'checked' => $inheriting ])
@endif
- +
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $role->id . '][view]', @@ -49,7 +48,7 @@ $permission - The entity permission containing the permissions.
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $role->id . '][create]', - 'label' => trans('common.create'), + 'label' => trans('common.create') . ($entityType === 'bookshelf' ? ' *' : ''), 'value' => 'true', 'checked' => $permission->create, 'disabled' => $inheriting @@ -81,8 +80,8 @@ $permission - The entity permission containing the permissions. class="text-neg p-m icon-button" data-role-id="{{ $role->id }}" data-role-name="{{ $role->display_name }}" - title="Remove Row"> - @icon('close') Remove Row + title="{{ trans('common.remove') }}"> + @icon('close') {{ trans('common.remove') }}
@endif