mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-28 20:00:47 +08:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
@extends('layouts.simple')
|
|
|
|
@section('body')
|
|
|
|
<div class="container small">
|
|
|
|
<div class="py-m">
|
|
@include('settings.parts.navbar', ['selected' => 'roles'])
|
|
</div>
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
<div class="grid half v-center">
|
|
<h1 class="list-heading">{{ trans('settings.role_user_roles') }}</h1>
|
|
|
|
<div class="text-right">
|
|
<a href="{{ url("/settings/roles/new") }}" class="button outline">{{ trans('settings.role_create') }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>{{ trans('settings.role_name') }}</th>
|
|
<th></th>
|
|
<th class="text-center">{{ trans('settings.users') }}</th>
|
|
</tr>
|
|
@foreach($roles as $role)
|
|
<tr>
|
|
<td><a href="{{ url("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
|
|
<td>
|
|
@if($role->mfa_enforced)
|
|
<span title="{{ trans('settings.role_mfa_enforced') }}">@icon('lock') </span>
|
|
@endif
|
|
{{ $role->description }}
|
|
</td>
|
|
<td class="text-center">{{ $role->users->count() }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
@stop
|