test
zez
This commit is contained in:
parent
de05756a7b
commit
4c61d4faa8
102
SRC/resources/views/backend/admin_home.blade.php
Normal file
102
SRC/resources/views/backend/admin_home.blade.php
Normal file
@ -0,0 +1,102 @@
|
||||
@extends('backend/template')
|
||||
|
||||
@section('content')
|
||||
<div class="container" style="padding-top:60px">
|
||||
<div class="row"><div class="col-md-12">
|
||||
@if (session('message_add'))
|
||||
<div class="alert alert-success">
|
||||
{{ Session::get('message_add') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('message_delete'))
|
||||
<div class="alert alert-danger">
|
||||
{{ Session::get('message_delete') }}
|
||||
</div>
|
||||
@endif
|
||||
</div></div>
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">Panel Administrateur<a class="btn btn-danger btn-xs pull-right" href="{{ URL::to('logout') }}">Se déconnecter</a></div>
|
||||
|
||||
<div class="panel-body">
|
||||
<button type="button" class="btn btn-primary addRef" data-toggle="modal" data-target="#myModal">Ajouter un référent</button>
|
||||
<!-- class="table table-hover table-bordered" -->
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Prénom</th>
|
||||
<th>Email</th>
|
||||
<th>Etablissement</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($users as $user)
|
||||
<tr>
|
||||
<td>{{$user->nom}}</td>
|
||||
<td>{{$user->prenom}}</td>
|
||||
<td>{{$user->email}}</td>
|
||||
<td>{{$user->etablissement}}</td>
|
||||
<td>
|
||||
<div class="btn-group" role="group" aria-label="...">
|
||||
<a href="{{ URL::to('admin/logAs', $user->id) }}" class="btn btn-primary"><span class="glyphicon glyphicon-zoom-in"></span></a>
|
||||
<a href="{{ URL::to('admin/deleteUser', $user->id) }}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Créer un nouvel adhérent</h4>
|
||||
</div>
|
||||
<form class="form-horizontal" method="POST" role="form" action="{{ URL::to('admin/addUser') }}">
|
||||
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="firstname" class="col-sm-2 control-label">Prénom</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="firstname" name="prenom" required placeholder="Prénom">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="lastname" class="col-sm-2 control-label">Nom</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="lastname" name="nom" required placeholder="Nom">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="email" class="form-control" id="email" name="email" required placeholder="Email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="city" class="col-sm-2 control-label">Etablissement</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="city" name="etablissement" required placeholder="Etablissement">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
76
SRC/resources/views/backend/navbar_signed.blade.php
Normal file
76
SRC/resources/views/backend/navbar_signed.blade.php
Normal file
@ -0,0 +1,76 @@
|
||||
<link href="css/navbar.css" rel="stylesheet" type="text/css"/>
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">Espace {{ $nameRoute }}</a>
|
||||
<p class="navbar-text"><img height="25" width="25" src="{{$me->image}}"></img> </p>
|
||||
<p class="navbar-text">{{$me->firstname}} {{$me->lastname}}</p>
|
||||
<p class="navbar-text">{{$me->email}}</p>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
@if (!Session::has('admin'))
|
||||
<a href="logout">Se déconnecter</a>
|
||||
@else
|
||||
<a href="admin">Retour Admin</a>
|
||||
@endif
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a data-toggle="modal" data-target="#myModal1">Mes paramètres</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Informations personnelles</h4>
|
||||
</div>
|
||||
<form class="form-horizontal" role="form" @if ($me->droits == 0) action="update" @else action="updateUser" @endif method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
||||
<input type="hidden" name="idUser" value="{{ $me->id }}" />
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="firstname" class="col-sm-2 control-label">Prénom</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="firstname" name="firstname" required placeholder="Prénom" value="{{$me->firstname}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="lastname" class="col-sm-2 control-label">Nom</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="lastname" name="lastname" required placeholder="Nom" value="{{$me->lastname}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="email" class="form-control" id="email" name="email" required placeholder="Email" value="{{$me->email}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="city" class="col-sm-2 control-label">Ecole</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="city" name="school" required placeholder="Ecole" value="{{$me->school}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="exampleInputFile">Image</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="file" name="file" id="file">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
235
SRC/resources/views/backend/ref_home.blade.php
Normal file
235
SRC/resources/views/backend/ref_home.blade.php
Normal file
@ -0,0 +1,235 @@
|
||||
@extends('backend/template')
|
||||
@section('content')
|
||||
@include('backend/ref_navbar')
|
||||
<div class="container-fluid" style="margin-top:70px">
|
||||
<div class="row">
|
||||
<div class=" col-md-4">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">Mes listes d'Oeuvres</div>
|
||||
<div class="panel-body">
|
||||
<form method="post" action="{{ URL::to('referent/changerparamliste') }}">
|
||||
<table class="table">
|
||||
<thead class="tablethead">
|
||||
<tr>
|
||||
<th>Liste</th>
|
||||
<th>Mémo</th>
|
||||
<th>Puzzle</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($meslistes as $index => $listeoeuvre)
|
||||
<tr>
|
||||
<td>{{$listeoeuvre->nom}}</td>
|
||||
<td><input 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>
|
||||
<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/supprimerliste', $listeoeuvre->id) }}" type="button" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
</form>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="text-center"><button type="submit" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-pencil"></span> Enregistrer</button></div>
|
||||
<form method="post" action="{{ URL::to('referent/ajouterliste') }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="form-group">
|
||||
<label for="nomListe">Nouvelle liste</label>
|
||||
<div class="input-group">
|
||||
<input type="text" id="nomListe" name="nomListe" class="form-control" placeholder="Nom de la liste">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-plus"></span></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
@if (isset($mesoeuvres))
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">Liste "{{ $mesoeuvres->nom }}"</div>
|
||||
<div class="panel-body">
|
||||
<ul class="nav nav-tabs" role="tablist" id="myTab">
|
||||
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Oeuvres sélectionnées</a></li>
|
||||
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Ajouter une Oeuvre</a></li>
|
||||
<li role="presentation"><a href="#tabconfig" aria-controls="profile" role="tab" data-toggle="tab">Configurer la difficulté</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div role="tabpanel" class="tab-pane active text-center" id="home">
|
||||
<div class="row">
|
||||
<div class="col-md-12" style="margin-top:30px;">
|
||||
@if(count($mesoeuvres->oeuvres) == 0)
|
||||
|
||||
|
||||
<h3>Aucune oeuvre dans la liste.</h3>
|
||||
@else
|
||||
<form method="post" action="{{ URL::to('referent/modifierliste/supprimer', $mesoeuvres->id) }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<select multiple="multiple" class="multiple" name="todel[]">
|
||||
@foreach($mesoeuvres->oeuvres as $index => $oeuvre)
|
||||
<option data-img-src='http://www.augustins.org/documents/10180/156407/{{ $oeuvre->image }}' value="{{ $oeuvre->id}}"></option>
|
||||
@endforeach
|
||||
</select>
|
||||
<button type="submit" class="btn btn-danger" href="#"><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="tabconfig">
|
||||
<div class="col-md-8 col-md-offset-2" style="margin-top:30px">
|
||||
|
||||
<form class="form-horizontal" method="post" action="{{URL::to('referent/changeParamListe', $mesoeuvres->id)}}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
|
||||
<legend>Puzzle</legend>
|
||||
<div class="form-group">
|
||||
<label for="p1" class="col-sm-4 control-label">Dimensions 1 étoile</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="p1" id="p1" placeholder="2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="p2" class="col-sm-4 control-label">Dimensions 2 étoiles</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="p2" id="p2" placeholder="3">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="p3" class="col-sm-4 control-label">Dimensions 3 étoiles</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="p3" id="p3" placeholder="4">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pt" class="col-sm-4 control-label">Tableaux par partie</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="pt" id="pt" placeholder="3">
|
||||
</div>
|
||||
</div>
|
||||
<legend>Mémo</legend>
|
||||
<div class="form-group">
|
||||
<label for="m1" class="col-sm-4 control-label">Nb. de tableaux 1 étoile</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="m1" id="m1" placeholder="2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="m2" class="col-sm-4 control-label">Nb. de tableaux 2 étoiles</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="m2" id="m2" placeholder="3">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="m3" class="col-sm-4 control-label">Nb. de tableaux 3 étoiles</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="m3" id="m3" placeholder="4">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="mt" class="col-sm-4 control-label">Tableaux par partie</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" name="mt" id="mt" placeholder="3">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-4 col-sm-6">
|
||||
<button id="search" class="btn btn-primary">Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="profile">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-2" style="margin-top:30px">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="inputAuteur" class="col-sm-2 control-label">Auteur</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="inputAuteur" placeholder="Auteur">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputDomaine" class="col-sm-2 control-label">Domaine</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="inputDomaine" placeholder="Domaine">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button id="search" class="btn btn-default">Rechercher</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form method="post" action="{{ URL::to('referent/modifierliste/ajouter', $mesoeuvres->id) }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="text-center" id="imagesSearched">
|
||||
</div>
|
||||
</form>
|
||||
@else
|
||||
<h1>Veuillez selectionner une liste pour la modifier.</h1>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('page-css')
|
||||
<link rel="stylesheet" href="{{ URL::to('css/image-picker.css') }}">
|
||||
@endsection
|
||||
@section('page-scripts')
|
||||
<script src="{{ URL::to('js/image-picker.min.js') }}"></script>
|
||||
<script>
|
||||
|
||||
$("select.multiple").imagepicker();
|
||||
|
||||
|
||||
$('#imagesSearched').load('{{ URL::to('api/searchOeuvres') }}', function(){$("select.multiple").imagepicker();});
|
||||
|
||||
$('#imagesSearched').on('click', '.pager a', function (event) {
|
||||
event.preventDefault();
|
||||
if ( $(this).attr('href') != '#' ) {
|
||||
$("#imagesSearched").animate({ scrollTop: 0 }, "fast");
|
||||
$('#imagesSearched').load($(this).attr('href'), function(){$("select.multiple").imagepicker();});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
$("#search").click(function(){
|
||||
event.preventDefault();
|
||||
$('#imagesSearched').empty();
|
||||
$('#imagesSearched').append("Recherche en cours");
|
||||
|
||||
$.get(" {{ URL::to('api/searchOeuvres') }}", { domaine : $('#domaine').val() },
|
||||
function(data){
|
||||
$('#imagesSearched').empty();
|
||||
$('#imagesSearched').append('<select multiple="multiple" id="toadd" name="toadd[]">');
|
||||
$(data.data).each(function(id, elt){
|
||||
$('#toadd').append("<option data-img-src='http://www.augustins.org/documents/10180/156407/" + elt.image +"' value=\""+ elt.id+"\"></option>");
|
||||
});
|
||||
$('#imagesSearched').append('<button type="submit" id="search" class="btn btn-default">Ajouter</button>');
|
||||
|
||||
$("#toadd").imagepicker();
|
||||
}, "json");
|
||||
});*/
|
||||
|
||||
</script>
|
||||
@endsection
|
10
SRC/resources/views/backend/ref_listeoeuvres.blade.php
Normal file
10
SRC/resources/views/backend/ref_listeoeuvres.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
<legend>Résultat de ma recherche</legend>
|
||||
<select multiple="multiple" class="multiple" id="toadd" name="toadd[]">
|
||||
@foreach($oeuvres as $oeuvre)
|
||||
<option data-img-src='http://www.augustins.org/documents/10180/156407/{{$oeuvre->image}}' value='{{$oeuvre->id}}'></option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
{!! $oeuvres->render() !!}
|
||||
|
||||
<button type="submit" class="btn btn-primary">Ajouter à la liste courante</button>
|
75
SRC/resources/views/backend/ref_navbar.blade.php
Normal file
75
SRC/resources/views/backend/ref_navbar.blade.php
Normal file
@ -0,0 +1,75 @@
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Espace Référent</a>
|
||||
</div>
|
||||
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="#">Mes Listes</a></li>
|
||||
<li><a data-toggle="modal" data-target="#myModal1" href="#">Mon Compte</a></li>
|
||||
<li><a href="{{ URL::to('logout') }}">Se Déconnecter</a></li>
|
||||
</ul>
|
||||
<p class="navbar-text navbar-right">Connecté en tant que {{ $me->prenom }} {{ $me->nom }}</p>
|
||||
<!-- /.navbar-collapse -->
|
||||
</div><!-- /.container-fluid -->
|
||||
</nav>
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel">Informations personnelles</h4>
|
||||
</div>
|
||||
<form class="form-horizontal" role="form" action="{{ URL::to('referent/update') }}" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
|
||||
<input type="hidden" name="idUser" value="{{ $me->id }}" />
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="firstname" class="col-sm-2 control-label">Prénom</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="firstname" name="prenom" required placeholder="Prénom" value="{{$me->prenom}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="lastname" class="col-sm-2 control-label">Nom</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="lastname" name="nom" required placeholder="Nom" value="{{$me->nom}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-2 control-label">Email</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="email" class="form-control" id="email" name="email" required placeholder="Email" value="{{$me->email}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="city" class="col-sm-2 control-label">Etablissement</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="city" name="etablissement" required placeholder="Ecole" value="{{$me->etablissement}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="exampleInputFile">Image</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="file" name="file" id="file">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
20
SRC/resources/views/backend/template.blade.php
Normal file
20
SRC/resources/views/backend/template.blade.php
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Espace Référent | Les Jeux du Musée</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
||||
@yield('page-css')
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@yield('content')
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
|
||||
@yield('page-scripts')
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user