update admin view
This commit is contained in:
parent
f64fd23032
commit
6822c63274
@ -37,12 +37,11 @@ class AdminController extends Controller {
|
||||
{
|
||||
$user = new User;
|
||||
|
||||
$user->name = Input::get('firstname');
|
||||
$user->firstname = Input::get('firstname');
|
||||
$user->email = Input::get('email');
|
||||
$user->admin = 0;
|
||||
|
||||
$city = Input::get('city');
|
||||
$lastname = Input::get('lastname');
|
||||
$user->city = Input::get('city');
|
||||
$user->lastname = Input::get('lastname');
|
||||
|
||||
$user->save();
|
||||
return redirect('/admin')->with('message', 'Referent ajouté avec succès');
|
||||
|
@ -17,6 +17,7 @@
|
||||
<td>Prénom</td>
|
||||
<td>Mail</td>
|
||||
<td>Lieu</td>
|
||||
<td>Type utilisateur</td>
|
||||
<td>Se connecter</td>
|
||||
<td>Supprimer</td>
|
||||
</tr>
|
||||
@ -28,6 +29,11 @@
|
||||
<td>{{$user->firstname}}</td>
|
||||
<td>{{$user->email}}</td>
|
||||
<td>{{$user->city}}</td>
|
||||
@if ($user->admin == 0)
|
||||
<td>Référent</td>
|
||||
@else
|
||||
<td>Admin</td>
|
||||
@endif
|
||||
<td><a href="#" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-ok"></span></a></td>
|
||||
<td><a href="#" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-trash"></span></a></td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user