Init project
This commit is contained in:
33
templates/base.html
Normal file
33
templates/base.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Facturation{% endblock %}</title>
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<div class="nav-brand">🧾 Facturation</div>
|
||||
<ul class="nav-links">
|
||||
<li><a href="/factures/">Factures</a></li>
|
||||
<li><a href="/devis/">Devis</a></li>
|
||||
<li><a href="/clients/">Clients</a></li>
|
||||
{% if current_user is defined and current_user %}
|
||||
{% if current_user.is_admin %}
|
||||
<li><a href="/admin/utilisateurs">Utilisateurs</a></li>
|
||||
{% endif %}
|
||||
<li class="nav-user">{{ current_user.username }}</li>
|
||||
<li>
|
||||
<form method="post" action="/logout" style="display:inline">
|
||||
<button type="submit" class="btn-nav-logout">Déconnexion</button>
|
||||
</form>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user