Files
This commit is contained in:
24
resources/views/admin/users/add_role.blade.php
Normal file
24
resources/views/admin/users/add_role.blade.php
Normal file
@ -0,0 +1,24 @@
|
||||
@extends('admin.base')
|
||||
|
||||
@section('content')
|
||||
<div class="row page-heading">
|
||||
<div class="col-md-12 h3">Agregar Rol - {{$user->name}}</div>
|
||||
</div>
|
||||
<br />
|
||||
<form class="form-horizontal" method="post" action="{{url('', ['p' => 'admin', 'a' => 'do_add_user_role', 'user' => $user->id])}}">
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">Rol</div>
|
||||
<div class="col-md-3"><select name="role[]" class="form-control" multiple="multiple">
|
||||
@foreach ($roles as $role)
|
||||
@if ($user->hasRole($role->id))
|
||||
@continue
|
||||
@endif
|
||||
<option value="{{$role->id}}">{{$role->description}}</option>
|
||||
@endforeach
|
||||
</select></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-2"><button type="submit" class="form-control">Agregar</button></div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
Reference in New Issue
Block a user