modified: SRC/app/Http/Controllers/ReferentController.php
modified: SRC/resources/views/referent.blade.php
This commit is contained in:
parent
5fbb41a461
commit
a17832b4b6
@ -5,6 +5,11 @@ use Input;
|
||||
use Request;
|
||||
use App\Models\ListeOeuvre;
|
||||
use App\Models\AssoListeAOeuvre;
|
||||
use App\Models\Auteur;
|
||||
use App\Models\Designation;
|
||||
use App\Models\Domaine;
|
||||
use App\Models\Matiere;
|
||||
use App\Models\Technique;
|
||||
use Response;
|
||||
|
||||
|
||||
@ -31,11 +36,18 @@ class ReferentController extends Controller {
|
||||
$me = User::current();
|
||||
$user = User::all();
|
||||
|
||||
$dataSearch = [];
|
||||
$dataSearch['auteur'] = Auteur::all();
|
||||
$dataSearch['designation'] = Designation::all();
|
||||
$dataSearch['domaine'] = Domaine::all();
|
||||
$dataSearch['matiere'] = Matiere::all();
|
||||
$dataSearch['technique'] = Technique::all();
|
||||
|
||||
//$ListeOeuvre = ListeOeuvre::find(2);
|
||||
//$ListeOeuvre->oeuvres()->attach([22, 23, 24, 25, 26]);
|
||||
|
||||
$listeoeuvres = ListeOeuvre::currentUser()->get();
|
||||
return view('referent', ['nameRoute' => 'Référent', 'me' => $me, 'listeoeuvres' => $listeoeuvres]);
|
||||
return view('referent', ['nameRoute' => 'Référent', 'me' => $me, 'listeoeuvres' => $listeoeuvres, 'data' => $dataSearch]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -111,28 +111,9 @@
|
||||
<div class="col-sm-10">
|
||||
<select data-placeholder="Choisissez un auteur" class="chosen-select" multiple style="width:350px;" tabindex="4">
|
||||
<option value=""></option>
|
||||
<option value="United States">United States</option>
|
||||
<option value="United Kingdom">United Kingdom</option>
|
||||
<option value="Afghanistan">Afghanistan</option>
|
||||
<option value="Aland Islands">Aland Islands</option>
|
||||
<option value="Albania">Albania</option>
|
||||
<option value="Zambia">Zambia</option>
|
||||
<option value="Zimbabwe">Zimbabwe</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputEmail3" class="col-sm-2 control-label">Description</label>
|
||||
<div class="col-sm-10">
|
||||
<select data-placeholder="Choisissez une description" class="chosen-select" multiple style="width:350px;" tabindex="4">
|
||||
<option value=""></option>
|
||||
<option value="United States">United States</option>
|
||||
<option value="United Kingdom">United Kingdom</option>
|
||||
<option value="Afghanistan">Afghanistan</option>
|
||||
<option value="Aland Islands">Aland Islands</option>
|
||||
<option value="Albania">Albania</option>
|
||||
<option value="Zambia">Zambia</option>
|
||||
<option value="Zimbabwe">Zimbabwe</option>
|
||||
@foreach ($data['auteur'] as $val)
|
||||
<option value="{{$val -> id}}">{{$val -> nom}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -141,13 +122,9 @@
|
||||
<div class="col-sm-10">
|
||||
<select data-placeholder="Choisissez une désignation" class="chosen-select" multiple style="width:350px;" tabindex="4">
|
||||
<option value=""></option>
|
||||
<option value="United States">United States</option>
|
||||
<option value="United Kingdom">United Kingdom</option>
|
||||
<option value="Afghanistan">Afghanistan</option>
|
||||
<option value="Aland Islands">Aland Islands</option>
|
||||
<option value="Albania">Albania</option>
|
||||
<option value="Zambia">Zambia</option>
|
||||
<option value="Zimbabwe">Zimbabwe</option>
|
||||
@foreach ($data['designation'] as $val)
|
||||
<option value="{{$val->id}}">{{$val->nom}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -156,13 +133,9 @@
|
||||
<div class="col-sm-10">
|
||||
<select data-placeholder="Choisissez un domaine" class="chosen-select" multiple style="width:350px;" tabindex="4">
|
||||
<option value=""></option>
|
||||
<option value="United States">United States</option>
|
||||
<option value="United Kingdom">United Kingdom</option>
|
||||
<option value="Afghanistan">Afghanistan</option>
|
||||
<option value="Aland Islands">Aland Islands</option>
|
||||
<option value="Albania">Albania</option>
|
||||
<option value="Zambia">Zambia</option>
|
||||
<option value="Zimbabwe">Zimbabwe</option>
|
||||
@foreach ($data['domaine'] as $val)
|
||||
<option value="{{$val->id}}">{{$val->nom}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -171,13 +144,9 @@
|
||||
<div class="col-sm-10">
|
||||
<select data-placeholder="Choisissez une matière" class="chosen-select" multiple style="width:350px;" tabindex="4">
|
||||
<option value=""></option>
|
||||
<option value="United States">United States</option>
|
||||
<option value="United Kingdom">United Kingdom</option>
|
||||
<option value="Afghanistan">Afghanistan</option>
|
||||
<option value="Aland Islands">Aland Islands</option>
|
||||
<option value="Albania">Albania</option>
|
||||
<option value="Zambia">Zambia</option>
|
||||
<option value="Zimbabwe">Zimbabwe</option>
|
||||
@foreach ($data['matiere'] as $val)
|
||||
<option value="{{$val->id}}">{{$val->nom}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -186,13 +155,9 @@
|
||||
<div class="col-sm-10">
|
||||
<select data-placeholder="Choisissez une technique" class="chosen-select" multiple style="width:350px;" tabindex="4">
|
||||
<option value=""></option>
|
||||
<option value="United States">United States</option>
|
||||
<option value="United Kingdom">United Kingdom</option>
|
||||
<option value="Afghanistan">Afghanistan</option>
|
||||
<option value="Aland Islands">Aland Islands</option>
|
||||
<option value="Albania">Albania</option>
|
||||
<option value="Zambia">Zambia</option>
|
||||
<option value="Zimbabwe">Zimbabwe</option>
|
||||
@foreach ($data['designation'] as $val)
|
||||
<option value="{{$val->id}}">{{$val->nom}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user