2021-08-25 08:32:15 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="description" content="LingDocs Signin">
|
|
|
|
<title>Admin · LingDocs</title>
|
|
|
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="my-4">LingDocs Auth Admin</h1>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Name</th>
|
|
|
|
<th scope="col">Email</th>
|
|
|
|
<th scope="col">Level</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% for(var i=0; i < users.length; i++) { %>
|
|
|
|
<tr>
|
|
|
|
<td><%= users[i].name %></td>
|
|
|
|
<td><%= users[i].email %></td>
|
2021-08-25 08:38:54 +00:00
|
|
|
<td>
|
|
|
|
<% if (users[i].requestedUpgradeToStudent) { %>
|
|
|
|
Requested Upgrade - <form action="/admin/upgradeToStudent/<%= users[i].userId %>" method="post">
|
|
|
|
<button class="btn btn-sm btn-primary" type="submit">Grant</button>
|
|
|
|
</form>
|
|
|
|
<% } else { %>
|
|
|
|
<%= users[i].level %>
|
|
|
|
<% } %>
|
|
|
|
</td>
|
2021-08-25 08:32:15 +00:00
|
|
|
</tr>
|
|
|
|
<% } %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|