Files
srvflask/templates/index.html
2026-03-08 13:25:06 +01:00

70 lines
2.0 KiB
HTML

<!doctype html>
<html lang="fr">
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<script>
function added_user(Identifiant){
if (Identifiant){
alert("L'utilisateur " + Identifiant + " à été ajouté");
}
}
added_user("{{added_user}}");
</script>
<meta charset="utf-8">
<title>Accueil</title>
<style>
.main{
display: grid;
grid-template-columns: repeat(1, 1fr) ;
}
.align_left {
grid-column: 1;
grid-row: 1 ;
/*
display: inline-block;
*/
}
.align_right {
grid-column: 2;
grid-row: 1;
/*
position: relative;
top: 0px;
width: 40%;
float: right;
display: inline-block;
*/
}
</style>
</head>
<body>
<img src="{{ url_for('static', filename='img/logo.jpg') }}" style="display: block" alt="Logo" width="160">
<div class= "main">
<div class= "align_left">
<h1>Mon site journal</h1>
<h2>Accueil</h2>
<p><a href="{{ url_for('NOTES',Identifiant=Identifiant) }}">Aller sur NOTES</a></p>
<p><a href="{{ url_for('heure',Identifiant=Identifiant) }}">Verifier l'heure</a></p>
<p><a href="{{ url_for('formulaire') }}">Aller au formulaire</a></p>
<h3>Répertoire</h3>
<ul>
<li><a href="{{ url_for('cherche') }}">Rechercher un numéro</a></li>
<li><a href="{{ url_for('ajout') }}">Ajouter un contact</a></li>
</ul>
</div>
<div class= "align_right">
{% if Identifiant == "Alban" %}
<h1>Ajouter un utilisateur</h1>
<form action="{{ url_for('result_add_user') }}" method="post">
<label>Identifiant : <input name="Identifiant" required></label><br>
<label>Mot_de_passe : <input name="Mot_de_passe" required></label><br>
<button type="submit">Ajouter</button>
</form>
{% endif %}
<p><a href="{{ url_for('user_search') }}">Se connecter avec un autre identifiant</a></p>
</div>
</div>
</body>
</html>