2019-09-18 00:31:59 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>{% block title "Ğ1-Marché " %}</title>
|
2019-10-06 23:08:41 +02:00
|
|
|
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"-->
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/sandstone/bootstrap.min.css">
|
2019-09-18 00:31:59 +02:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="\images\favicon.ico">
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap">
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kalam&display=swap">
|
|
|
|
<link rel="stylesheet" href="\css\style.css">
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
padding-top: 5rem;
|
|
|
|
}
|
2019-10-24 01:15:07 +02:00
|
|
|
.page {
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows:60px 50px 1fr 80px;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
grid-template-areas:
|
|
|
|
"site site site"
|
|
|
|
"header header header"
|
|
|
|
"breadcrumbs breadcrumbs breadcrumbs"
|
|
|
|
"sidebar main main"
|
|
|
|
"footer footer footer";
|
|
|
|
}
|
|
|
|
.site {
|
|
|
|
grid-column: 2 / 3;
|
|
|
|
}
|
2019-09-18 00:31:59 +02:00
|
|
|
</style>
|
2019-11-10 03:23:00 +01:00
|
|
|
<!--<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>-->
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/js/jquery-3.4.1.min.js"></script>
|
2019-11-04 23:26:02 +01:00
|
|
|
<script type="text/javascript" src="/js/connex.js"></script>
|
2019-09-18 00:31:59 +02:00
|
|
|
</head>
|
2019-10-24 01:15:07 +02:00
|
|
|
<body class="fond page">
|
|
|
|
<div class="site">
|
|
|
|
<nav class="navbar fixed-top navbar-expand-sm navbar-dark bg-dark">
|
|
|
|
<a class="navbar-brand" href="#">Ğ1-Marché</a>
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link {% if regions %} active{% endif %}" style="font-size:14px;"
|
|
|
|
href="{{ path('gmarche.index') }}">Accueil</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link {% if explodeUrl()[1]=='contact' %} active{% endif %}" style="font-size:14px;"
|
|
|
|
href="{{ path('contact') }}">Qui sommes-nous ?</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="navbar-nav">
|
2019-11-18 21:46:33 +01:00
|
|
|
<div class="navbar-text" style="color:lightgray;margin-right:15px; margin-top:3px;">
|
2019-10-24 01:15:07 +02:00
|
|
|
{{ "now"|date('d/m/y') }}
|
|
|
|
</div>
|
2019-11-09 23:23:19 +01:00
|
|
|
<!--{pourcent if current_user() pourcent}-->
|
2019-11-14 00:49:03 +01:00
|
|
|
{% if nom_user != '' %}
|
2019-11-18 21:46:33 +01:00
|
|
|
<!-- <button style="background-color: transparent;padding:0;border:0;" -->
|
|
|
|
<form method="post" style="margin-top:5px;" action="{{ path('account.profil') }}">
|
|
|
|
<span><img src="\avatar_user.png" width="22" height="22" /></span>
|
|
|
|
<!--<span id="nom_connecte"> nom_user </span>-->
|
|
|
|
<button style="color:white;font-size: 14px;" class="btn-primary">{{ nom_user }}</button>
|
|
|
|
</form>
|
2019-10-24 01:15:07 +02:00
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
|
|
<!-- csrf_input() }}-->
|
2019-11-09 23:23:19 +01:00
|
|
|
<button class="btn btn-danger" style="margin-left: 7px; font-size:14px;">Se déconnecter</button>
|
2019-10-24 01:15:07 +02:00
|
|
|
</form>
|
|
|
|
{% else %}
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="nav-item" id="bouton-connexion">
|
2019-11-18 21:46:33 +01:00
|
|
|
<button style="color:white; font-size: 14px;" class="btn btn-primary" data-toggle="modal" data-target="#connexion_modal">Se connecter</button>
|
2019-11-04 23:26:02 +01:00
|
|
|
</div>
|
|
|
|
<div id="nom_connecte" style="display:none;margin-left:10px;margin-top:6px;margin-right:8px;">
|
|
|
|
</div>
|
|
|
|
<div id="deconnexion" style="display:none;">
|
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
|
|
<!-- csrf_input() }}-->
|
|
|
|
<button class="btn btn-danger" style="font-size:14px;">Se déconnecter</button>
|
|
|
|
</form>
|
2019-10-24 01:15:07 +02:00
|
|
|
</div>
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="nav-item" id="inscription">
|
2019-10-24 01:15:07 +02:00
|
|
|
<a class="nav-link" href="{{ path('account.signup') }}" style="font-size:14px;">S'inscrire</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-09-18 00:31:59 +02:00
|
|
|
</div>
|
2019-10-24 01:15:07 +02:00
|
|
|
</nav>
|
|
|
|
{% if flash('success') %}
|
|
|
|
<div class="alert alert-success">
|
|
|
|
{{ flash('success') }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="alert alert-danger" style="display:none;">
|
|
|
|
</div>
|
2019-09-18 00:31:59 +02:00
|
|
|
|
2019-10-25 00:44:54 +02:00
|
|
|
{% block body %}{% endblock %}
|
2019-11-18 21:46:33 +01:00
|
|
|
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="modal fade" id="connexion_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
|
|
<div class="modal-dialog" role="document" style="color: black;">
|
|
|
|
<div class="modal-content" style="text-align: left;">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title" id="myModalLabel">Se connecter</h4>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="pseudo">Pseudo</label>
|
2019-11-14 00:49:03 +01:00
|
|
|
<input type="text" id="pseudo" placeholder="{{ nom_user }}" class="form-control"/>
|
2019-11-04 23:26:02 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="mdp">Mot de passe</label>
|
|
|
|
<input type="password" id="mdp" class="form-control"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-18 21:46:33 +01:00
|
|
|
<div class="modal-body">
|
|
|
|
<button class="mdp_oublie" type="button" class="btn-default">
|
|
|
|
<a style="color:gray;" href="{{ path('auth.password') }}">Mot de passe oublié ?</a>
|
|
|
|
</button>
|
|
|
|
</div>
|
2019-11-04 23:26:02 +01:00
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
|
|
<button type="button" class="btn btn-primary"
|
2019-11-19 23:09:14 +01:00
|
|
|
onclick="connexion(document.getElementById('pseudo').value,document.getElementById('mdp').value)">Valider</button>
|
2019-11-04 23:26:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-24 01:15:07 +02:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
|
|
|
|
</div>
|
2019-09-18 00:31:59 +02:00
|
|
|
</body>
|
|
|
|
</html>
|