modified: SRC/app/Http/Controllers/ReferentController.php
modified: SRC/resources/views/referent.blade.php
This commit is contained in:
		| @@ -87,7 +87,11 @@ class ReferentController extends Controller { | ||||
|  | ||||
| 	public function deleteListeOeuvre()  | ||||
| 	{ | ||||
| 		; | ||||
| 		$idListeOeuvre = Input::get('idListeOeuvre'); | ||||
| 		$ListeOeuvre = ListeOeuvre::find($idListeOeuvre); | ||||
| 		$ListeOeuvre->delete(); | ||||
|  | ||||
| 		return redirect('/referent');		 | ||||
| 	} | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -22,7 +22,7 @@ | ||||
| <table class="table table-hover"> | ||||
|   @foreach ($listeoeuvres as $listeoeuvre) | ||||
|   <tr class="active listeoeuvre"> | ||||
|     <form method="POST" role="form" action="deleteSession"> | ||||
|     <form method="POST" role="form" action="deleteListeOeuvre"> | ||||
|     <input type="hidden" name="idUser" value="{{ $me->id }}"> | ||||
|     <input type="hidden" class="idListeOeuvre" name="idListeOeuvre" value="{{ $listeoeuvre->id }}"> | ||||
|     <input type="hidden" name="_token" value="{{{ csrf_token() }}}" /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user