mirror of
https://github.com/grocy/grocy.git
synced 2026-10-17 13:19:19 +02:00
48 lines
838 B
PHP
48 lines
838 B
PHP
@extends('layout.default')
|
|
|
|
@section('title', $__t('Permissions'))
|
|
|
|
@push('pageScripts')
|
|
<script>
|
|
Grocy.EditObjectId = {{ $user->id }};
|
|
</script>
|
|
@endpush
|
|
|
|
@push('pageStyles')
|
|
<style>
|
|
ul {
|
|
list-style-type: none;
|
|
}
|
|
</style>
|
|
@endpush
|
|
|
|
@section('content')
|
|
<div class="row">
|
|
<div class="col">
|
|
<h2 class="title">
|
|
@yield('title')
|
|
<span class="text-muted small">{{ $__t('User') }} <strong>{{ GetUserDisplayName($user) }}</strong></span>
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
|
|
<hr class="my-2">
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<ul class="pl-0">
|
|
@foreach($permissions as $perm)
|
|
<li>
|
|
@include('components.userpermission_select', array(
|
|
'permission' => $perm
|
|
))
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
<button id="permission-save"
|
|
class="btn btn-success"
|
|
type="submit">{{ $__t('Save') }}</button>
|
|
</div>
|
|
</div>
|
|
@endsection
|