Files
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
<div class="col-md-12 h3">Agregar Ususario</div>
|
||||
</div>
|
||||
<br />
|
||||
<form action="{{url('', ['p' => 'admin', 'a' => 'do_add_user'])}}" method="post" class="form-horizontal">
|
||||
<form action="{{$urls->base}}/admin/users/add" method="post" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">Usuario</div>
|
||||
<div class="col-md-3"><input type="text" name="name" class="form-control" /></div>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<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])}}">
|
||||
<form class="form-horizontal" method="post" action="{{$urls->base}}/admin/user/{{$user->id}}/roles/add">
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">Rol</div>
|
||||
<div class="col-md-3"><select name="role[]" class="form-control" multiple="multiple">
|
||||
|
@ -3,7 +3,7 @@
|
||||
@section('content')
|
||||
<div class="page-heading row">
|
||||
<div class="col-md-6 h3">Usuarios</div>
|
||||
<div class="col-md-6 text-right h3"><a href="{{url('', ['p' => 'admin', 'a' => 'add_user'])}}"><span class="glyphicon glyphicon-plus"></span></a></div>
|
||||
<div class="col-md-6 text-right h3"><a href="{{$urls->base}}/admin/users/add"><span class="glyphicon glyphicon-plus"></span></a></div>
|
||||
</div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
@ -15,13 +15,13 @@
|
||||
<tbody>
|
||||
@foreach ($users as $user)
|
||||
<tr>
|
||||
<td><a href="{{url('', ['p' => 'admin', 'a' => 'user', 'user' => $user->id])}}">{{$user->name}}</a></td>
|
||||
<td><a href="{{$urls->base}}/admin/user/{{$user->id}}">{{$user->name}}</a></td>
|
||||
<td>
|
||||
@foreach ($user->roles() as $role)
|
||||
{{$role->description}}
|
||||
@endforeach
|
||||
</td>
|
||||
<td><a href="{{url('', ['p' => 'admin', 'a' => 'delete_user', 'user' => $user->id])}}"><span class="glyphicon glyphicon-minus"></span></a></td>
|
||||
<td><a href="{{$urls->base}}/admin/user/{{$user->id}}/delete"><span class="glyphicon glyphicon-minus"></span></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
@ -4,24 +4,24 @@
|
||||
<div class="row page-heading">
|
||||
<div class="col-md-12 h3">{{$user->name}}</div>
|
||||
</div>
|
||||
<a href="{{nUrl('admin', 'reset_user', ['user' => $user->id])}}">
|
||||
<a href="{{$urls->base}}/admin/user/{{$user->id}}/reset">
|
||||
Resetear Clave
|
||||
</a>
|
||||
<div class="section-heading row">
|
||||
<div class="col-md-6 h4">Roles</div>
|
||||
<div class="col-md-6 h4 text-right"><a href="{{url('', ['p' => 'admin', 'a' => 'add_user_role', 'user' => $user->id])}}"><span class="glyphicon glyphicon-plus"></span></a></div>
|
||||
<div class="col-md-6 h4 text-right"><a href="{{$url->base}}/admin/user/{{$user->id}}/roles/add"><span class="glyphicon glyphicon-plus"></span></a></div>
|
||||
</div>
|
||||
<table class="table">
|
||||
@foreach ($user->roles() as $role)
|
||||
<tr>
|
||||
<td><a href="{{nUrl('admin', 'role', ['role' => $role->id])}}">{{$role->description}}</a></td>
|
||||
<td><a href="{{url('', ['p' => 'admin', 'a' => 'remove_user_role', 'user' => $user->id, 'role' => $role->id])}}"><span class="glyphicon glyphicon-minus"></span></a></td>
|
||||
<td><a href="{{$urls->base}}/admin/role/{{$role->id}}">{{$role->description}}</a></td>
|
||||
<td><a href="{{$urls->base}}/admin/user/{{$user->id}}/role/{{$role->id}}/remove"><span class="glyphicon glyphicon-minus"></span></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
<div class="row section-heading">
|
||||
<div class="col-md-6 h4">Permisos</div>
|
||||
<div class="col-md-6 h4 text-right"><a href="{{nUrl('admin', 'add_user_permissions', ['user' => $user->id])}}"><span class="glyphicon glyphicon-plus"></span></a></div>
|
||||
<div class="col-md-6 h4 text-right"><a href="{{$urls->base}}/admin/user/{{$user->id}}/permissions/add"><span class="glyphicon glyphicon-plus"></span></a></div>
|
||||
</div>
|
||||
@if ($user->permissions())
|
||||
<table class="table">
|
||||
|
Reference in New Issue
Block a user