modified: SRC/app/Http/Controllers/ReferentController.php
modified: SRC/resources/views/referent.blade.php
This commit is contained in:
parent
d22f90d8ce
commit
415fdb2812
@ -87,7 +87,11 @@ class ReferentController extends Controller {
|
|||||||
|
|
||||||
public function deleteListeOeuvre()
|
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">
|
<table class="table table-hover">
|
||||||
@foreach ($listeoeuvres as $listeoeuvre)
|
@foreach ($listeoeuvres as $listeoeuvre)
|
||||||
<tr class="active 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" name="idUser" value="{{ $me->id }}">
|
||||||
<input type="hidden" class="idListeOeuvre" name="idListeOeuvre" value="{{ $listeoeuvre->id }}">
|
<input type="hidden" class="idListeOeuvre" name="idListeOeuvre" value="{{ $listeoeuvre->id }}">
|
||||||
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
||||||
|
Reference in New Issue
Block a user