This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
ModuleWeb/SRC/resources/views/admin.blade.php

90 lines
2.8 KiB
PHP
Raw Normal View History

2015-02-12 19:00:23 +00:00
@extends('app')
@section('content')
2015-02-16 10:53:03 +00:00
2015-02-13 10:41:05 +00:00
<br>
2015-02-12 23:59:13 +00:00
<div class="col-md-2"></div>
2015-02-12 19:00:23 +00:00
2015-02-13 22:02:17 +00:00
<div class="col-md-8">
2015-02-12 23:59:13 +00:00
<button style="float: right" type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Ajouter un référent</button>
2015-02-12 19:00:23 +00:00
<table class="table table-hover">
<thead>
<tr>
<td>Nom</td>
<td>Mail</td>
<td>Lieu</td>
<td>Action</td>
</tr>
</thead>
<tbody>
2015-02-16 10:53:03 +00:00
<?php
$user = DB::table('users')->where('name','<>',"admin")->get();
foreach ($user as $ref) {
?> <tr>
<td><?php echo $ref->name; ?></td>
<td><?php echo $ref->email; ?></td>
2015-02-12 19:00:23 +00:00
<td>Toulouse</td>
2015-02-12 23:59:13 +00:00
<td>
<button type="button" class="btn btn-default btn-sm">Se connecter</button>
<button type="button" class="btn btn-warning btn-sm">Supprimer</button>
</td>
2015-02-12 19:00:23 +00:00
</tr>
2015-02-16 10:53:03 +00:00
<?php
}
?>
2015-02-12 19:00:23 +00:00
</tbody>
</table>
</div>
2015-02-12 23:59:13 +00:00
<!-- 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">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">Créer un nouvel adhérent</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="form-group">
<label for="prenom" class="col-sm-2 control-label">Prénom</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="prenom" placeholder="Prénom">
</div>
</div>
<div class="form-group">
<label for="nom" class="col-sm-2 control-label">Nom</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="nom" 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" placeholder="Email">
</div>
</div>
<div class="form-group">
<label for="ville" class="col-sm-2 control-label">Ville</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="ville" placeholder="Ville">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
<button type="button" class="btn btn-primary">Enregistrer</button>
</div>
</div>
</div>
2015-02-12 19:00:23 +00:00
</div>
2015-02-12 23:59:13 +00:00
2015-02-15 00:05:39 +00:00
@endsection