|
|
|
@ -12,63 +12,77 @@
|
|
|
|
|
body {
|
|
|
|
|
padding-top: 5rem;
|
|
|
|
|
}
|
|
|
|
|
.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;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body class="fond">
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
{% if antenne_name %}
|
|
|
|
|
<button class="btn-custom">Produits</button>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="navbar-nav">
|
|
|
|
|
<div class="navbar-text" style="color:lightgray;margin-right:15px; margin-top:-3px;">
|
|
|
|
|
{{ "now"|date('d/m/y') }}
|
|
|
|
|
</div>
|
|
|
|
|
{% if current_user() %}
|
|
|
|
|
<div class="navbar-text"><span><img src="\avatar_user.png" width="22" height="22" /></span>
|
|
|
|
|
<span id="nom_connecte">{{ current_user().username }}</span></div>
|
|
|
|
|
|
|
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
|
|
|
<!-- csrf_input() }}-->
|
|
|
|
|
<button class="btn btn-danger" style="font-size:14px;">Se déconnecter</button>
|
|
|
|
|
</form>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="nav-item">
|
|
|
|
|
<a class="nav-link" href="{{ path('auth.login') }}" style="font-size:14px;">Se connecter</a>
|
|
|
|
|
<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>
|
|
|
|
|
{% if antenne_name %}
|
|
|
|
|
<button class="btn-custom">Produits</button>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="navbar-nav">
|
|
|
|
|
<div class="navbar-text" style="color:lightgray;margin-right:15px; margin-top:-3px;">
|
|
|
|
|
{{ "now"|date('d/m/y') }}
|
|
|
|
|
</div>
|
|
|
|
|
{% if current_user() %}
|
|
|
|
|
<div class="navbar-text"><span><img src="\avatar_user.png" width="22" height="22" /></span>
|
|
|
|
|
<span id="nom_connecte">{{ current_user().username }}</span></div>
|
|
|
|
|
|
|
|
|
|
<form method="post" action="{{ path('auth.logout') }}">
|
|
|
|
|
<!-- csrf_input() }}-->
|
|
|
|
|
<button class="btn btn-danger" style="font-size:14px;">Se déconnecter</button>
|
|
|
|
|
</form>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="nav-item">
|
|
|
|
|
<a class="nav-link" href="{{ path('auth.login') }}" style="font-size:14px;">Se connecter</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="nav-item">
|
|
|
|
|
<a class="nav-link" href="{{ path('account.signup') }}" style="font-size:14px;">S'inscrire</a>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="nav-item">
|
|
|
|
|
<a class="nav-link" href="{{ path('account.signup') }}" style="font-size:14px;">S'inscrire</a>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
{% if flash('success') %}
|
|
|
|
|
<div class="alert alert-success">
|
|
|
|
|
{{ flash('success') }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<!-- <div class="container">-->
|
|
|
|
|
{% if flash('success') %}
|
|
|
|
|
<div class="alert alert-success">
|
|
|
|
|
{{ flash('success') }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
|
|
|
|
{% block body %}{% endblock %}
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
|
|
|
|
|
|
|
|
|
</div><!-- /.container -->
|
|
|
|
|
{% block body %}{% endblock %}
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|