Files
srvflask/templates/index.html

38 lines
1.4 KiB
HTML

<!doctype html>
<html lang="fr">
<head>
<img src="{{ url_for('static', filename='img/logo.jpg') }}" alt="Logo" width="160">
<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>
</head>
<body>
<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>
{% 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>
</body>
</html>