modifié : SRC/resources/views/backend/ref_home.blade.php

This commit is contained in:
sidya82 2015-03-24 11:21:32 +01:00
parent b97f89ac80
commit cfc225bc31

View File

@ -31,8 +31,8 @@
</div> </div>
</div> </div>
</form> </form>
<div class="alert alert-grey">Ci-dessous, vous pouvez associer les listes d'oeuvres à un jeu. Cliquez sur le bouton "<span class="glyphicon glyphicon-ok"> </span> Associer" quand c'est terminé.</div> <div class="alert alert-grey">Ci-dessous, vous pouvez associer les listes d'oeuvres à un jeu. </div>
<form method="post" action="{{ URL::to('referent/changerparamliste') }}"> <form id ="assoListeJeu" method="post" action="{{ URL::to('referent/changerparamliste') }}">
<table class="table"> <table class="table">
<thead class="tablethead"> <thead class="tablethead">
<tr> <tr>
@ -45,15 +45,15 @@
<tbody> <tbody>
<tr> <tr>
<td>Liste aléatoire</td> <td>Liste aléatoire</td>
<td><input type="radio" name="memo" value="0" checked type="checkbox"></td> <td><input class="radioAsso" type="radio" name="memo" value="0" checked type="checkbox"></td>
<td><input type="radio" name="puzzle" value="0" checked type="checkbox"></td> <td><input class="radioAsso" type="radio" name="puzzle" value="0" checked type="checkbox"></td>
<td></td> <td></td>
</tr> </tr>
@foreach ($meslistes as $index => $listeoeuvre) @foreach ($meslistes as $index => $listeoeuvre)
<tr> <tr>
<td>{{$listeoeuvre->nom}}</td> <td>{{$listeoeuvre->nom}}</td>
<td><input type="radio" name="memo" value="{{$listeoeuvre->id}}" {{ ($listeoeuvre->actifMemo == 1) ? 'checked' : '' }} type="checkbox"></td> <td><input class="radioAsso" type="radio" name="memo" value="{{$listeoeuvre->id}}" {{ ($listeoeuvre->actifMemo == 1) ? 'checked' : '' }} type="checkbox"></td>
<td><input type="radio" name="puzzle" value="{{$listeoeuvre->id}}" {{ ($listeoeuvre->actifPuzzle == 1) ? 'checked' : '' }} type="checkbox"></td> <td><input class="radioAsso" type="radio" name="puzzle" value="{{$listeoeuvre->id}}" {{ ($listeoeuvre->actifPuzzle == 1) ? 'checked' : '' }} type="checkbox"></td>
<td> <td>
<div class="btn-group" role="group" aria-label="..."> <div class="btn-group" role="group" aria-label="...">
<a href="{{ URL::to('referent/modifierliste', $listeoeuvre->id) }}" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-pencil"></span></a> <a href="{{ URL::to('referent/modifierliste', $listeoeuvre->id) }}" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-pencil"></span></a>
@ -66,7 +66,6 @@
</form> </form>
</tbody> </tbody>
</table> </table>
<div class="text-center"><button type="submit" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-ok-circle"> </span> Associer</button></div>
</div> </div>
</div> </div>
@ -315,6 +314,11 @@ $("#recherche").on('submit', function(event){
}); });
$(".radioAsso").change(function() {
console.log('lol');
$.get('{{ URL::to('referent/changerparamliste') }}' + $('#assoListeJeu').serialize());
});
/* /*