modified: SRC/app/Http/Controllers/ReferentController.php

modified:   SRC/resources/views/referent.blade.php
This commit is contained in:
Malibu 2015-02-19 16:22:12 +01:00
parent d22f90d8ce
commit 415fdb2812
2 changed files with 6 additions and 2 deletions

View File

@ -87,7 +87,11 @@ class ReferentController extends Controller {
public function deleteListeOeuvre()
{
;
$idListeOeuvre = Input::get('idListeOeuvre');
$ListeOeuvre = ListeOeuvre::find($idListeOeuvre);
$ListeOeuvre->delete();
return redirect('/referent');
}
}

View File

@ -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() }}}" />