Commit c29fe294 authored by Bonnegent Sebastien's avatar Bonnegent Sebastien
Browse files

support cours 2

parent 471cef7c
{% load static %}
<!doctype html><html lang="fr"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.min.css' %}">
<script defer src="{% static 'fontawesome/js/fontawesome-all.min.js' %}"></script>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="{% url 'garage:home' %}">Accueil</a>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<ul class="navbar-nav mr-auto">
<li class="nav-item {{ menu_garages }}"><a class="nav-link" href="{% url 'garage:garages' %}">Garages</a></li>
<li class="nav-item {{ menu_vehicules }}"><a class="nav-item nav-link" href="{% url 'garage:vehicules' %}">Véhicules</a></li>
<li class="nav-item {{ menu_mes_vehicules }}"><a class="nav-item nav-link" href="{% url 'garage:mes_vehicules' %}">Mes véhicules</a></li>
<ul class="navbar-nav navbar-right">
{% if user.is_authenticated %}
{% if user.is_staff %}
<li class="nav-item"><a class="nav-link" href="/admin">Admin</a></li>
{% endif %}
<li class="nav-item"><a class="nav-link" href="{% url 'logout' %}">Déconnexion</a></li>
{% else %}
<li class="nav-item"><a class="nav-link" href="{% url 'login' %}">Connexion</a></li>
{% endif %}
<div class="container-fluid">
{% block content %}
<p>Bienvenue !</p>
{% endblock %}
<script src="{% static 'bootstrap/js/jquery.min.js' %}"></script>
<script src="{% static 'bootstrap/js/bootstrap.min.js' %}"></script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment