2023-11-01 02:01:31 +00:00
|
|
|
<%- include('includes/head', {Title : 'Admin page'}) %>
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/adminPage.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<%- include('includes/header') %>
|
|
|
|
<main>
|
|
|
|
<video id="background-video" autoplay loop muted>
|
|
|
|
<source src="video/videoBackground.mp4" type="video/mp4">
|
|
|
|
</video>
|
|
|
|
<div id="first_div">
|
|
|
|
<h1>
|
|
|
|
This is the admin page
|
|
|
|
</h1>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<h2>
|
|
|
|
Faire de quelqu'un un admin
|
|
|
|
</h2>
|
|
|
|
<form action="/mettreAdmin">
|
|
|
|
<label for="utilisateurs">Nom d'utilisateur : </label>
|
|
|
|
<select name="utilisateurs" id="utilisateurs">
|
|
|
|
<% users.forEach(user => { %>
|
|
|
|
<option value="<%= user.nom_dutilisateur %>"><%= user.nom_dutilisateur %></option>
|
|
|
|
<% }); %>
|
|
|
|
</select>
|
|
|
|
<button>
|
|
|
|
submit
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<h2>
|
|
|
|
enlever un admin
|
|
|
|
</h2>
|
|
|
|
<form action="/supprAdmin">
|
|
|
|
<label for="utilisateurs">Nom d'utilisateur : </label>
|
|
|
|
<select name="utilisateurs" id="utilisateurs">
|
|
|
|
<% users.forEach(user => { %>
|
|
|
|
<option value="<%= user.nom_dutilisateur %>"><%= user.nom_dutilisateur %></option>
|
|
|
|
<% }); %>
|
|
|
|
</select>
|
|
|
|
<button>
|
2023-11-01 20:03:07 +00:00
|
|
|
Submit
|
2023-11-01 02:01:31 +00:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<h2>
|
|
|
|
Créer un poste pour la hotLine
|
|
|
|
</h2>
|
2023-11-01 20:03:07 +00:00
|
|
|
<form action="/creerPost" method="post">
|
2023-11-01 02:01:31 +00:00
|
|
|
<div>
|
|
|
|
<label for="title">Titre du poste: </label>
|
|
|
|
<input type="text" name="titre" id="titre">
|
|
|
|
</div>
|
|
|
|
<div id="divPostComment">
|
2023-11-01 20:03:07 +00:00
|
|
|
<label for="commentairePost">Commentaire du poste : </label>
|
2023-11-01 02:01:31 +00:00
|
|
|
<input type="text" id="commentairePost" name="commentairePost">
|
|
|
|
</div>
|
2023-11-01 20:03:07 +00:00
|
|
|
<div>
|
|
|
|
<label for="recompense">Récompense : </label>
|
|
|
|
<input type="text" id="recompense" name="recompense">
|
|
|
|
</div>
|
2023-11-01 02:01:31 +00:00
|
|
|
<button>Submit</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<%- include('includes/footer') %>
|
|
|
|
</body>
|