mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
ae93a6ed07
- Removed all existing SCSS usage of primary color. - Cut down custom styles injection to just be css vars. - Reduced button styles so default button is primary. - Updated button styles to lighten/brighten on hover & active states even when a custom color is set. - Removed unused scss color vars. - Updated default BookStack blue to achieve better accessibility.
42 lines
2.1 KiB
PHP
42 lines
2.1 KiB
PHP
<form action="{{ $model->getUrl('/permissions') }}" method="POST" entity-permissions-editor>
|
|
{!! csrf_field() !!}
|
|
<input type="hidden" name="_method" value="PUT">
|
|
|
|
<p class="mb-none">{{ trans('entities.permissions_intro') }}</p>
|
|
|
|
<div class="form-group">
|
|
@include('form.checkbox', [
|
|
'name' => 'restricted',
|
|
'label' => trans('entities.permissions_enable'),
|
|
])
|
|
</div>
|
|
|
|
<table permissions-table class="table permissions-table toggle-switch-list" style="{{ !$model->restricted ? 'display: none' : '' }}">
|
|
<tr>
|
|
<th>{{ trans('common.role') }}</th>
|
|
<th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>
|
|
{{ trans('common.actions') }}
|
|
<a href="#" permissions-table-toggle-all class="text-small ml-m text-primary">{{ trans('common.toggle_all') }}</a>
|
|
</th>
|
|
</tr>
|
|
@foreach($roles as $role)
|
|
<tr>
|
|
<td width="33%" class="pt-m">
|
|
{{ $role->display_name }}
|
|
<a href="#" permissions-table-toggle-all-in-row class="text-small float right ml-m text-primary">{{ trans('common.toggle_all') }}</a>
|
|
</td>
|
|
<td>@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.view'), 'action' => 'view'])</td>
|
|
@if(!$model->isA('page'))
|
|
<td>@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.create'), 'action' => 'create'])</td>
|
|
@endif
|
|
<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>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
|
|
<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> |