u
Cette révision appartient à :
Parent
7cb52ca2b3
révision
99953fc3c9
@ -52,11 +52,8 @@ class="nav-link btn-primary mr-1 show active">List View</a></li>
|
|||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="row tab-content">
|
<div class="row tab-content">
|
||||||
<div id="list-view" class="tab-pane fade active show col-lg-12">
|
<div id="list-view" class="tab-pane fade active show col-lg-12">
|
||||||
<div class="card px-3 rounded">
|
<div class="card px-3">
|
||||||
<div class="card-header">
|
<h4>{{$role->type}}</h4>
|
||||||
<h4 class="card-title">{{$role->type}}</h4>
|
|
||||||
</div>
|
|
||||||
<div class="card-body">
|
|
||||||
@php
|
@php
|
||||||
$routes=array();
|
$routes=array();
|
||||||
$auto_accept=array('GET',"DELETE");
|
$auto_accept=array('GET',"DELETE");
|
||||||
@ -74,19 +71,17 @@ class="nav-link btn-primary mr-1 show active">List View</a></li>
|
|||||||
@endphp
|
@endphp
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<div class="basic-form">
|
<form action="{{route('permission.save',encryptor('encrypt',$role->id))}}" method="post">
|
||||||
<form action="{{route('permission.save',encryptor('encrypt',$role->id))}}" method="post"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
@csrf
|
@csrf
|
||||||
|
<div class="row">
|
||||||
@forelse($routes as $k=>$r)
|
@forelse($routes as $k=>$r)
|
||||||
<input type="checkbox" onchange="checkAll(this)" class="form-check-input">
|
<div class="col-6 col-sm-3 col-md-2">
|
||||||
<strong>{{__($k)}}</strong>
|
<input type="checkbox" onchange="checkAll(this)"> {{__($k)}}
|
||||||
<div class="form-group">
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
@if($r)
|
@if($r)
|
||||||
|
<ul class="list-group">
|
||||||
@foreach($r as $name)
|
@foreach($r as $name)
|
||||||
@if(in_array($name['method'],$auto_accept))
|
@if(in_array($name['method'],$auto_accept))
|
||||||
<label class="form-check-label">
|
<li class="list-group-item">
|
||||||
@if(in_array($k.'.'.$name['function'],$permissions))
|
@if(in_array($k.'.'.$name['function'],$permissions))
|
||||||
<input type="checkbox" checked name="permission[]" value="{{$k.'.'.$name['function']}}">
|
<input type="checkbox" checked name="permission[]" value="{{$k.'.'.$name['function']}}">
|
||||||
{{__($name['function'])}}
|
{{__($name['function'])}}
|
||||||
@ -94,23 +89,23 @@ class="nav-link btn-primary mr-1 show active">List View</a></li>
|
|||||||
<input type="checkbox" name="permission[]" value="{{$k.'.'.$name['function']}}">
|
<input type="checkbox" name="permission[]" value="{{$k.'.'.$name['function']}}">
|
||||||
{{__($name['function'])}}
|
{{__($name['function'])}}
|
||||||
@endif
|
@endif
|
||||||
</label>
|
</li>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
</ul>
|
||||||
</div>
|
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@empty
|
@empty
|
||||||
|
|
||||||
@endforelse
|
@endforelse
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Submit</button>
|
<div class="row">
|
||||||
<button type="submit" class="btn btn-light">Cencel</button>
|
<div class="col-12">
|
||||||
|
<button type="submit" class="btn btn-primary"> Save</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{-- <div id="grid-view" class="tab-pane fade col-lg-12">
|
{{-- <div id="grid-view" class="tab-pane fade col-lg-12">
|
||||||
|
|||||||
Chargement…
Référencer dans un nouveau ticket
Block a user