2019-09-18 00:31:59 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2019-12-02 22:49:12 +01:00
|
|
|
<title>{% block title "Ğ1-Marché - Administration" %}</title>
|
2019-09-18 00:31:59 +02:00
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/3.0.7/flatpickr.css">
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
padding-top: 5rem;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<nav class="navbar fixed-top navbar-expand-sm navbar-dark bg-dark">
|
2019-12-02 22:49:12 +01:00
|
|
|
<a class="navbar-brand" href="{{ path('gmarche.index') }}">Ğ1-Marché</a>
|
|
|
|
|
|
|
|
<ul class="navbar-nav mr-auto" style="color: white;">
|
|
|
|
<!-- admin_menu() -->
|
|
|
|
role = {{ role }}
|
|
|
|
</ul>
|
|
|
|
<div class="navbar-nav">
|
|
|
|
<div class="navbar-text" style="color:lightgray;margin-right:15px; margin-top:3px;">
|
|
|
|
{{ "now"|date('d/m/y') }}
|
2019-12-23 02:09:54 +01:00
|
|
|
affiche_username = {{ affiche_username() }} /affiche_username
|
2019-12-02 22:49:12 +01:00
|
|
|
</div>
|
2019-12-23 02:09:54 +01:00
|
|
|
|
|
|
|
{% if affiche_username()!= '' %}
|
2019-12-02 22:49:12 +01:00
|
|
|
<form method="post" style="margin-top:5px;" action="{{ path('account.profil') }}">
|
2019-12-23 02:09:54 +01:00
|
|
|
<span><img src="\avatar_user.png" width="22" height="22" />
|
|
|
|
affiche_username = {{ affiche_username() }} /affiche_username</span>
|
2019-12-09 01:02:34 +01:00
|
|
|
<button style="color:white;font-size: 14px;" class="btn-primary">user = {{ name_user }}</button>
|
|
|
|
<button style="color:white;font-size: 14px;" class="btn-primary">user2 = {{ name_user2 }}</button>
|
2019-12-02 22:49:12 +01:00
|
|
|
</form>
|
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
|
|
<!-- csrf_input() }}-->
|
|
|
|
<button class="btn btn-danger" style="margin-left: 7px; font-size:14px;">Se déconnecter</button>
|
|
|
|
</form>
|
|
|
|
{% else %}
|
2019-12-09 01:02:34 +01:00
|
|
|
<span style="color:white;">
|
|
|
|
name_user = {{ name_user }}
|
|
|
|
name_user2 = {{ name_user2 }}</span>
|
2019-12-02 22:49:12 +01:00
|
|
|
<div class="nav-item" id="bouton-connexion">
|
|
|
|
<button style="color:white; font-size: 14px;" class="btn btn-primary" data-toggle="modal" data-target="#connexion_modal">Se connecter</button>
|
|
|
|
</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>
|
|
|
|
</div>
|
|
|
|
<div class="nav-item" id="inscription">
|
|
|
|
<a class="nav-link" href="{{ path('account.signup') }}" style="font-size:14px;">S'inscrire</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2019-09-18 00:31:59 +02:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
{% if flash('success') %}
|
|
|
|
<div class="alert alert-success">
|
|
|
|
{{ flash('success') }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if flash('error') %}
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
{{ flash('error') }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% block body %}{% endblock %}
|
|
|
|
|
|
|
|
</div><!-- /.container -->
|
|
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
|
2019-12-02 22:49:12 +01:00
|
|
|
|
2019-09-18 00:31:59 +02:00
|
|
|
</body>
|
|
|
|
</html>
|