blabla
This commit is contained in:
parent
109c9bc5f0
commit
fe630d6683
@ -58,7 +58,7 @@ class AdminController extends Controller {
|
|||||||
$idUser = Input::get('idUser');
|
$idUser = Input::get('idUser');
|
||||||
$user = User::find($idUser);
|
$user = User::find($idUser);
|
||||||
$user->delete();
|
$user->delete();
|
||||||
return redirect('/admin');
|
return redirect('/admin')->with('message_delete', 'Referent supprimé avec succès');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,9 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
{{ Session::get('message_add') }}
|
{{ Session::get('message_add') }}
|
||||||
{{ Session::get('message_delete') }}
|
{{ Session::get('message_delete') }}
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> baac10fe2346f5271d81bf13195da790a3f484f3
|
|
||||||
<br>
|
<br>
|
||||||
<div class="col-md-2"></div>
|
<div class="col-md-2"></div>
|
||||||
|
|
||||||
@ -18,8 +15,10 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr style="background-color: #F7BE81">
|
<tr style="background-color: #F7BE81">
|
||||||
<td>Nom</td>
|
<td>Nom</td>
|
||||||
|
<td>Prénom</td>
|
||||||
<td>Mail</td>
|
<td>Mail</td>
|
||||||
<td>Lieu</td>
|
<td>Lieu</td>
|
||||||
|
<td>Type</td>
|
||||||
<td>Se connecter</td>
|
<td>Se connecter</td>
|
||||||
<td>Supprimer</td>
|
<td>Supprimer</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -30,22 +29,17 @@
|
|||||||
<input type="hidden" name="idUser" value="{{ $user->id }}">
|
<input type="hidden" name="idUser" value="{{ $user->id }}">
|
||||||
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
||||||
<tr style="background-color: #F6E3CE">
|
<tr style="background-color: #F6E3CE">
|
||||||
<td>{{$user->name}}</td>
|
<td>{{$user->firstname}}</td>
|
||||||
|
<td>{{$user->lastname}}</td>
|
||||||
<td>{{$user->email}}</td>
|
<td>{{$user->email}}</td>
|
||||||
<<<<<<< HEAD
|
|
||||||
<td>{{$user->city}}</td>
|
<td>{{$user->city}}</td>
|
||||||
@if ($user->admin == 0)
|
@if ($user->admin == 0)
|
||||||
<td>Référent</td>
|
<td>Référent</td>
|
||||||
@else
|
@else
|
||||||
<td>Admin</td>
|
<td>Admin</td>
|
||||||
@endif
|
@endif
|
||||||
<td><a href="#" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-ok"></span></a></td>
|
|
||||||
<td><button type="submit" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-trash"></span></a></td>
|
|
||||||
=======
|
|
||||||
<td>Toulouse</td>
|
|
||||||
<td><a href="#" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-log-in"></span></a></td>
|
<td><a href="#" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-log-in"></span></a></td>
|
||||||
<td><a href="#" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-trash"></span></a></td>
|
<td><button type="submit" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-trash"></span></a></td>
|
||||||
>>>>>>> baac10fe2346f5271d81bf13195da790a3f484f3
|
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -63,6 +57,7 @@
|
|||||||
<h4 class="modal-title" id="myModalLabel">Créer un nouvel adhérent</h4>
|
<h4 class="modal-title" id="myModalLabel">Créer un nouvel adhérent</h4>
|
||||||
</div>
|
</div>
|
||||||
<form class="form-horizontal" method="POST" role="form" action="addUser">
|
<form class="form-horizontal" method="POST" role="form" action="addUser">
|
||||||
|
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="firstname" class="col-sm-2 control-label">Prénom</label>
|
<label for="firstname" class="col-sm-2 control-label">Prénom</label>
|
||||||
@ -73,27 +68,18 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="lastname" class="col-sm-2 control-label">Nom</label>
|
<label for="lastname" class="col-sm-2 control-label">Nom</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<<<<<<< HEAD
|
|
||||||
<input type="text" class="form-control" id="lastname" name="lastname" required placeholder="Nom">
|
<input type="text" class="form-control" id="lastname" name="lastname" required placeholder="Nom">
|
||||||
=======
|
|
||||||
<input type="text" class="form-control" id="lastname" placeholder="Nom">
|
|
||||||
>>>>>>> baac10fe2346f5271d81bf13195da790a3f484f3
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<<<<<<< HEAD
|
|
||||||
<input type="email" class="form-control" id="email" name="email" required placeholder="Email">
|
<input type="email" class="form-control" id="email" name="email" required placeholder="Email">
|
||||||
=======
|
|
||||||
<input type="email" class="form-control" id="email" placeholder="Email">
|
|
||||||
>>>>>>> baac10fe2346f5271d81bf13195da790a3f484f3
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="city" class="col-sm-2 control-label">Ville</label>
|
<label for="city" class="col-sm-2 control-label">Ville</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<<<<<<< HEAD
|
|
||||||
<input type="text" class="form-control" id="city" name="city" required placeholder="Ville">
|
<input type="text" class="form-control" id="city" name="city" required placeholder="Ville">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -104,17 +90,12 @@
|
|||||||
<input name="isadmin" type="checkbox"> Est administrateur
|
<input name="isadmin" type="checkbox"> Est administrateur
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
=======
|
|
||||||
<input type="text" class="form-control" id="city" placeholder="Ville">
|
|
||||||
>>>>>>> baac10fe2346f5271d81bf13195da790a3f484f3
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||||
<button type="button" class="btn btn-primary">Enregistrer</button>
|
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user